Skip to content

Remove AWF attestation checks; retain trusted checksum verification - #78625

Merged
pelikhan merged 6 commits into
mainfrom
copilot/fix-awf-install-attestation-check
Nov 17, 2026
Merged

pelikhan merged 6 commits into
mainfrom
copilot/fix-awf-install-attestation-check

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

AWF ≥0.29.5 installs fail on *.ghe.com because mandatory github.com attestation requests use an Enterprise-issued token and return 401. Rely on trusted checksums instead, without requiring additional secrets or a version workaround.

  • Installation: Remove online attestations, release-identity downloads, and attestation quota handling from AWF and Docker enclave helper installation.
  • Integrity: Retain release-bound manifest pins, payload SHA256 verification, and refusal to fall back after checksum failure.
  • Consumers: Refresh dependent workflow checksum pins and generated locks; document checksum-only Enterprise behavior.

@pelikhan pelikhan changed the title [WIP] Fix mandatory attestation check for AWF install Remove AWF attestation checks; retain trusted checksum verification Nov 17, 2026
@pelikhan
pelikhan marked this pull request as ready for review November 17, 2026 16:46
Copilot AI adaptive review requested due to automatic review settings November 17, 2026 16:46
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

Generated by PR Specification Reviewer for #78625 · copilot · gpt56 · ~5 AIC · ⌖ ~2 AIC · ⊞ 1.6K · ◷

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by Ponytail Reviewer for #78625 · codex · routed: gpt61 medium · ~6 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overview

Reviewed PR head 3815dd3e56c35397e96a2f0b2ac063a20f2d7c13 against the applicable security contract.

Finding

The source workflow updates the trusted release_integrity.sh digest, but the four changed generated lock files still embed the previous digest 2046c21a.... Their locked jobs copy the new helper and verify it with the old hash, so they fail closed before TLA installation. Regenerate all dependent locks and confirm the embedded digest matches the new helper. This is a blocking generated-contract synchronization failure under Security Architecture Spec v1.1.10, TT-02.

No specification synchronization proposal is warranted; the intended checksum-only behavior preserves TT-02. Coverage was static only; no tests or conformance scripts were run.

Generated by PR Specification Reviewer for #78625 · copilot · gpt50 · ~5 AIC · ⌖ ~2 AIC · ⊞ 1.6K
Comment /review-specs to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-29951477-44f9-4841-aed0-5ef9e603f056","parents":[],"payload":{"id":"ldg-0038d5cd-0e93-4805-9be3-aa42dd6f0a3f","operation":"append","value":{"finding_count":1,"head_sha":"3815dd3e56c35397e96a2f0b2ac063a20f2d7c13","outcome":"regression"}},"sha":"sha256:99508cb226c71abf6799a9d7d6d1ada4926c63fc7c77fc634389eb2fac3b1de4","timestamp":"2026-11-17T16:54:25.669Z","type":"ledger_append","version":1}
History

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the changed AWF installer, release-integrity helper, Docker enclave helper generation, tests, documentation, and checksum pin updates. I found no actionable correctness, regression, performance, or maintainability issues in the changed lines. The grumpy-coder specialist pass was unavailable because its diff-read tool calls were denied, so this conclusion is based on the independent static review only; no tests were run per the review instructions.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-8946818b-1cf2-4965-a148-3b33020dfdd7","parents":[],"payload":{"id":"ldg-fe4e6aaa-93fa-4d68-a839-0351830420db","operation":"append","value":{"finding_count":0,"head_sha":"3815dd3e56c35397e96a2f0b2ac063a20f2d7c13","outcome":"no_findings"}},"sha":"sha256:8a677be8854e7cb197f1ab91595d3896548a152e4ccb00c14391fa4c90e5f7cf","timestamp":"2026-11-17T16:57:39.098Z","type":"ledger_append","version":1}
History

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The AWF and Docker installer steps still receive an unused GitHub token, unnecessarily exposing it to downloaded release code during rootless AWF installation.

1 open issue
What changed in this PR

Updates gh-aw’s AWF installers to avoid github.com attestation authentication failures on *.ghe.com, using trusted checksum verification without extra credentials or version overrides.

Changes:

  • Removes attestation, release-identity, and quota handling while retaining manifest pins, payload checksums, and refusal to fall back after verification failure.
  • Updates tests for Enterprise installation without GitHub API calls and for tampered-artifact rejection.
  • Refreshes dependent workflow pins and generated locks, and documents checksum-only installation.
File Description
pkg/​workflow/​copilot_engine_installation.go Switches Docker helper installation to checksum-only verification.
pkg/​workflow/​awf_installer_integration_test.go Updates helper verification requirements and forbids attestation calls.
docs/​src/​content/​docs/​reference/​frontmatter.md Documents AWF checksum verification and Enterprise behavior.
docs/​src/​content/​docs/​experimental/​enclaves.md Updates enclave installer integrity documentation.
actions/​setup/​sh/​release_integrity.sh Removes attestation, identity, and quota helpers.
actions/​setup/​sh/​release_integrity_test.sh Adds Enterprise and checksum-failure regression cases.
actions/​setup/​sh/​install_awf_binary.sh Removes attestation checks while preserving checksum enforcement.
actions/​setup/​sh/​install_awf_binary_test.sh Tests installation without API access and removes quota cases.
.github/​workflows/​shared/​tla-plus.md Refreshes the integrity-helper checksum pin.
.github/​workflows/​daily-workflow-security-model.lock.yml Refreshes the generated pin and workflow hashes.
.github/​workflows/​daily-work-queue-formal-verification.md Refreshes the integrity-helper checksum pin.
.github/​workflows/​daily-work-queue-formal-verification.lock.yml Synchronizes the generated pin and workflow hashes.
.github/​workflows/​daily-tlc-test-expert.lock.yml Refreshes the generated pin and workflow hashes.
.github/​workflows/​daily-formal-spec-verifier.lock.yml Refreshes the generated pin and workflow hashes.

