Repository navigation
fix(docs): match auth and getting-started to the platform code - #5
Merged
Merged
Conversation
Internal Cognito pool uses Google OIDC, the registry file is groups/members.yaml, SSO sessions last 4 hours, and javabin-developer cannot reach team resources. Adds how AWS sign-in works end to end and what to do when a Google account is not provisioned into Identity Center. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
The review follow-up only touched the platform repo, so this PR has no changes. Details: javaBin/platform#179 (commit 1cc0885). 🤖 Generated with Claude Code |
…oned Members without role: are GitHub team maintainers; role: member restricts them. AWS access goes through direct membership of javabin-developer@, Google SCIM, and the 3-hourly provisioner run (platform #180). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Pushed cc27d9b: the GitHub team role now matches platform#180 (no |
Alexanderamiri
added a commit
to javaBin/platform
that referenced
this pull request
Oct 31, 2026
…identity module (#179) ## Problem Several comments and docs still describe the old setup: - `terraform/modules/cognito-app-client/main.tf` says "the shared execution role reads /<project>/apps/* at task launch". Tasks now use per-team roles `javabin-ecs-exec-{team}`, which can read only `/javabin/apps/{team}/*` (`terraform/platform/iam/main.tf`, `terraform/modules/platform-data/main.tf`). - The `terraform/platform/iam/main.tf` header still calls `javabin-ecs-execution` "the shared execution role for all ECS tasks" that "reads secrets". The resource comment right below it says the role is deprecated and has no secrets access. - `docs/platform-modules.md` and `docs/reusable-modules.md` list `javabin-ecs-execution` as the role that reads secrets / the role `platform-data` returns. - The `docs/platform-modules.md` identity section says "Not yet implemented ... blocked on Google Admin access for SAML federation". The module is deployed and the internal pool signs in through Google OIDC (#175). ## Change The comments and docs now match the code. Only comments and docs change; there is no behaviour change. The developer-facing docs (auth, getting started, how AWS sign-in works and what to do when a Google account isn't provisioned into Identity Center) live in javaBin/docs: javaBin/docs#5 ## Verification - Checked the text against `iam/main.tf` (`aws_iam_role.ecs_exec_team`, `ecs_exec_team_secrets`), `platform-data` (`data.aws_iam_role.ecs_execution` = `javabin-ecs-exec-${var.team}`), `identity/main.tf` and `variables.tf` (`internal_identity_providers = ["Google"]`). Read-only live check: the internal pool has `Google` and `GoogleSAML`, and both clients offer only `Google`. - `terraform fmt -check` on the touched dirs passes. `terraform validate` in `cognito-app-client` passes (the only warning, about `aws_region.name`, was already there). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A developer-experience audit found these docs disagree with the platform code:
auth.mdandplatform-overview.mdsay the internal Cognito pool signs in through Google Workspace SAML. platform#175 moved it to Google OIDC (terraform/platform/identity/main.tf, providerGoogle). In live AWS both internal-pool clients offer onlyGoogle.auth.md,getting-started.mdandplatform-overview.mdcitegroups/heros.yaml. The registry file isgroups/members.yaml.getting-started.mdalso saidhelteris implied; the registry now requires every membership to be listed.auth.mdlistsjavabin-developeras a normal permission set. SSO sessions carry noteamtag, so it cannot reach team resources (platformCLAUDE.md, known issues).getting-started.mdsays sessions last about 8 hours. Every permission set isPT4H(terraform/org/variables.tf,team_provisioner/handler.py; confirmed live for all 8 permission sets).Change
auth.md: Cognito internal pool is Google OIDC (Internal consent screen,@java.noonly). Corrected the Identity Center section: team permission sets, registry groups and the permission sets they get,javabin-developer's limitation, 4h sessions. New sections: "How sign-in works" (Google provisions only direct members ofdrift@,styret@andjavabin-developer@java.no; the provisioner adds team and kodesmia members tojavabin-developer@; Google SCIM creates the Identity Center user; the provisioner run every 3 hours adds them toteam-<team>, giving thejavabin-team-<team>role) and "When AWS sign-in fails" (not provisioned: ask a platform admin; role missing: wait for the 3-hourly run, then ask a platform admin).getting-started.mdsays sessions last about 8 hours. Every permission set isPT4H(terraform/org/variables.tf,team_provisioner/handler.py; confirmed live for all 8 permission sets).Change
auth.md: Cognito internal pool is Google OIDC (Internal consent screen,@java.noonly). Corrected the Identity Center section: team permission sets, registry groups and the permission sets they get,javabin-developer's limitation, 4h sessions. New sections: "How sign-in works" (Google account, then Google AWS app SCIM auto-provisioning scope, then registry provisioning intoteam-<team>, then portal or CLI) and "When AWS sign-in fails" (not provisioned: a Google admin has to add the account to the app's auto-provisioning scope, then someone re-runsProvision Teams/Provision Groups, because the provisioner skips users who aren't in Identity Center yet).getting-started.md: GitHub team role (members withoutrole:are maintainers,role: memberrestricts them; the Google Group keeps MEMBER unlessrole: maintainer), the AWS access flow above,members.yaml, explicit memberships,access.yamlin the tree, 4h sessions, a warning aboutjavabin-developer, and a link to the troubleshooting section.platform-overview.md: OIDC,members.yaml.Verification
Checked every statement against platform
origin/main(identity module,terraform/org,team_provisionersync_identity_center_group/sync_group_to_identity_centerskip logic,dnsportal redirect), registryorigin/main(groups/, workflows) and live AWS read-only: internal-pool IdPs and client IdPs, permission set session durations,aws.javabin.no302 tohttps://javabin.awsapps.com/start/. Identity Center has 24 users against ~70 registry members, which fits a limited auto-provisioning scope. I could not see the Google Admin side, so the scope itself isn't confirmed. The role default and AWS access flow are checked against platformfix/provisioner-team-access(#180):GITHUB_DEFAULT_TEAM_ROLEand_google_role_forinteam_provisioner/handler.py,SCIM_GROUPS/AWS_ACCESS_GROUP,sync_access_memberson therate(3 hours)schedule interraform/platform/lambdas/main.tf,_ensure_team_permission_set, anddocs/lambda-functions.md"How a member gets AWS access". Docs-only change, so there are no tests.The CLI has the same problems (
cmd/aws.go"about 8 hours",README.md"~8h",cmd/secret.goandCLAUDE.md"needs javabin-developer"). Those are reported separately for the javabin-cli repo.🤖 Generated with Claude Code