Skip to content

action: fail closed on a malformed identity bundle#19

Merged
bordumb merged 1 commit into
mainfrom
loop/action-malformed-bundle-fail-closed
Jun 20, 2026
Merged

action: fail closed on a malformed identity bundle#19
bordumb merged 1 commit into
mainfrom
loop/action-malformed-bundle-fail-closed

Conversation

@bordumb

@bordumb bordumb commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

The TTL check read max_valid_for_secs directly, so a bundle missing that field
(or bundle_timestamp) made the staleness comparison age > undefined evaluate
to false, silently skipping the check and accepting a malformed bundle. Bundle
shape is now validated before it is trusted: a missing or invalid timestamp or
TTL, or unparseable JSON, is rejected. Adds tests for each malformed shape.

The TTL check read max_valid_for_secs directly, so a bundle missing that field
(or bundle_timestamp) made the staleness comparison `age > undefined` evaluate
to false, silently skipping the check and accepting a malformed bundle. Bundle
shape is now validated before it is trusted: a missing or invalid timestamp or
TTL, or unparseable JSON, is rejected. Adds tests for each malformed shape.
@bordumb bordumb merged commit 9fde624 into main Jun 20, 2026
0 of 2 checks passed
@github-actions

Copy link
Copy Markdown

Auths Commit Verification

Commit Status Details
9fde624d ❌ Failed Commit carries no Auths-Id/Auths-Device trailer — it was not signed by auths sign (or predates KEL-native signing). Nothing to verify against.

Result: ❌ 0/1 commits verified


How to fix

Commit 9fde624d has no Auths signature (no Auths-Id/Auths-Device trailer).

1. Install auths

macOS: brew install auths
Linux: Download from releases

2. One-time setup (creates your identity and configures Git)

auths init

3. Sign this branch and push

auths sign origin/main..HEAD
git push --force-with-lease

For CI to verify the signer, commit an identity bundle:

auths id export-bundle --alias main --output .auths/ci-bundle.json --max-age-secs 2592000

Quickstart →

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