Skip to content

fix(linear): default the Identity vault on so Linear tokens cannot silently expire - #1008

Closed
isadeks wants to merge 5 commits into
mainfrom
feat/998-linear-identity-vault-default
Closed

isadeks wants to merge 5 commits into
mainfrom
feat/998-linear-identity-vault-default

Conversation

@isadeks

@isadeks isadeks commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Closes #998.

enableLinearIdentityVault now defaults to whether AgentCore is deployed.

  • AgentCore being deployed already proves the region has AgentCore, so the vault is safe to default on there. Deployments without AgentCore keep Secrets Manager.
  • true|false still overrides, and any other value fails synth instead of silently picking a store.

Why: a Secrets Manager workspace that ABCA didn't use for a while let its refresh token expire. Every Linear trigger then failed silently until someone re-consented through the CLI's localhost callback, which a browser on another machine can't reach. The vault refreshes the grant itself and ships a hosted consent page.

Existing deployments are unaffected:

  • Stacks already on the vault keep their resources and logical IDs.
  • A Secrets Manager workspace keeps working until bgagent linear setup moves it; the resolver picks per workspace via provider_name.

Budget: mise //cdk:census passes all 112 supported profiles with the vault on. The all-backends inline-network profile was already an expected rejection. The compute-selection "all backends" wiring test pins the vault off, with a comment, to stay under CloudFormation's 500-resource limit.

Other changes: the CLI hints, the Linear setup guide (which now recommends the vault and explains why) and ADR-016 are updated.

Tests

  • Vault gate: on by default with AgentCore; off with compute_types: 'ecs' and with explicit false; an invalid value throws.
  • The solution-Lambda count goes 47 → 49 (the vault provider functions).
  • CDK 5,859 passed, CLI 1,079, agent 1,800; lint and drift are green.

@isadeks
isadeks requested review from a team and backgroundagents as code owners November 5, 2026 14:31
…loyed

A Secrets Manager workspace that ABCA did not use for a while let its
Linear refresh token expire, so every Linear trigger failed silently
until someone re-consented through the CLI's localhost callback. The
vault refreshes the grant itself and ships a hosted consent page.

- enableLinearIdentityVault now defaults to whether AgentCore is
  deployed (which proves the region has AgentCore); deployments without
  AgentCore keep Secrets Manager. true|false still overrides, and any
  other value fails synth.
- Existing vault deployments keep their resources and logical IDs; a
  Secrets Manager workspace keeps working until `bgagent linear setup`
  moves it (the resolver picks per workspace via provider_name).
- Census: all 112 supported profiles pass with the vault on; the
  all-backends inline-network profile was already an expected rejection.
- CLI hints and the setup guide / ADR-016 describe the new default.
@isadeks
isadeks force-pushed the feat/998-linear-identity-vault-default branch from 405c505 to 60bacdb Compare November 5, 2026 14:37
With the vault on by default wherever AgentCore is deployed, the explicit
opt-in only matters for deployments without AgentCore.
@isadeks isadeks changed the title feat(linear): default the Identity vault on wherever AgentCore is deployed fix(linear): default the Identity vault on so Linear tokens cannot silently expire Nov 5, 2026
main now rejects enableLinearIdentityVault without the linear feature, so a
default derived from AgentCore alone failed every stack synthesized without
Linear. An explicit true without Linear still fails.
@isadeks

isadeks commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #1067, which carries this change (its commits are kept as they were, followed by one commit that adapts the combined set to current main). Closing to keep one place for review.

@isadeks isadeks closed this Nov 25, 2026
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.

feat(linear): default the Identity vault on wherever AgentCore is deployed

1 participant