Skip to content

feat(agents): pin FTW Cloud's offer key - #1680

Merged
frahlg merged 1 commit into
masterfrom
feat/pin-offer-key
Oct 17, 2026
Merged

frahlg merged 1 commit into
masterfrom
feat/pin-offer-key

Conversation

@frahlg

@frahlg frahlg commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Problem

FTW Cloud's consent page hands the owner a signed grant offer. The box opens an offer only when its signature checks against an offer key this build pins (cloudlink.OfferKeys, docs/agents.md "The grant offer"). The list was empty, so every release build refused every offer, and an owner could not approve an assistant on the box page.

Change

OfferKeys pins cloud.ftw.energy's offer key:

  • kid s0xLrCPjFa-AoMMl
  • public half BEUBb8ul2T01OWM_f1rX6h8Z0yFf8BkvEtUxdHsc_FXGtKv8arbcDZcPeeVOoX6nIxdP2SKYpHky9KSw-cqH-8g

The key is the KMS key alias/ftw-cloud-offer-key in eu-north-1 (ECC_NIST_P256, SIGN_VERIFY), made on 17 October 2026 by srcfl/ftw-cloud deploy/keys.md. Its private half never leaves KMS. Three sources agree on the public half: ftwkeysd offerkey on the host, aws kms get-public-key from an admin workstation, and https://cloud.ftw.energy/.well-known/ftw-offer-key.

TestReleasePinsTheCloudOfferKey checks that the pin parses to one key under its own kid. A typo would leave the list empty, and the box would again open nothing.

Pair

srcfl/ftw-app#80 pins the same key in OfferKeys.releasePins for the iOS app's approval path. The two PRs can land in either order.

Tests

go test ./internal/cloudlink/ ./internal/api/ ./cmd/ftw/

🤖 Generated with Claude Code

The box page opens a signed grant offer only under a pinned offer key.
Pin cloud.ftw.energy's key, kid s0xLrCPjFa-AoMMl, from KMS alias
ftw-cloud-offer-key. ftwkeysd and KMS gave the same public half, and
/.well-known/ftw-offer-key publishes it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T05:24:34.679084Z ec8149a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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