feat(debug-logs): enable E2EE debug logs from edgee launch#147
Merged
Conversation
CLEMENTINATOR
approved these changes
Jul 22, 2026
CLEMENTINATOR
left a comment
Member
There was a problem hiding this comment.
Approving — CLI side is correct.
Verified:
- Passphrase-derived X25519 keypair; private key discarded, only pubkey+salt leave the process.
- Rule 5 honored: resolve_debug_log_keypair() returns Err on KDF failure (propagated via ? to abort launch), Ok(None) only when no passphrase is set — never silent plaintext fallback.
- Env var precedence over profile matches the doc.
- Header injection is safe across all targets (base64-STANDARD has no chars needing TOML/JSON/newline escaping); all 5 launch targets + relay covered.
Minor note: the passphrase can rest in cleartext in the CLI profile config — within spec (env var is the recommended source), but worth a doc callout as a secret at rest.
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.
Checklist
Description of Changes
Lets
edgee launchderive an E2EE keypair for debug logs and attach the public half to every gateway-proxied request, without adding any friction for users who haven't opted in.EDGEE_DEBUG_LOG_E2EE_PASSPHRASEenv var, else the active profile'sdebug_log_e2ee_passphrasesetting.claude,codex,opencode,crush,codebuddy) and the relay/passthrough path.gateway'sdocs/features/encrypted-debug-logs.mdfor the full construction and cross-repo invariants.Related Issues
Related to EDGEE-1547