Add structured env management with TOML config and justfile#20
Draft
gyorgybalazsi wants to merge 4 commits intomainfrom
Draft
Add structured env management with TOML config and justfile#20gyorgybalazsi wants to merge 4 commits intomainfrom
gyorgybalazsi wants to merge 4 commits intomainfrom
Conversation
- Add list_deposit_addresses_client_credential example using client_credentials grant type with optional OWNER_FILTER for post-query filtering - Reorganize .env.example into toggleable environment blocks (devnet/testnet/mainnet) with both password and client credentials auth flows documented Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace comment/uncomment workflow in .env with a structured environments.toml config file and a nushell script (env.nu) that generates .env from selected environment + credential profiles. Add justfile with recipes for all examples, including auth guards. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These files are now handled via local .git/info/exclude instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
.envworkflow with structuredenvironments.tomlconfig (per-environment + per-credential profiles)env.nunushell script that generates.envby merging shared + environment + credential settingsjustfilewith recipes for all examples, including auth-type guards that prevent running with wrong credential profileOWNER_FILTERremoved from credential profiles — now passed as optional runtime arg tolist-deposits-ccenvironments.example.tomlas safe-to-commit template with placeholder valuesUsage
Auth guards automatically check the
.envhas the right credential type:KEYCLOAK_USERNAMElist-deposits-cc) requireKEYCLOAK_CLIENT_SECRETTest plan
nu env.nulists all environments and credentialsnu env.nu mainnet attestorgenerates correct.envjust list-deposits-ccworks with and without owner filter paramenvironments.tomlno longer containsOWNER_FILTERin any credential profile🤖 Generated with Claude Code