Merged
Conversation
Merged
4 tasks
tim-thacker-nullify
previously approved these changes
Mar 25, 2026
New hand-written command: nullify api context push [files...] - Calls POST /admin/context/credentials to get scoped STS creds - Uploads files to S3 wrapped in a metadata envelope (latest.json + history) - Auto-detects repo, branch, commit SHA from git (with CI env var overrides) - Supports --type, --name, --environment, --branch, --pr-number, --dry-run - SSE-KMS encryption using the key ARN from the API response New files: - internal/api/context_push.go — API client method - internal/upload/s3.go — S3 upload with envelope wrapping - internal/lib/git_context.go — git context auto-detection - internal/commands/context_push.go — cobra command registration Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Single file per invocation (prevents silent latest.json overwrites) - File size limit (50 MB) to prevent OOM - JSON validation before upload - Repo detection: check GITHUB_REPOSITORY env var before git - Auto-derive name from file path if --name not provided - Add --from-pr flag for deployment tracing - Remove --name as required (auto-detected from path) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolution order: --repository flag > GITHUB_REPOSITORY env > git auto-detect. Allows CLI usage outside git repos and CI environments. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
45c7115 to
8d4919a
Compare
fyxme
approved these changes
Mar 26, 2026
tim-thacker-nullify
approved these changes
Mar 26, 2026
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
nullify api context push [files...] --type <type> --name <name>commandPOST /admin/context/credentialsto get scoped STS credentialslatest.json+history/{timestamp}.json)GITHUB_REPOSITORY,GITHUB_REF_NAME,GITHUB_SHAoverrides for CI)New files
internal/api/context_push.go— API client methodinternal/upload/s3.go— S3 upload with envelope wrappinginternal/lib/git_context.go— git context auto-detectioninternal/commands/context_push.go— cobra command registrationTest plan
go build ./...compilesnullify api context push --type terraform --name networking --dry-run plan.json— verify dry run output🤖 Generated with Claude Code