Skip to content

feat(x130): add No Hardcoded Secrets rule - #29

Merged
onefloid merged 1 commit into
mainfrom
feat/no-pwd
Aug 4, 2026
Merged

feat(x130): add No Hardcoded Secrets rule#29
onefloid merged 1 commit into
mainfrom
feat/no-pwd

Conversation

@onefloid

@onefloid onefloid commented Aug 2, 2026

Copy link
Copy Markdown
Member

feat(x130): add No Hardcoded Secrets rule

Flags secret-looking variables assigned a hardcoded string or number
literal (sPassword = 'hunter2', sPassword = 12345) or read directly from
a cube via CellGetS/AttrS/ElementAttrS and their numeric counterparts,
so credentials don't ship with the process or sit unencrypted in a cube.
Detection is backed by constant evaluation, so a folded concatenation or
a literal carried through another variable is caught too; the value
itself is never echoed into the report.

Configurable via mode (relaxed | standard | strict | custom),
secret_names, and allow_secrets_in_cubes. Not auto-fixable; suppress
one-offs with # noqa: X130.

Resolves #19

Flags secret-looking variables assigned a hardcoded string or number
literal (sPassword = 'hunter2', sPassword = 12345) or read directly from
a cube via CellGetS/AttrS/ElementAttrS and their numeric counterparts,
so credentials don't ship with the process or sit unencrypted in a cube.
Detection is backed by constant evaluation, so a folded concatenation or
a literal carried through another variable is caught too; the value
itself is never echoed into the report.

Configurable via `mode` (relaxed | standard | strict | custom),
`secret_names`, and `allow_secrets_in_cubes`. Not auto-fixable; suppress
one-offs with `# noqa: X130`.

Assisted by: Claude Code
@onefloid
onefloid merged commit 2e66240 into main Aug 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rule Proposal: Looks like a hardcoded secret

1 participant