Review effort: Max (adaptive)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Skills-Based Review 🧠

Applied /codebase-design and /tdd. The attestation removal is clean and the checksum trust chain holds. Two follow-ups remain, plus one test-coverage gap.

📋 Key Themes & Highlights

Verified

  • ✅ Digest migration 2046c21a... to 79c19f71... matches sha256sum of release_integrity.sh at HEAD. No lock file still embeds the old digest, so the stale bot comment on daily-work-queue-formal-verification.md is resolved.
  • ✅ install_awf_binary_test.sh passes (20/20). release_integrity_test.sh passes (exit 0) with a writable RUNNER_TEMP. An earlier failure was sandbox-only, caused by the root-owned _temp directory.
  • ✅ The checksum-verified install path asserts that gh is never invoked (test ! -e gh.log). This is a good negative test.
  • ✅ The helper path now verifies checksums.txt with verify_release_digest against the pinned digest, not a release-identity attestation.

Follow-ups

  • Dead quota path (not in this diff): actions/setup/sh/conclude_threat_detection.sh (lines 50–51), pkg/cli/audit_threat_detection_logs.go (line 25), and pkg/workflow/threat_detection_conclude_script_test.go (line 480) still branch on GH_AW_GITHUB_API_QUOTA_BLOCKED. No producer sets it after this PR. Remove them, or document why they remain. The ADR docs/adr/76583-handle-github-api-quota-exhaustion.md still describes the removed wait mechanism and is in Draft status. Update or supersede it.
  • Stale attestation references (out of scope but related): actions/setup/sh/cloud_hypervisor_setup_enclave_artifacts.sh (lines 26 and 43) and nvx_host_preflight.sh (line 170) still use gh attestation verify. Confirm whether these are intentionally kept.
  • Test coverage: the release_integrity_test.sh gh stub returns HTTP 401 unconditionally. A regression that reintroduces an attestation call would fail the stub rather than be detected specifically. Consider a stub that records calls and asserts zero invocations on the checksum path.

Inline comment

  • awf_installer_integration_test.go line 159: the GH_TOKEN/GH_HOST env lines are still required by the contract test and are not read by either installer script.

Process note

pr-triage was not run. Classification and high-impact files came from the direct fallback heuristic on pr-meta.json and pr-diff.patch.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~7 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (pkg/workflow/copilot_engine_installation.go:528): address unresolved feedback - Review comment
  3. Review (pkg/workflow/awf_installer_integration_test.go:159): address unresolved feedback - Review comment

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "3815dd3e56c35397e96a2f0b2ac063a20f2d7c13",
  "kind": "requested",
  "schema_version": "1",
  "state": "7937c3780e2a89beb6717582b8b9a40d4766693649704b0353c7336ab33dedf8",
  "work": [
    "3e23293725bfd4e3d0dfafe0c319f2dbc5b6a4d16a9bcd5059dc72e9f407d48b",
    "9b62775a243c31bca06b1db58ace6239635c983ca893c83ee91f87fd0615f9c4"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

The installers no longer call gh after attestation checks were removed,
so GH_TOKEN/GH_HOST only exposed the token to release code.

Co-authored-by: Copilot App <[email protected]>
@pelikhan

Copy link
Copy Markdown
Collaborator Author

/smoke-copilot

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot is now investigating this issue comment. Sources say the story is developing...

@github-actions

Copy link
Copy Markdown
Contributor

Smoke: FAIL. Me test.

  • Remove AWF attestation checks ✅
  • some tests ❌ (Serena, LSP, Playwright title)

PR author: bot. No assignees.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • host.docker.internal

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "host.docker.internal"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot · copilot · auto (Claude Sonnet 5.5) · ~33 AIC · ⌖ ~1 AIC · ⊞ 8.4K · ◷
Comment /smoke-copilot to run again
Add label smoke to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (smoke)
tests run fast
bugs hide, smoke finds them
green checks glow
History

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • host.docker.internal

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "host.docker.internal"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot · copilot · auto (Claude Sonnet 5.5) · ~33 AIC · ⌖ ~1 AIC · ⊞ 8.4K · ◷
Comment /smoke-copilot to run again
Add label smoke to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Smoke review. Ugh.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • host.docker.internal

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "host.docker.internal"

See Network Configuration for more information.

📰 BREAKING: Report filed by Smoke Copilot · copilot · auto (Claude Sonnet 5.5) · ~33 AIC · ⌖ ~1 AIC · ⊞ 8.4K
Comment /smoke-copilot to run again
Add label smoke to run again

pelikhan and others added 2 commits November 17, 2026 10:23
Lock files compiled by older gh-aw versions call verify_release_identity
and verify_release_attestation from inline helper steps. Keep them callable
so those workflows do not fail with 'command not found'.

Co-authored-by: Copilot App <[email protected]>
Accept upstream removal of the Atomic engine workflows, refresh the
release_integrity.sh digest pin for the compatibility shims, and
regenerate lock files.

Co-authored-by: Copilot App <[email protected]>
Copilot AI requested a review from gh-aw-bot November 17, 2026 18:31
@pelikhan
pelikhan merged commit 08417f7 into main Nov 17, 2026
71 checks passed
@pelikhan
pelikhan deleted the copilot/fix-awf-install-attestation-check branch November 17, 2026 19:09
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants