OctopusDeploy / Issues

| Public | Bug reports and known issues for Octopus Deploy and all related tools
https://octopus.com
161 stars 20 forks source link

Sensitive parameters don't work for Python step templates #8350

Open ryanrousseau opened 1 year ago

ryanrousseau commented 1 year ago

Severity

No response

Version

2023.3.12994

Latest Version

None

What happened?

Sensitive parameter values don't appear to be accessible in Python step templates

Reproduction

Error and Stacktrace

No response

More Information

Notice that the API key isn't present in the headers printed in the log.

The API key is passed using the parameter on the step template.

I added a line to print out a specific project-level variable, DemoSpaceCreator.Octopus.APIKey, which prints the masked value. That variable is what is provided to the parameter on the step template, so it's unclear why the parameter has no value while the project variable does.

image

Workaround

No response

izabelcalabria commented 9 months ago

Having a somewhat similar issue but on a different stack. I update a sensitive variable value in TF script and when I use that variable it shows up empty when octopus replaces in another project. If I switch to String it works fine.