Skip to content

CI: verify feat/hmac-env-binding#3

Closed
soufian3hm wants to merge 1 commit into
mainfrom
feat/hmac-env-binding
Closed

CI: verify feat/hmac-env-binding#3
soufian3hm wants to merge 1 commit into
mainfrom
feat/hmac-env-binding

Conversation

@soufian3hm

Copy link
Copy Markdown
Owner

Intra-fork draft to run full CI before the upstream PR.

From the launch security audit (dodopayments#55): the MAC input was only the
subscriber id, so isolation rested entirely on per-environment
secrets. If two environments ever shared one (manual DB edit,
restored dump), a hash would transfer between them.

The hash becomes hex(HMAC-SHA256(secret, env_typeid || 0x00 ||
subscriber_id)), checked against both secret slots so it composes
with rotation. The legacy unbound form stays accepted while
CHIMELY_SUBSCRIBER_HASH_LEGACY_ACCEPT is true (the default), giving
deployed backends a migration window. Docs updated to the bound form.

Closes dodopayments#55
@soufian3hm

Copy link
Copy Markdown
Owner Author

CI green first attempt (fmt, clippy, nextest incl. the new redteam_hmac_env_binding suite, license, docker). Upstream: dodopayments#79

@soufian3hm soufian3hm closed this Jul 15, 2026
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