Skip to content

Commit 05d18af

Browse files
Add OctoSTS org trust policy for toolhive-doc-mcp refresh (#19)
The toolhive-doc-mcp refresh CronJob reads docs from toolhive, toolhive-studio, and toolhive-catalog. It exchanges an EKS service account token for a read-only GitHub App token. This replaces an expired PAT. Add a CODEOWNERS entry for .github/chainguard/. Org policies in this repo can mint tokens for any repo where stacklok-octosts is installed. Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 4814d08 commit 05d18af

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# The toolhive-doc-mcp refresh CronJob reads docs from three public repos.
2+
# The token only raises the GitHub API rate limit. It grants no write access.
3+
# The CronJob requests scope "stacklok" and identity "toolhive-doc-refresh".
4+
# Infra source: stacklok/infra flux/apps/toolhive-doc-mcp/cronjob.yaml.
5+
6+
# EKS cluster OIDC issuers: dev-eks, staging-eks, production-eks.
7+
issuer_pattern: https://oidc\.eks\.us-east-1\.amazonaws\.com/id/(2B9CEB1C9C82A9475C828FA05327FA3B|5C4FEA4B26456FC60713BE9416A0FEC6|AE64839E8B984F745739BBF77BB0E457)
8+
subject: system:serviceaccount:toolhive-doc-mcp:toolhive-doc-refresh
9+
10+
# Pin token exchanges to stacklok-octosts. The App ID is a string.
11+
app: '4886385'
12+
13+
# Install stacklok-octosts on each repo in this list.
14+
repositories:
15+
- toolhive
16+
- toolhive-studio
17+
- toolhive-catalog
18+
19+
permissions:
20+
contents: read

‎CODEOWNERS‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
# Workflow changes require maintainer review
22
/.github/workflows/ @stacklok/maintain
33

4+
5+
# OctoSTS org trust policies mint GitHub tokens for org repos
6+
/.github/chainguard/ @stacklok/maintain

0 commit comments

Comments
 (0)