CFE-3293: Added tracking of secret variables for later redaction - #6304
Open
nickanderson wants to merge 1 commit into
Open
CFE-3293: Added tracking of secret variables for later redaction#6304nickanderson wants to merge 1 commit into
nickanderson wants to merge 1 commit into
Conversation
victormlg
suggested changes
Aug 19, 2026
nickanderson
force-pushed
the
CFE-3293-accessor-split/master
branch
from
August 19, 2026 20:42
0c249f0 to
4d9f900
Compare
Contributor
Ticket: CFE-3293 Changelog: None
nickanderson
force-pushed
the
CFE-3293-accessor-split/master
branch
from
August 21, 2026 14:42
4d9f900 to
671d53f
Compare
Member
Author
|
@cf-bottom jenkins, please |
|
Alright, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/14558/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-14558/ |
Member
Author
|
@cf-bottom jenkins, please |
|
Sure, I triggered a build: Jenkins: https://ci.cfengine.com/job/pr-pipeline/14563/ Packages: http://buildcache.cfengine.com/packages/testing-pr/jenkins-pr-pipeline-14563/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EvalContextVariableGet()always returned the plaintext value, so a caller had noway to ask for a secret-tagged variable to be redacted. This adds a
get_secretparameter, plus
EvalContextVariableGetPlaintext()and friends, and moves the 20existing call sites in core onto the plaintext form.
No behaviour change: every call site asks for plaintext, exactly as before. It is
the groundwork for the CFE-3294 leak fixes, which switch selected sites over.
It also fixes an indexed read of a secret-tagged container (
mydata[key]) abortingin
RvalContainerValue(): the declared type was reported while the returned valuewas the redacted scalar sentinel. Not reachable until a caller passes
get_secret=false, which the CFE-3294 work does.Needs paired changes in the enterprise and nova repos, which call these accessors
and will not compile against the new signature —
enterprise/libcfserverd/server.cand four sites in
nova/cf-hub/cf-hub.c. All three need to land together: