Skip to content

Authenticate /api/feeders/status with Bearer alv1 token#80

Merged
d4rken merged 1 commit into
devfrom
feat/status-bearer-auth
May 14, 2026
Merged

Authenticate /api/feeders/status with Bearer alv1 token#80
d4rken merged 1 commit into
devfrom
feat/status-bearer-auth

Conversation

@d4rken

@d4rken d4rken commented May 14, 2026

Copy link
Copy Markdown
Member

claim_registration_status_line and status_probe_version now send the claim secret in an Authorization: Bearer alv1.<uuid>.<secret> header instead of a body current_secret field. The body shrinks to just {"uuid":"..."} for both endpoints. claim_rotate's lost-response recovery and claim rotate --abort reach the server through the same new Bearer path.

claim.sh's /api/feeders/secret POSTs are unchanged — first-claim has no current secret to put in a header, and the rotation replay path needs the secret in the body to satisfy the server's NOOP_REPLAY check.

post_json_bearer now rm's its curl-config tempfile before return. The previous TMP_FILES registration stays as a safety-net for direct callers, but bash resets EXIT traps inside command-substitution subshells, so callers that capture via $() couldn't have relied on it alone.

Refs DEV-427.

claim_registration_status_line and status_probe_version now send the claim secret in an Authorization: Bearer alv1.<uuid>.<secret> header instead of a body current_secret field. claim.sh's /api/feeders/secret POSTs are unchanged (the secret rotation flow needs a body-shaped current_secret for the first-claim and replay paths). claim_rotate's lost-response recovery and --abort both ride through the new Bearer path via status_probe_version.

post_json_bearer also now rm's its curl-config tempfile before return; TMP_FILES registration stays as a safety-net for direct callers (bash resets EXIT traps inside command-substitution subshells, so callers that capture via $() couldn't rely on it).

Refs DEV-427.
@d4rken d4rken merged commit 352cfa9 into dev May 14, 2026
12 checks passed
@d4rken d4rken deleted the feat/status-bearer-auth branch May 14, 2026 07:59
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.

1 participant