Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughEnvironment variable secrets are merged into the JSON ChangesEnvironment secret transport
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to Secret variable values are now transported through the consolidated JSON payload while environment-only secrets remain excluded. No actionable merge risk remains. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@Iceman-ZP as I remember the Secrets shouldn't be stored in the database. |
|
Thanks for pointing this out.
Just to clarify, my intention here wasn't to change how Semaphore stores
secrets.
I ran into this while using a multiline private key as an Ansible secret
variable. With the current --extra-vars name=value form, part of the value
was lost during parsing. Passing the same value as JSON fixed the issue in
my setup, so I opened this PR mainly to share the problem and the working
fix I used.
If this approach conflicts with how secrets are expected to be handled
internally, I'm happy to leave the implementation decision to the
maintainers.
вс, 20 сент. 2026 г. в 09:46, Denis Gukov ***@***.***>:
… *fiftin* left a comment (semaphoreui/semaphore#4250)
<#4250 (comment)>
@Iceman-ZP <https://github.com/Iceman-ZP> as I remember the env is stored
in a database in the task table.
Secrets shouldn't be stored in the database.
—
Reply to this email directly, view it on GitHub
<#4250?email_source=notifications&email_token=CLMNPFN4XC4KGRV3DQXXOA35P54MNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNZUHAZDANZZGQ3KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5748207946>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CLMNPFMUJCIHK6ILLV3FQLD5P54MNAVCNFSNUABEKJSXA33TNF2G64TZHMZDGMRWG44DQMZ3JFZXG5LFHM2TIOJWHAYTGNZRGOQXMAQ>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/CLMNPFPGJEAOYJTXRZLFFA35P54MNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNZUHAZDANZZGQ3KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y>
and Android
<https://github.com/notifications/mobile/android/CLMNPFLJ6US3GFLZ2BLO7RD5P54MNA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKNZUHAZDANZZGQ3KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>.
Download it today!
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
What does this PR do?
Fixes Ansible Variable Group secret variables being passed as separate
--extra-vars name=valuearguments.Secret variables of type
varare now merged into the existing JSON extra-vars payload before it is serialized and passed to Ansible.This preserves values containing spaces and other complex content.
Environment secrets of type
envare unchanged and continue to be passed as environment variables.Why?
Regular extra variables are already passed to Ansible as JSON, but Variable Group secret variables were appended separately using:
This can cause Ansible to parse values containing spaces incorrectly.
Fixes #4249.
Behavior
The change preserves:
--extra-varspayload.Tests
Added a regression test covering:
Tested with:
and:
Both pass on the current
developbranch.Summary by CodeRabbit