-
Notifications
You must be signed in to change notification settings - Fork 2k
Support HMAC signing on artifact uploads #892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/vercel/turbo-site/4CexmiMV8Wg6qZgmaAZxjZsx39Vr |
annoying nit: we also need to update schema.d.ts w/ comments for our JSONSchema to play nice with VSCode/IDE automcomplete here: https://github.com/vercel/turborepo/blob/main/docs/schema.d.ts There is already a PR by @Schniz to move it all to be Go, but Go isn't installed in build container on Vercel. |
The hmac tag is sent on uploads to the remote cache via x-artifact-tag header. TODO: - Compute artifact signature from streaming artifact download - Validate x-aritfact-tag header once download completes
cli/internal/fs/testdata/turbo.json
Outdated
"cache": false | ||
} | ||
}, | ||
"remoteCacheOptions": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: aren't Options
implied? Should it just be remoteCache
cli/internal/fs/testdata/turbo.json
Outdated
}, | ||
"remoteCacheOptions": { | ||
"teamId": "team_id", | ||
"signatureOptions": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we just call this signature
?
In another follow up, we should allow folks to set |
Lets get started on docs for this |
Introduce RemoteCacheOptions field to turbo.json
Adds initial test scaffolding for turbo json config parsing.
Implement HMAC Signature sent on uploads to the remote cache via x-artifact-tag header.
Implement Signature Stream Validator on artifact downloads.
Download full response body and verify before untar when the signature/verification is enabled.
In followup:
teamId
specified inremoteCacheOptions