Skip to content

Settings: a self-hosted install's own AWS account never asks for a stack in AWS - #335

Merged
nambok merged 1 commit into
mainfrom
selfhost-own-account-read
Nov 8, 2026
Merged

nambok merged 1 commit into
mainfrom
selfhost-own-account-read

Conversation

@nambok

@nambok nambok commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

On a self-hosted install, the AWS card for the install's own account showed "Update needed: N new read-only permissions" and an Update in AWS button. That button sends a person to launch a stack in AWS. The platform change linked below reads that account with the install's own roles, and the install's stack keeps their permissions current with each version update. This change makes the card and the permissions panel match.

Changes

  • src/components/connections.tsx:
    • When the API marks the account install_account, the card explains that the install reads its own account with its own role, and that version updates bring that role's permissions.
    • If a permission is still missing, the card shows a neutral note, "These read-only permissions come with the next version update", with a link to Version and updates. It never shows Update in AWS for this account.
    • Other accounts are unchanged.
  • src/components/aws-permissions.tsx: for the install's own account, the problem is shown in neutral rather than as an error, with the same link.
  • src/lib/api.ts: an optional install_account field on AwsAccountAbilities and AwsPermissions.
  • e2e/integrations-page.spec.ts: a new test, "a self-hosted install's own account never asks for a stack in AWS". It checks:
    • the note and its link are shown;
    • the card describes the install's own account;
    • there's no Update in AWS link, and CoderHelmLogReader isn't mentioned.

Verification

  • tsc --noEmit passes.
  • npx playwright test e2e/integrations-page.spec.ts e2e/aws-permissions.spec.ts e2e/no-sideways-scroll*.spec.ts: 116 passed, 0 failed.
    • This includes the existing "an AWS role without the permissions offers the one-click stack" test, which still passes for other accounts.

…ack in AWS

The install reads its own account with its own roles, whose read-only permissions arrive with each version update. Its card and the permissions panel say so, with a link to Version and updates, and never show Update in AWS. Other accounts keep the update stack.
@nambok
nambok merged commit 43c31fa into main Nov 8, 2026
10 checks passed
@nambok
nambok deleted the selfhost-own-account-read branch November 8, 2026 03:13
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.

1 participant