Skip to content

chore(security): make TLS cert/key placeholders obvious for secret scanning#183

Open
kriscoleman wants to merge 1 commit into
mainfrom
chore/sanitize-tls-placeholders
Open

chore(security): make TLS cert/key placeholders obvious for secret scanning#183
kriscoleman wants to merge 1 commit into
mainfrom
chore/sanitize-tls-placeholders

Conversation

@kriscoleman

Copy link
Copy Markdown
Member

Cleaning up the TLS placeholders that keep tripping secret scanning.

The mlflow chart and the self-signed-vs-user-provided-tls pattern shipped example TLS config with empty PEM blocks (-----BEGIN PRIVATE KEY----- then -----END PRIVATE KEY----- with nothing in between). They aren't real keys, but secret scanning flags the markers anyway, which just adds noise to the security reports and makes audits harder than they need to be.

This swaps them for empty-string defaults with a comment that spells out the placeholder intent, so there's no PEM marker left to flag and it's obvious to an auditor that nothing real is here. I also regenerated the mlflow helm-docs README table to match.

That clears the live alerts on applications/mlflow/charts/mlflow/values.yaml and patterns/self-signed-vs-user-provided-tls/README.md.

One more for the record: the other alert points at applications/cassandra/charts/cassandra/templates/cassandra-tls-secret.yaml, which had an actual example key in it. That cassandra app has since been removed from main, so the key only lives in git history now, nothing left in the tree to change. I think we just dismiss that one (example key, app already removed) rather than rewrite history for a sample chart. 🤔

🤖 Generated with Claude Code

…et-scanning

The mlflow chart and the self-signed-vs-user-provided-tls pattern shipped empty
PEM blocks as example TLS values:

    cert: |
      -----BEGIN CERTIFICATE-----
      -----END CERTIFICATE-----
    key: |
      -----BEGIN PRIVATE KEY-----
      -----END PRIVATE KEY-----

GitHub secret scanning flags these (generic private key) even though they're
empty, which clutters the security reports and makes audits noisier. Replace
them with empty-string defaults and a comment that makes the placeholder intent
explicit, so there are no PEM markers to flag and it's obvious to an auditor
that nothing real is committed. Regenerated the mlflow helm-docs README table to
match.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant