Conversation
Adds a GET /users/{id}/credentials endpoint that returns a fixed, detected
secret next to a benign sibling in both the body (password / password_hint)
and the response headers (Token / Token-Expiry).
Used by keploy/enterprise's selfhosted-cloud-replay e2e to exercise test-case
response obfuscation (secret.ObfuscateTestCase) end to end: recording this
endpoint with secret protection enabled lets the pipeline assert the secret is
redacted (not persisted in plaintext) while the benign sibling survives. The
endpoint stores nothing and touches no table; values are constants so CI can
grep for them.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
KC1706
force-pushed
the
test/mysql-crud-secret-credentials-endpoint
branch
from
September 15, 2026 19:15
0b61eaa to
74c5d4f
Compare
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.
What
Adds a
GET /users/{id}/credentialsendpoint to themysql-crudsample that returns a fixed, detected secret next to a benign sibling in both:password(secret) /password_hint(benign sibling), andToken(secret) /Token-Expiry(benign sibling).The endpoint stores nothing and touches no table; the values are constants so CI can grep for them.
Why
Used by
keploy/enterprise'sselfhosted-cloud-replaye2e to exercise test-case response obfuscation (secret.ObfuscateTestCase) end to end. The existing sample endpoints return no secrets, so that obfuscation path was never exercised in a live record→replay. Recording this endpoint with secret protection enabled lets the pipeline assert the secret is redacted (not persisted in plaintext) while the benign sibling survives.The secret + benign-sibling shape mirrors the exact over-broad-noise bug fixed in keploy/enterprise#2482 (
body.passwordsilencingbody.password_hint; headerTokensilencingToken-Expiry).Notes
🤖 Generated with Claude Code