fix(secret_hex): add secret_hex/secret_payload filters; refactor outline_runtime#11
Merged
Merged
Conversation
Update live_apply_evidence receipts for glitchtip, outline, and excalidraw to reflect successful 2026-05-20 deployments. Bump repo_version and platform_version to 0.179.46. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…utline_runtime to use hex filter Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
scripts/secret_masking_utility.py: addgenerate_real_secret_hex(service_name, length)— producessrvclaw_hex_<service>_<64hex>, greppable likesrvclaw_family but payload is pure lowercase hex (ADR 0403hex_32form)plugins/filter/generate_secret.py: addsecret_hexandsecret_payloadJinja2 filters; both registered inFilterModuleoutline_runtime/tasks/main.yml: collapse two-step (openssl shell + manage_service_secrets) into a singlemanage_service_secretscall usingsecret_hex; applysecret_payloadinset_factandoutline_runtime_secret_payloadsoSECRET_KEY/UTILS_SECRETenv vars receive only the 64-char hex Outline requiresDesign
| secretsrvclaw_outline_<base64>| secret_hexsrvclaw_hex_outline_<64hex><64hex>via| secret_payloadGreppable:
grep -r srvclaw_hex_ /etc/catches leaked Outline secrets in the same waygrep -r srvclaw_ /etc/catches urlsafe secrets.Backward-compatible: existing servers have plain hex files written by
openssl rand -hex 32. The write-if-missing guard leaves them unchanged;secret_payloadpasses through values that don't match thesrvclaw_pattern.Test plan
python3 -c "from secret_masking_utility import generate_real_secret_hex; v=generate_real_secret_hex('outline',32); print(len(v.split('_')[-1]), all(c in '0123456789abcdef' for c in v.split('_')[-1]))"→64 Truemake converge-outline env=productionon a clean VM produces Outline env with 64-char hexSECRET_KEY🤖 Generated with Claude Code