clavis secrets duplicates
Find secrets that share a value, in one environment or across environments
sh
clavis secrets duplicates [flags]Find secrets that share a value. It reports two kinds: different keys in one environment holding the same value (one credential copied under two names), and the same key holding the same value in several environments, which is flagged when production shares a value with a non-production environment, because a leak in dev would then expose production.
Only secrets of kind secret with at least 6 characters are compared, so settings such as true or 3000 do not show up. Values are fetched (the read is audited) and compared on your computer; they are never printed, and neither is anything derived from them.
Examples
sh
clavis secrets duplicatesOnly inside one environment
sh
clavis secrets duplicates --only-env productionsh
clavis secrets duplicates --jsonFlags
--only-env string- look only inside this environment (skips the cross-environment check)
Global flags
These work with every command.
--debug- enable debug logging
--env string- environment slug
--json- output machine-readable JSON
--org string- organization slug
--overlay string- tenant/region overlay slug
--path string- folder path (default /)
--project string- project slug
--server string- Clavis server URL (default: from .clavis.yaml or saved login)
-h, --help- help for any command