Repository navigation
Replies: 1 comment
|
the restricted-environment score is the one worth fixing first. the hardcoded download url in run.sh is a real blocker for air-gapped or corp-proxied environments. adding a |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
A discussion dedicated to the Vault CLI module. Share your thoughts, questions, and feedback here.
Module Scorecard
Drilldown
Presentation & Onboarding — 12 / 17
iconfield references an SVG icon, which does not count.Credential Hygiene — 16 / 20
vault_tokenis declared withsensitive = truein main.tf. All README examples referencevar.vault_token(a Terraform variable) rather than inlining a literal or placeholder key.Restricted-Environment Readiness — 6 / 20
run.shhardcodeshttps://api.releases.hashicorp.comandhttps://releases.hashicorp.com.install_dircontrols where the binary lands, not where it is fetched from.vault_cli_versionpins a version but does not change the source URL.run.shcheckscommand -v vaultand skips download if the installed version matchesVAULT_CLI_VERSION. However, this behavior is not documented in the README, and there is no explicit "skip install" flag. A user cannot disable the download entirely without matching the exact resolved version.run.shsource code.run.shinvokessudo mvfor the default/usr/local/binpath but falls back to~/.local/binwhen sudo is unavailable or fails. Core functionality (havingvaulton PATH) works without root, but the script does invoke sudo, so full credit is not warranted.Engineering Quality — 10 / 10
descriptionblocks. Sensible defaults:vault_cli_version = "latest",install_dir = "/usr/local/bin",enterprise = false,vault_token = null.vault_cli_versionincludes avalidationblock with a semver regex and clear error message.main.tftest.hclcontains 10 test runs covering: token present/absent, namespace present/absent, version output, custom install dir, invalid version rejection, v-prefix rejection, valid semver acceptance, token+namespace combination, and enterprise flag. Tests target business logic (env var creation, conditional counts, validation) rather than trivial assertions. No TypeScript component exists, so no e2e TS tests are expected.Overall — 66 / 100
Raw 44 / 67 → round(44 / 67 × 100) = 66
Track: Utility (CLI helper for Vault authentication; not an AI agent or IDE)
Scored against SCORECARD.md on 2026-10-19 with
solstice-1.All reactions