Skip to content

Add the OctoSTS policy for SEP's support matrix publisher - #1389

Merged
Nashon-Steffen merged 1 commit into
mainfrom
sep/support-matrix-octosts
Nov 30, 2026
Merged

Nashon-Steffen merged 1 commit into
mainfrom
sep/support-matrix-octosts

Conversation

@Nashon-Steffen

Copy link
Copy Markdown
Contributor

Description

Adds the OctoSTS trust policy sep-support-matrix for the Stacklok Enterprise platform's support matrix publisher.

After each release reaches Beta, the publisher validates the release on the SUSE Rancher lab. It then adds the validated Rancher Prime, RKE2, node OS, and SUSE AI Factory versions to a new page, docs/platform/enterprise-platform/supported-platforms.mdx, in a draft PR from sep/support-matrix-<tag>. The Stable promotion marks the PR ready. SUSE's Ready for Rancher and Ready for SUSE AI Factory certifications require this public list.

The policy has the same shape as sep-docs-pr.sts.yaml:

  • It admits only release-publish-support-matrix.yml on main of the platform repository, and only on workflow_dispatch.
  • It grants contents: write and pull_requests: write.
  • The main ruleset still requires a reviewed PR before anything publishes.

The first support matrix PR creates the page and adds it to sidebars.ts after "Verify artifacts".

Type of change

  • Navigation/structure change

Related issues/PRs

  • stacklok/stacklok-enterprise-platform#7553 adds the publisher workflow.
  • stacklok/infra#6471 adds the lab upgrade and evidence run that the publisher dispatches.
  • Tracking: stacklok/stacklok-enterprise-platform#5871.

Submitter checklist

Content and formatting

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

Reviewer checklist

Content

  • I have reviewed the content for technical accuracy
  • I have reviewed the content for spelling, grammar, and style

🤖 Generated with Claude Code

SEP's release-publish-support-matrix.yml on main adds the validated SUSE
Rancher Prime, RKE2, and SUSE AI Factory versions to the supported
platforms page after each release. It needs this identity to push its
sep/support-matrix-* branch and open the docs PR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 30, 2026 21:33
@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs-website Ready Ready Preview Nov 30, 2026 9:34pm UTC

Request Review

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.

🔵 Needs a closer look

Repository-wide write access is granted to an external workflow whose publisher PR returned 404, leaving token exchange, input validation, and branch restrictions unverified.

No open issues 🎉

What changed in this PR

Adds an OctoSTS trust policy so the Stacklok Enterprise support matrix publisher can open PRs in this documentation repository. The support matrix page and sidebar entry are left to the publisher’s first PR.

Changes:

  • Restricts token exchange to release-publish-support-matrix.yml on the platform repository’s main branch, triggered by workflow_dispatch.
  • Pins the stacklok-octosts app and grants contents: write and pull_requests: write; branch restrictions remain the workflow’s responsibility.
File Description
.github/​chainguard/​sep-support-matrix.sts.yaml Defines the publisher’s trusted workflow identity, app, and repository permissions.

Review effort: Balanced

@Nashon-Steffen

Copy link
Copy Markdown
Contributor Author

Replying to the Copilot review above: the publisher PR, stacklok/stacklok-enterprise-platform#7553, is in a private repository, which is why Copilot got a 404. It's open. Here is how its workflow, release-publish-support-matrix.yml, handles the three points Copilot couldn't verify.

Token exchange. The jobs request id-token: write and call octo-sts/action with scope: stacklok/docs-website and identity: sep-support-matrix. This policy admits the token only when the platform repository and owner IDs match, the event is workflow_dispatch, and workflow_ref is that exact file on refs/heads/main. Every job is also gated on github.ref == 'refs/heads/main'.

Input validation. phase is a choice input limited to beta or stable. Before either path does anything with tag, it must match ^v[0-9]+\.[0-9]+\.[0-9]+$ and name a published release that is not a draft or prerelease (gh release view). The stable path got the same check in stacklok/stacklok-enterprise-platform@d30c24c98 because it passes the tag through a Task target that inserts it into a shell command without escaping.

Branch restrictions. The installation token itself can push to any unprotected branch; as the policy comment says, scoping is left to the workflow. The workflow pushes only sep/support-matrix-<tag> and fails if generation changed any file other than docs/platform/enterprise-platform/supported-platforms.mdx and sidebars.ts. It updates an existing PR only if stacklok-octosts[bot] authored it from this repository. Anything reaching main still goes through the main ruleset's required review.

@Nashon-Steffen
Nashon-Steffen merged commit e0eb637 into main Nov 30, 2026
8 checks passed
@Nashon-Steffen
Nashon-Steffen deleted the sep/support-matrix-octosts branch November 30, 2026 22:23

This branch was successfully deployed

1 active deployment
Preview — 04eea23b Deployed Nov 30, 2026 by vercel[bot]
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