This tool allows for decrypting projects exported from Octopus Deploy.
It creates an export.html
report file, which reconstructs the project and variable structure.
Sensitive/encrypted variable values are decrypted print as plain text in the report.
- Build the project using
go build
- Run the tool within the directory of the unzipped project export:
octopus-deploy-decryptor --password 'password' --sensitive-only
Make sure to provide the correct password used during export.
The sensitive-only
option will limit the shown values to sensitive variables.
More on how to export projects can be found here: https://octopus.com/docs/projects/export-import
Use the following Go code to decrypt the data:
key, err := KeyFromPassword(password)
v, err := DecryptString(key, encryptedValue)
- Retrieve the master key from Octopus Deploy: https://octopus.com/docs/security/data-encryption
- Use the following Go code to decrypt the data:
key, err := KeyFromMasterKey(masterKey)
v, err := DecryptString(key, encryptedValue)
More on how to get the variable values from the database can be found here: https://squirrelistic.com/blog/how_to_display_value_of_sensitive_variable_in_octopus_deploy
This blog article also shows how to use Powershell, if you prefer that.
Published under the MIT License.
It is provided as is, in a "works ony my machine" fashion.