Skip to content

Tag Craft Cloud request signatures - #203

Merged
timkelty merged 2 commits into
3.xfrom
timkelty/tag-craft-cloud-request-signatures
Sep 14, 2026
Merged

timkelty merged 2 commits into
3.xfrom
timkelty/tag-craft-cloud-request-signatures

Conversation

@timkelty

@timkelty timkelty commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the application-specific tag="craft-cloud" parameter to first-party RFC 9421 request signatures
  • assert the tag is present in Signature-Input
  • verify tampering with the signed tag invalidates the signature

Validation

  • focused request signer suite: 3 tests, 22 assertions
  • php -l src/signing/RequestSigner.php
  • php -l tests/unit/RequestSignerTest.php
  • git diff --check

The full repository unit suite was not run because the orb's available PHP 8.2 does not satisfy the lockfile's PHP 8.3 requirement.

Amp thread: https://ampcode.com/threads/T-01a0a161-d8cf-758b-bc73-0bae3232314a

Copilot AI lite review requested due to automatic review settings September 14, 2026 19:44
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 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-09-14T19:47:36.859632Z 280b493 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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Add a unit test confirming verification fails when the signed tag is tampered with.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds the craft-cloud application tag to RFC 9421 request signatures and verifies its serialization.

Changes:

  • Adds tag="craft-cloud" to generated signatures.
  • Asserts the tag appears in Signature-Input.
File summaries
File Summary
tests/unit/RequestSignerTest.php Verifies the tag is serialized in signed requests.
src/signing/RequestSigner.php Adds the craft-cloud signature tag.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/unit/RequestSignerTest.php
Amp-Thread-ID: https://ampcode.com/threads/T-01a0a161-d8cf-758b-bc73-0bae3232314a
Co-authored-by: Tim Kelty <tim@pixelandtonic.com>
Copilot AI review requested due to automatic review settings September 14, 2026 19:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review issues remain.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@timkelty
timkelty merged commit 146bfef into 3.x Sep 14, 2026
10 checks passed
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.

3 participants