Skip to content

license: signed nonce on renew and deactivate - #578

Merged
abahmed merged 1 commit into
mainfrom
license-signed-nonce
Oct 26, 2026
Merged

abahmed merged 1 commit into
mainfrom
license-signed-nonce

Conversation

@abahmed

@abahmed abahmed commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Renew and deactivate now include a fresh 16-byte crypto/rand nonce (base64url, no padding, field nonce) in the JSON body. The signature covers the raw body, so the nonce is signed. Matches activate's encoding; the activate nonce code now shares the helper.

The API (abahmed/kwatch-api#18) dedupes the nonce per license; older API versions ignore the unknown field (the body is parsed as plain JSON with no unknown-key rejection).

Test: client_nonce_test.go checks each call sends a distinct 16-byte nonce and that the signature verifies over the body containing it.

@abahmed abahmed added the e2e Run the real-cluster E2E suite on this pull request label Oct 26, 2026
@abahmed
abahmed merged commit 8d5067e into main Oct 26, 2026
27 checks passed
@abahmed
abahmed deleted the license-signed-nonce branch October 26, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e Run the real-cluster E2E suite on this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant