Repository navigation
feat(auth): Atmos Pro STS — JIT GitHub token broker for CI - #2546
Conversation
Add two new `atmos auth` kinds that let CI authenticate to private GitHub repositories with just-in-time, least-privilege, short-lived tokens and zero `.tf` changes: - Provider `kind: atmos/pro` federates the GitHub Actions OIDC token into an Atmos Pro session JWT (reuses pkg/pro exchange; audience parameterized). - Integration `kind: github/sts` mints scoped GitHub App installation tokens via POST /api/v1/sts, injects per-owner GIT_CONFIG_* rewrites (env or file mode) so vendor pull, source components, and terraform init of private git:: modules just work, then revokes them at command-end and on logout. Supporting changes: ProCredentials type (keyring-registered), realm plumbed into integrations, via.provider binding for integrations, ATMOS_PRO_GITHUB_TOKEN for go-getter, PRD, blog changelog, roadmap milestone, and docs. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (26)
💤 Files with no reviewable changes (4)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (15)
📝 WalkthroughWalkthroughIntroduces Atmos Pro CI credential brokering: an ChangesAtmos Pro STS Integration
Estimated code review effort 🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
|
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
pkg/auth/credentials/keyring_system.go (1)
87-89: 💤 Low valueConsider adding debug logging for Pro credentials.
AWS and GCP credentials include debug logging in Store (lines 57-70, 71-83). Adding similar logging for ProCredentials would improve observability and maintain consistency across credential types.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/auth/credentials/keyring_system.go` around lines 87 - 89, The Store branch handling types.ProCredentials lacks the debug logging present for AWS/GCP credentials; inside the Store function's case for *types.ProCredentials (where typ is set to "atmos-pro" and raw, err = json.Marshal(c)), add the same debug/trace log statement used in the AWS/GCP branches to log the credential type and the marshaled payload (using the same logger used elsewhere in keyring_system.go) so Pro credentials are logged consistently and any marshal errors are still captured and returned.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/auth/integrations/github/sts_test.go`:
- Around line 292-295: The helper itoa only handles single-digit integers (it
returns string(rune('0' + i))) which breaks for i >= 10; replace its
implementation to use strconv.Itoa so it returns the proper decimal string for
any int. Update the itoa function in pkg/auth/integrations/github/sts_test.go to
import strconv and call strconv.Itoa(i), ensuring tests still build and run.
In `@pkg/auth/types/pro_credentials.go`:
- Around line 30-37: The current ProCredentials.IsExpired implementation treats
unparseable or missing expirations as not expired; update
ProCredentials.IsExpired (and mention GetExpiration/Validate/ErrNotImplemented)
to fail-closed: return true when GetExpiration returns an error or nil (so
malformed tokens are treated as expired), add a brief inline comment explaining
this intentional fail-closed behavior to avoid unnecessary backend calls, and/or
add package-level doc in the pkg/auth/types package describing the validation
contract and why Validate still returns ErrNotImplemented if applicable.
---
Nitpick comments:
In `@pkg/auth/credentials/keyring_system.go`:
- Around line 87-89: The Store branch handling types.ProCredentials lacks the
debug logging present for AWS/GCP credentials; inside the Store function's case
for *types.ProCredentials (where typ is set to "atmos-pro" and raw, err =
json.Marshal(c)), add the same debug/trace log statement used in the AWS/GCP
branches to log the credential type and the marshaled payload (using the same
logger used elsewhere in keyring_system.go) so Pro credentials are logged
consistently and any marshal errors are still captured and returned.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: bbb40393-b0c7-4087-bc35-cb5959c13aa6
📒 Files selected for processing (43)
cmd/auth/exec.gocmd/auth/exec_test.godocs/prd/atmos-pro-sts.mderrors/errors.gointernal/exec/terraform_output_utils.gopkg/auth/credentials/keyring_file.gopkg/auth/credentials/keyring_memory.gopkg/auth/credentials/keyring_system.gopkg/auth/credentials/store_test.gopkg/auth/factory/factory.gopkg/auth/hooks_test.gopkg/auth/identities/atmospro/identity.gopkg/auth/identities/atmospro/identity_test.gopkg/auth/identities/aws/assume_role_test.gopkg/auth/identities/aws/assume_root_test.gopkg/auth/integrations/github/sts.gopkg/auth/integrations/github/sts_test.gopkg/auth/integrations/types.gopkg/auth/manager.gopkg/auth/manager_environment.gopkg/auth/manager_githubsts_test.gopkg/auth/manager_integrations.gopkg/auth/manager_logout.gopkg/auth/providers/atmospro/provider.gopkg/auth/providers/atmospro/provider_test.gopkg/auth/providers/aws/saml_test.gopkg/auth/types/interfaces.gopkg/auth/types/mock_interfaces.gopkg/auth/types/pro_credentials.gopkg/auth/types/pro_credentials_test.gopkg/config/load.gopkg/downloader/atmos_pro_token_test.gopkg/downloader/custom_git_detector.gopkg/pro/api_client.gopkg/schema/pro.gopkg/schema/schema.gopkg/schema/schema_auth.gowebsite/blog/2026-05-29-atmos-pro-github-sts.mdxwebsite/docs/cli/configuration/auth/identities.mdxwebsite/docs/cli/configuration/auth/index.mdxwebsite/docs/cli/configuration/auth/providers.mdxwebsite/docs/cli/environment-variables.mdxwebsite/src/data/roadmap.js
Add the JIT GitHub token broker packages (pkg/auth/broker, pkg/auth/providers/atmospro/broker), default manager, and supporting tests for provisioning the github/sts integration from the ambient CI environment. Regenerate the atmos/secrets-masking describe config golden snapshots to include the new "git_sts" and "AtmosProGithubToken" config fields, fixing the failing acceptance-test CI jobs on linux/macos/windows. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2546 +/- ##
==========================================
+ Coverage 78.65% 78.71% +0.06%
==========================================
Files 1184 1191 +7
Lines 113107 113772 +665
==========================================
+ Hits 88962 89561 +599
- Misses 19258 19288 +30
- Partials 4887 4923 +36
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Also fix two latent lint issues surfaced by the new test package: - shell_utils.go: use errors.As for *exec.ExitError (errorlint). - sts_test.go: drop always-constant params from stateFilePath helper (unparam). Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏 |
…thub-token # Conflicts: # internal/exec/shell_utils.go
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pkg/pro/api_client_pro_sts_test.go (1)
40-44: ⚡ Quick winAdjust the audience assertion to avoid URL-encoding brittleness
DefaultProAudienceisatmos-pro.com(no URL-reserved characters), and the request query is built viaq.Encode(), sor.URL.RawQueryshould still includeaudience=atmos-pro.comand the current check won’t fail for the default. If this test ever covers audiences with reserved chars (e.g.https://…), assertingr.URL.Query().Get("audience") == DefaultProAudiencewould be robust.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/pro/api_client_pro_sts_test.go` around lines 40 - 44, Replace the brittle substring check against r.URL.RawQuery in the httptest server handler with a query-param equality assertion: read the parsed query via r.URL.Query().Get("audience") and assert it equals DefaultProAudience so URL-encoding or reserved characters are handled correctly; update the assertion in the handler used in the test (the httptest NewTLSServer http.HandlerFunc) to use r.URL.Query().Get("audience") and DefaultProAudience.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@pkg/pro/api_client_pro_sts_test.go`:
- Around line 40-44: Replace the brittle substring check against r.URL.RawQuery
in the httptest server handler with a query-param equality assertion: read the
parsed query via r.URL.Query().Get("audience") and assert it equals
DefaultProAudience so URL-encoding or reserved characters are handled correctly;
update the assertion in the handler used in the test (the httptest NewTLSServer
http.HandlerFunc) to use r.URL.Query().Get("audience") and DefaultProAudience.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 9c84cffb-b073-4407-b3aa-859a3f31141d
📒 Files selected for processing (10)
cmd/auth/exec_revoke_test.gointernal/exec/shell_utils.gopkg/auth/credentials/store_pro_test.gopkg/auth/identities/atmospro/identity_methods_test.gopkg/auth/integrations/github/sts_errors_test.gopkg/auth/integrations/github/sts_test.gopkg/auth/manager_integrations_errors_test.gopkg/auth/providers/atmospro/broker/broker_provision_test.gopkg/auth/providers/atmospro/provider_methods_test.gopkg/pro/api_client_pro_sts_test.go
🚧 Files skipped from review as they are similar to previous changes (1)
- pkg/auth/integrations/github/sts_test.go
…toolchain token chain Route atmos.yaml config imports through the canonical go-getter downloader (downloader.NewGoGetterDownloader) instead of a bare getter.Client, so remote config imports get the same GitHub authentication as every other remote read: the CustomGitDetector injects a token into the URL (ATMOS_PRO_GITHUB_TOKEN > ATMOS_GITHUB_TOKEN > GITHUB_TOKEN) and the Atmos Pro credential broker exports GIT_CONFIG_* for the spawned git subprocess. Previously a private-repo import: was fetched unauthenticated. Thread atmosConfig through ImportAdapter.Resolve, processImports, and ProcessImportsFromAdapter (all adapters + registry no-op updated). Prefer ATMOS_PRO_GITHUB_TOKEN in pkg/http GetGitHubTokenFromEnv so the go-github REST API client and toolchain installs use the same token. Add ATMOS_PRO_GITHUB_TOKEN to the toolchain --github-token env binding so the viper key does not shadow it when CI auto-sets GITHUB_TOKEN. Vendoring and source provisioning already fetch through NewGoGetterDownloader and are unchanged, preserving their existing per-source retries and timeouts. Config imports keep their existing 5s timeout (no retry, matching the sibling !include and remote stack import paths). Also convert three pre-existing error type switches in pkg/config/load.go to errors.As (errorlint) so the package passes lint. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
💥 This pull request now has conflicts. Could you fix it Erik Osterman (Cloud Posse) (@osterman)? 🙏 |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
pkg/config/adapters/gogetter_adapter.go (1)
55-68:⚠️ Potential issue | 🟠 Major | 🏗️ Heavy liftKeep remote-import cancellation wired to the caller context.
GoGetterAdapter.Resolvereceivesctxbut never uses it;downloadRemoteConfigcallsFetch(..., remoteConfigTimeout)without any context, so cancellation/deadlines won’t stop an in-flight remote fetch until the fixed 5s timeout. (Also affectsdownloadRemoteConfigat ~108-127.)Update
downloadRemoteConfig(and the downloader path it calls) to acceptctxand derive the timeout fromctx’s deadline, falling back toremoteConfigTimeoutonly when the caller has no deadline.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/config/adapters/gogetter_adapter.go` around lines 55 - 68, GoGetterAdapter.Resolve currently ignores the passed ctx and calls downloadRemoteConfig which uses a fixed timeout; update downloadRemoteConfig signature to accept ctx (e.g., downloadRemoteConfig(ctx context.Context, importPath, tempDir string, atmosConfig *schema.AtmosConfiguration) ) and change its downstream downloader call (the Fetch invocation) to derive a timeout from ctx's deadline (use time.Until if deadline present) and only fall back to remoteConfigTimeout when no deadline exists; finally, update GoGetterAdapter.Resolve to pass its ctx into downloadRemoteConfig so cancellation/deadlines from the caller propagate.pkg/config/import_test_helpers_test.go (1)
24-32: 🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick winPreserve
atmosConfigthrough the helper’s recursive path.This helper accepts the new parameter, then drops it and always recurses with
nil. That means the nested-import tests can’t catch regressions in the auth/config propagation this PR adds.Suggested fix.
func (l *testLocalAdapter) Resolve( _ context.Context, importPath string, basePath string, tempDir string, currentDepth int, maxDepth int, - _ *schema.AtmosConfiguration, + atmosConfig *schema.AtmosConfiguration, ) ([]ResolvedPaths, error) { @@ // Recursively process nested imports. if len(imports) > 0 { - nestedPaths, err := ProcessImportsFromAdapter(nil, importBasePath, imports, tempDir, currentDepth+1, maxDepth) + nestedPaths, err := ProcessImportsFromAdapter(atmosConfig, importBasePath, imports, tempDir, currentDepth+1, maxDepth) if err != nil { log.Debug("failed to process nested imports from", "path", path, "error", err) continue }As per coding guidelines,
**/*_test.go: Every new feature must include comprehensive unit tests targeting >80% code coverage for all packages.Also applies to: 85-88
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/config/import_test_helpers_test.go` around lines 24 - 32, The testLocalAdapter.Resolve helper accepts an atmosConfig parameter but drops it on recursive calls (passing nil), which breaks propagation of auth/config to nested imports; update testLocalAdapter.Resolve so any recursive invocation (the call that currently passes nil) forwards the received atmosConfig instead of nil, ensuring the atmosConfig is preserved through recursion and nested-import tests can validate auth/config propagation; adjust any associated helper invocations in Resolve to use the atmosConfig variable.
🧹 Nitpick comments (1)
pkg/http/client_test.go (1)
589-643: ⚡ Quick winCover the flag-over-env case with
ATMOS_PRO_GITHUB_TOKENtoo.This table only proves the raw env fallback order. Since
ATMOS_PRO_GITHUB_TOKENis now the highest env source, please add a case whereviperhas"github-token"set andATMOS_PRO_GITHUB_TOKENis also populated, so we keep guarding the CLI flag precedence contract.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pkg/http/client_test.go` around lines 589 - 643, Add a test case inside TestGetGitHubTokenFromEnv_AtmosProPrecedence that verifies flag/cli precedence: create a subtest where you set viper with the "github-token" key (e.g., v := viper.New(); v.Set("github-token", "flag-token")) and also set the ATMOS_PRO_GITHUB_TOKEN env var to a different value, then call GetGitHubTokenFromEnv(v) and assert the result equals the viper value ("flag-token"); this ensures the function respects the viper/flag precedence over the new ATMOS_PRO_GITHUB_TOKEN env fallback.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pkg/config/adapters/adapters_test.go`:
- Line 451: The test currently passes a hardcoded Unix-only path
"/nonexistent/temp/dir" to adapter.Resolve; replace that with a child path built
under the test's temporary directory so the missing-path behavior is portable.
Construct the path using t.TempDir() and filepath.Join (e.g.,
filepath.Join(t.TempDir(), "nonexistent", "temp", "dir")) but do not create the
directory so adapter.Resolve still fails; update the test call to
adapter.Resolve(ctx, "mock://test", missingPath, "/base", 1, 10, nil) and ensure
the test imports and uses filepath.Join and t.TempDir() instead of the hardcoded
literal.
---
Outside diff comments:
In `@pkg/config/adapters/gogetter_adapter.go`:
- Around line 55-68: GoGetterAdapter.Resolve currently ignores the passed ctx
and calls downloadRemoteConfig which uses a fixed timeout; update
downloadRemoteConfig signature to accept ctx (e.g., downloadRemoteConfig(ctx
context.Context, importPath, tempDir string, atmosConfig
*schema.AtmosConfiguration) ) and change its downstream downloader call (the
Fetch invocation) to derive a timeout from ctx's deadline (use time.Until if
deadline present) and only fall back to remoteConfigTimeout when no deadline
exists; finally, update GoGetterAdapter.Resolve to pass its ctx into
downloadRemoteConfig so cancellation/deadlines from the caller propagate.
In `@pkg/config/import_test_helpers_test.go`:
- Around line 24-32: The testLocalAdapter.Resolve helper accepts an atmosConfig
parameter but drops it on recursive calls (passing nil), which breaks
propagation of auth/config to nested imports; update testLocalAdapter.Resolve so
any recursive invocation (the call that currently passes nil) forwards the
received atmosConfig instead of nil, ensuring the atmosConfig is preserved
through recursion and nested-import tests can validate auth/config propagation;
adjust any associated helper invocations in Resolve to use the atmosConfig
variable.
---
Nitpick comments:
In `@pkg/http/client_test.go`:
- Around line 589-643: Add a test case inside
TestGetGitHubTokenFromEnv_AtmosProPrecedence that verifies flag/cli precedence:
create a subtest where you set viper with the "github-token" key (e.g., v :=
viper.New(); v.Set("github-token", "flag-token")) and also set the
ATMOS_PRO_GITHUB_TOKEN env var to a different value, then call
GetGitHubTokenFromEnv(v) and assert the result equals the viper value
("flag-token"); this ensures the function respects the viper/flag precedence
over the new ATMOS_PRO_GITHUB_TOKEN env fallback.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 7a00c8b9-0261-4520-b84b-d316dd9014fc
📒 Files selected for processing (15)
cmd/toolchain/toolchain.gopkg/config/adapters/adapters_test.gopkg/config/adapters/gogetter_adapter.gopkg/config/adapters/local_adapter.gopkg/config/adapters/mock_adapter.gopkg/config/import_adapter.gopkg/config/import_adapter_registry.gopkg/config/import_adapter_registry_test.gopkg/config/import_test.gopkg/config/import_test_helpers_test.gopkg/config/imports.gopkg/config/imports_error_paths_test.gopkg/config/load.gopkg/http/client.gopkg/http/client_test.go
…thub-token # Conflicts: # pkg/config/load.go
Replace the hardcoded Unix-only paths with a missing child path under t.TempDir() (left uncreated) so the write-failure case is exercised identically on Linux/macOS/Windows. The failure is driven by the tempDir argument (where MockAdapter.writeConfig writes), so the missing path is passed there. Addresses CodeRabbit review feedback. Co-Authored-By: Claude Opus 4.8 <[email protected]>
…S parity)
Export the raw minted GitHub token under a named env var (literal or
{owner} placeholder) so non-git consumers (gh, actions/checkout, REST API)
can use it, mirroring the Octo-STS action. Adds schema field, env/file-mode
wiring, owner sanitization, tests, PRD, blog, and docs.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
www.anthropic.com/claude-code now 301-redirects to claude.com/product/ claude-code, whose edge returns HTTP 500 to non-browser/CI requests (bot-blocking), failing the Check Markdown Links job. Point the link at the canonical claude.com URL and exclude claude.com/product/ in lychee.toml, mirroring the existing exclusions for domains that block CI requests. The code.claude.com docs subdomain stays checked. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
|
These changes were released in v1.221.0-rc.2. |
#2557) * fix(auth): make github/sts compose with default GitHub token injection The just-shipped github/sts feature (#2546) mints least-privilege tokens and routes git over them via GIT_CONFIG_* insteadOf rewrites, but for Atmos-native go-getter reads (vendor pull, source:, remote import:) CustomGitDetector injected the ambient GITHUB_TOKEN into the URL first. Once the URL carried userinfo, git's insteadOf no longer prefix-matched, silently shadowing the minted token — a second private repo failed to clone with "Repository not found". The only fix was the settings.inject_github_token: false workaround. - Skip URL token injection when a live GIT_CONFIG_* insteadOf already matches the URL's host/owner, so git's rewrite (correct minted token) wins; host/owner-scoped, so non-minted owners still get injected. - resolveToken falls back to live os.Getenv("ATMOS_PRO_GITHUB_TOKEN") (the broker sets it after startup), mirroring pkg/http/client.go. - token_env now defaults to ATMOS_PRO_GITHUB_TOKEN so a single-owner mint bridges to gh/REST and the in-process git path automatically. - Replace the ad-hoc {owner} placeholder with Atmos-standard Go template syntax ({{ .owner }}, plus .host) for token_env. Reproduced first with a simulated-broker e2e test, then fixed. Docs and PRD updated. Co-Authored-By: Claude Opus 4.8 <[email protected]> * docs(auth): clarify ATMOS_PRO_GITHUB_TOKEN default is single-owner only Address CodeRabbit review on PR #2557: the default-export sentence read as unconditional, but the raw token export only happens for a single-owner mint when token_env is left at its default. Multi-owner mints under the literal default skip the bare var and rely on the GIT_CONFIG_* rewrites. Co-Authored-By: Claude Opus 4.8 <[email protected]> * [autocommit] formatting fixes * fix(notice): make license URLs deterministic for vanity-path modules The NOTICE generator (scripts/generate-notice.sh) resolves each dependency's license URL via `go-licenses report`, which does a network fetch to map a module's import path to its source repo. For vanity import paths whose source lives on a different host (dario.cat/mergo -> github.com/imdario/mergo, inet.af/netaddr -> github.com/inetaf/netaddr) that fetch is flaky, so a regen run that can't reach the vanity domain emits "URL: Unknown" and produces a spurious NOTICE diff (which dependency-review.yml then fails on). Add a deterministic override step: for the affected vanity modules, rebuild the LICENSE URL from the version already pinned in go.mod (`go list -m`, no network). Tags are used verbatim; pseudo-versions resolve to their trailing commit hash so the GitHub blob URL is valid. The override is a plain newline-delimited list (not a bash 4 associative array) so it works on macOS's stock bash 3.2. NOTICE: inet.af/netaddr URL is now a concrete link instead of "Unknown"; dario.cat/mergo is unchanged (the override reproduces its existing URL). Co-Authored-By: Claude Opus 4.8 <[email protected]> * docs(auth): remove Octo-STS comparison from product surface Octo-STS is an external project; referencing it as a comparison point in shipped code comments, the blog post, and user-facing docs is undesirable. Reword those mentions to describe the github/sts raw-token export capability generically (mint a token, hand it to any GitHub-token consumer). The only surviving Octo-STS reference now lives in a new References section of the PRD, credited as inspiration rather than framed as parity. Co-Authored-By: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]> Co-authored-by: atmos-pro[bot] <173522224+atmos-pro[bot]@users.noreply.github.com> Co-authored-by: Andriy Knysh <[email protected]>
what
kind: atmos/prothat authenticates the Atmos CLI to Atmos Pro by federating the GitHub Actions runner's OIDC token into an Atmos Pro session JWT (v1 is OIDC-only).kind: github/sts— a just-in-time GitHub token broker for CI. On login it mints short-lived, scoped GitHub App installation tokens viaPOST /api/v1/sts, materializes them as per-ownerGIT_CONFIG_*URL rewrites (envorfilemode), and revokes them at command-end (viaatmos auth execin CI) and onatmos auth logout.kind: atmos/proidentity, a keyring-registeredProCredentialstype, realm scoping for integration state, andvia.providerbinding for integrations (in addition tovia.identity).ATMOS_PRO_GITHUB_TOKEN, preferred by Atmos-native git operations (vendoring,source:provisioning, go-getter) ahead ofATMOS_GITHUB_TOKEN/GITHUB_TOKEN.docs/prd/atmos-pro-sts.md), a changelog blog post, a shipped roadmap milestone, and configuration docs; full unit-test coverage for the provider, identity, integration, keyring round-trip,via.providermatching, revoke gating, and token precedence.why
source:components, and vendored artifacts in CI today requires a long-lived, over-privileged GitHub credential (PAT, machine user, or deploy key) sitting in a CI secret — a standing breach risk that can't be scoped per-run..tfchanges (the injectedGIT_CONFIG_*rewrites are honored by both go-getter and Terraform's native git), and multi-org support because tokens are minted per(installation, permission-set).aws/ecr/aws/eksintegrations; the workflow only needspermissions: id-token: write.references
docs/prd/atmos-pro-sts.md(includes deferred Future Work: moving Pro connection config underauth, unifyingpkg/proonto auth-issued sessions, and broadening command-end revoke beyondatmos auth exec)website/blog/2026-05-29-atmos-pro-github-sts.mdxSummary by CodeRabbit
New Features
Documentation