Repository navigation
Conversation
get_client_credentials() logged every saved credential at DEBUG, client secret included. The rapidata logger runs at DEBUG and propagates, so the records reached the telemetry export and the application's own log handlers. client_secret is now excluded from the model's repr, and the lookup logs only the selected credential's display string. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Co-Authored-By: lino@rapidata.ai <68745352+LinoGiger@users.noreply.github.com>
⚠ Agent skill not updatedThis PR does not modify Before merging, pick one:
|
This branch has not been deployed
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.
Why
CredentialManager.get_client_credentials()logged every saved credential at DEBUG, client secret included. Therapidatalogger runs at DEBUG so the OTLP handler receives every record, and it propagates, so the same record also reaches any handler the application put on the root logger (logging.basicConfig()), whatever level the application asked for.Flow
Decisions
Field(repr=False)onClientCredential.client_secret, so no later%sof the model can print it.model_dumpand the credentials file are unchanged;SecretStrwas rejected because it changes how the file is written and read.Stored credentialsline is removed, not redacted: it listed the credentials of every environment on each client construction.Verified
test_client_secret_stays_out_of_repr_and_debug_logsfails onmainand passes here. Withlogging.basicConfig(level=logging.WARNING)and a credentials file holding a fake secret, the root handler printed the secret before the change and no longer does.Agent skill: nothing the skill documents changed, so this needs the
skill-unchanged-approvedlabel.🔗 Session: https://poseidon.rapidata.internal/chat/ves-167c2yznsvyzh9
🤖 Generated with Claude Code