Repository navigation
feat(secrets): custody protocol, broker and CLI core (#922, PR 1 slice) - #923
Draft
defangdevs wants to merge 1 commit into
Draft
defangdevs wants to merge 1 commit into
defangdevs wants to merge 1 commit into
Conversation
…922) Slice of PR 1: the payloads and their unit tests only. Not wired into either backend yet, so nothing is rendered, enabled or deployed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M3UqKAcm8ivvcx2JwwNide
5 tasks
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
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.




Part of #922 (PR 1, first slice). Draft: payloads and unit tests only.
What is here
modules/src/lib/secret-protocol.py: length-prefixed JSON framing (64 KiB cap, checked before allocation), strict request schema that refuses unknown fields, and the record store (0700/0600, directory-fd +O_NOFOLLOW, temp+fsync+rename, flock, namespace bound to user+uid, tombstone on remove).modules/src/secret-broker.py: root broker for one user; checksSO_PEERCREDuid; the request cannot pick uid, path or namespace. No operation returns a value.modules/src/secret-cli.py:agent-box-secret list | set NAME --stdin | remove NAME.tests/test-secret-custody.py: 8 tests over a real Unix socket (python3 tests/test-secret-custody.py).What is NOT here (so PR 1 stays unchecked on #922)
services.agent-box.secrets.enable, units, socket, contract,bin/agentboxwiring or generated module/fixtures.Open question
Reading
meta.jsonbinding storesuseras the namespace name; confirm that is the namespace scheme you want before wiring.🤖 Generated with Claude Code