Skip to content

fix(ci): authenticate nixcache uploads - #1801

Merged
johnae merged 1 commit into
mainfrom
ci/nixcache-upload-auth
Sep 28, 2026
Merged

johnae merged 1 commit into
mainfrom
ci/nixcache-upload-auth

Conversation

@johnae

@johnae johnae commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Uploads to nixcache.9000.dev will need basic auth (ncps accepted unauthenticated PUTs). The push writes a netrc from the new NCPS_UPLOAD_TOKEN secret and passes it to nix copy; it skips the push when either secret is missing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PSMUsNr7KgEYUJRxX5E8p1

The cache now wants a password for anything but reads. nix only sends
credentials to an HTTP binary cache from a netrc, so write one from the
NCPS_UPLOAD_TOKEN project secret and pass it to nix copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PSMUsNr7KgEYUJRxX5E8p1
@claude

claude Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error —— View job


I'll analyze this and get back to you.

@johnae
johnae merged commit 6cadfac into main Sep 28, 2026
2 of 3 checks passed
@johnae
johnae deleted the ci/nixcache-upload-auth branch September 28, 2026 10:02
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