feat(spartan): (A-535) enable admin API key auth for next-scenario network#20738
Open
danielntmd wants to merge 1 commit intomerge-train/spartanfrom
Open
feat(spartan): (A-535) enable admin API key auth for next-scenario network#20738danielntmd wants to merge 1 commit intomerge-train/spartanfrom
danielntmd wants to merge 1 commit intomerge-train/spartanfrom
Conversation
Generates a fresh random admin API key on each nightly scenario deploy, stores the SHA-256 hash on validator pods via AZTEC_ADMIN_API_KEY_HASH, and makes the raw key available to the test runner via a K8s Secret. The raw key is never logged. - deploy_network.sh: generate key + hash with openssl/sha256sum, store raw key as 'aztec-admin-api-key' K8s Secret, pass hash to Terraform - variables.tf: add ADMIN_API_KEY_HASH (defaults to , keeping auth disabled for all other environments) - main.tf: set validator.node.adminApiKeyHash on all validator releases; empty string is falsy in Helm so other envs keep disableAdminApiKey=true - bootstrap.sh: read raw key from K8s Secret before tests run, export as AZTEC_ADMIN_API_KEY - config.ts: add AZTEC_ADMIN_API_KEY to test config schema - nodes.ts: pass key to createAztecNodeAdminClient as x-api-key header
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.
Generates a fresh random admin API key on each nightly scenario deploy, stores the SHA-256 hash on validator pods via AZTEC_ADMIN_API_KEY_HASH, and makes the raw key available to the test runner via a K8s Secret. The raw key is never logged.