Skip to content

Remove secret-derived cache keys flagged by CodeQL - #6

Merged
THEMPGUYActions merged 2 commits into
mainfrom
fix/codeql-sensitive-secret-fingerprints
Oct 20, 2026
Merged

THEMPGUYActions merged 2 commits into
mainfrom
fix/codeql-sensitive-secret-fingerprints

Conversation

@THEMPGUYActions

@THEMPGUYActions THEMPGUYActions commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Security alerts addressed

Fixes both open CodeQL high-severity py/weak-sensitive-data-hashing findings in the OAuth2 and AMP in-memory cache keys.

The first attempt used HMAC but CodeQL still flagged it because secret data flowed into SHA-256. This revision removes all secret-derived hashes/fingerprints entirely. The caches are process-local and keyed only by non-secret panel identity fields; credential changes require restarting MAP, which clears cached tokens/sessions. Configuration docs now state this explicitly.

Validation

  • Unit tests, Ruff, compileall, and package build passed locally.
  • Regression checks ensure the OAuth secret and AMP password never appear in cache keys or cached values.

Comment thread src/map_server/client.py Fixed
@THEMPGUYActions THEMPGUYActions changed the title Replace unkeyed secret hashes with ephemeral HMAC fingerprints Remove secret-derived cache keys flagged by CodeQL Oct 20, 2026
@THEMPGUYActions
THEMPGUYActions merged commit cb7d53a into main Oct 20, 2026
6 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.

2 participants