89 Commits

Author SHA1 Message Date
github-actions[bot] b97fcb0a93 Version Packages 2026-05-19 18:28:24 +00:00
github-actions[bot] 42a2f56e61 Version Packages (next) 2026-05-12 18:28:01 +00:00
Brian Hudson 8df06ec2bc feat(integration-aws-node): add per-account webIdentityTokenFile config
Adds an optional `webIdentityTokenFile` field to
`AwsIntegrationAccountConfig` and `AwsIntegrationDefaultAccountConfig`.
When set on a per-account config along with a `roleName` and no static
credentials, `DefaultAwsCredentialsManager` now retrieves credentials
by calling `AssumeRoleWithWebIdentity` directly using the file's
contents as the web identity token (via `fromTokenFile`). The token
file is re-read on each refresh, so an external process can rotate it
in place — the same mechanism EKS IRSA uses, where the kubelet rotates
a projected service account token at the path identified by
`AWS_WEB_IDENTITY_TOKEN_FILE`.

This unlocks multi-account `AssumeRoleWithWebIdentity` for backends
running outside AWS (GKE, Cloud Run, Vault sidecars, etc.) without
requiring every plugin to construct a custom `AwsCredentialsManager`.
Existing call sites and configurations are unaffected — the new path
is opt-in via the new optional field.

Validator rejects:

- `webIdentityTokenFile` combined with static credentials
  (`accessKeyId`/`secretAccessKey`) on the same account
- `webIdentityTokenFile` combined with `profile` on the same account
- `webIdentityTokenFile` without a `roleName` (matches the existing
  precedent for `externalId`/`region`/`partition` without `roleName`)
- `webIdentityTokenFile` combined with `externalId` (the STS
  `AssumeRoleWithWebIdentity` API does not accept an external ID)

Same rules apply at the `accountDefaults` level. The `!config.accessKeyId`
guard in `getSdkCredentialProvider` is defensive — it protects callers
that build an `AwsIntegrationAccountConfig` directly without going
through `readAwsIntegrationConfig`. In that case we fall through to the
existing static-creds AssumeRole path.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Brian Hudson <brian.r.hudson@gmail.com>
2026-05-07 07:43:47 -04:00
github-actions[bot] 1cc86bee1c Version Packages (next) 2026-04-21 15:07:43 +00:00
Fredrik Adelöw 8e7f7249e7 chore: regenerate knip reports
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
Made-with: Cursor
2026-04-16 12:14:47 +02:00
github-actions[bot] 93e643d142 Version Packages 2026-04-14 14:57:31 +00:00
github-actions[bot] 6c10d88c13 Version Packages (next) 2026-04-07 15:30:58 +00:00
Fredrik Adelöw 3b38dd0249 fix: mock fromTemporaryCredentials at module boundary instead of nested STS client
Replace the @aws-sdk/nested-clients/sts mock with a mock of
fromTemporaryCredentials itself. This avoids depending on AWS SDK
internal implementation details while still verifying that the correct
role ARN, session name, and external ID are passed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
2026-03-10 15:29:30 +01:00
Fredrik Adelöw 6c865dbd1d fix: use AWS_SHARED_CREDENTIALS_FILE instead of smithy internals in tests
Replace the brittle @smithy/shared-ini-file-loader internals hack with
temp credential files and AWS_SHARED_CREDENTIALS_FILE/AWS_CONFIG_FILE
env vars, which is the official AWS SDK mechanism for this.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
2026-03-10 14:29:39 +01:00
Fredrik Adelöw d3cb061c5f Update packages/integration-aws-node/src/DefaultAwsCredentialsManager.test.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-03-10 14:29:39 +01:00
Fredrik Adelöw f3f5cac4d1 fix: update DefaultAwsCredentialsManager tests for new AWS SDK internals
The AWS SDK now uses @aws-sdk/nested-clients/sts internally in
fromTemporaryCredentials, so the tests need to mock both the regular
and nested STS clients. Also adapts to the new $source metadata on
credentials and the new @smithy/shared-ini-file-loader for ini profile
mocking.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@spotify.com>
2026-03-10 14:29:39 +01:00
github-actions[bot] e6df5d52ce Version Packages 2026-02-17 16:06:18 +00:00
github-actions[bot] d4b85dddee Version Packages (next) 2026-01-27 15:51:11 +00:00
Fredrik Adelöw 7455dae884 require the use of node prefix on native imports
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2026-01-26 13:22:53 +01:00
github-actions[bot] 792f4d7e3d Version Packages 2025-11-18 12:23:09 +00:00
github-actions[bot] 807af8ce0e Version Packages (next) 2025-10-21 16:14:43 +00:00
Patrik Oldsberg b436f73803 Merge pull request #31166 from schultzp2020/constructor-parameters
refactor: convert constructor parameter properties for erasableSyntaxOnly compatibility
2025-10-15 18:56:42 +02:00
github-actions[bot] d6ce2db9ca Version Packages 2025-10-14 15:29:54 +00:00
Paul Schultz 05f60e1e0a refactor: convert constructor parameter properties for erasableSyntaxOnly compatibility
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-10-14 08:29:21 -05:00
github-actions[bot] c2c60546d2 Version Packages (next) 2025-09-24 12:57:42 +00:00
Paul Schultz 133ac7ad66 fix(repo-tools): resolve knip-reports failure with spaces in workspace paths
Signed-off-by: Paul Schultz <pschultz@pobox.com>
2025-09-15 12:34:26 -05:00
github-actions[bot] 9a7cae26c9 Version Packages 2025-07-15 14:26:41 +00:00
github-actions[bot] 952cefedd8 Version Packages (next) 2025-07-01 11:50:02 +00:00
github-actions[bot] 389d265b60 Version Packages 2025-05-20 08:25:02 +00:00
Vincenzo Scamporlino 2061b44e10 Merge pull request #29732 from backstage/rugvip/new-areas
OWNERS.md: add new distinct areas for maintainer team
2025-05-07 11:02:12 +02:00
github-actions[bot] 35a0c4b598 Version Packages (next) 2025-05-06 13:51:57 +00:00
Patrik Oldsberg 83656f8999 .github/CODEOWNERS: adjust ownership for new project areas
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2025-05-05 14:19:45 +02:00
Lee Chiang Fong 01dec025fe Use mainAccount's region as stsRegion
Signed-off-by: Lee Chiang Fong <lee_chiang_fong@tech.gov.sg>
2025-04-22 15:03:05 +08:00
Lee Chiang Fong 97907dcefe Use a default region for mainAccount's STS region
Signed-off-by: Lee Chiang Fong <lee_chiang_fong@tech.gov.sg>
2025-04-22 15:03:05 +08:00
Lee Chiang Fong 2d0afb02bc Make mock stsClient fail when region is missing
Signed-off-by: Lee Chiang Fong <lee_chiang_fong@tech.gov.sg>
2025-04-22 15:03:05 +08:00
github-actions[bot] 43f666371b Version Packages 2025-01-14 12:23:31 +00:00
github-actions[bot] 0980e400a0 Version Packages (next) 2025-01-07 15:04:17 +00:00
github-actions[bot] cfdf107d34 Version Packages 2024-12-17 10:54:05 +00:00
github-actions[bot] 134bc9981f Version Packages (next) 2024-12-10 12:54:09 +00:00
github-actions[bot] 1552f03186 Version Packages 2024-11-19 11:21:20 +00:00
github-actions[bot] ecdb1ce0b6 Version Packages (next) 2024-11-12 21:18:54 +00:00
Kaemon Lovendahl 399a7c8659 Merge branch 'backstage:master' into add-region-to-aws-provider-chain 2024-10-30 15:54:25 -04:00
KaemonIsland c19f109d9e Update comment
Signed-off-by: KaemonIsland <kaemonlovendahl@outlook.com>
2024-10-17 10:52:49 -04:00
KaemonIsland 45221d9ea3 Update unit tests for correct mocking
Signed-off-by: KaemonIsland <kaemonlovendahl@outlook.com>
2024-10-14 15:21:08 -04:00
blam fc01ce7e77 chore: fix api-reports warnings
Signed-off-by: blam <ben@blam.sh>
2024-10-14 17:56:00 +02:00
KaemonIsland aa21f6ef6c Update unit tests
Signed-off-by: KaemonIsland <kaemonlovendahl@outlook.com>
2024-10-08 13:44:15 -04:00
KaemonIsland 9e3e04d231 Add unit tests
Signed-off-by: KaemonIsland <kaemonlovendahl@outlook.com>
2024-10-08 12:50:55 -04:00
KaemonIsland 9457319d26 Add region param to the getDefaultCredentialsChain
Signed-off-by: KaemonIsland <kaemonlovendahl@outlook.com>
2024-10-07 16:57:21 -04:00
secustor c28596309f update files
Signed-off-by: secustor <sebastian@poxhofer.at>
2024-09-23 14:41:40 +02:00
secustor 65da28ad53 add newly generated api reports
Signed-off-by: secustor <sebastian@poxhofer.at>
2024-09-23 14:41:34 +02:00
github-actions[bot] bb8923602f Version Packages 2024-03-27 09:37:09 +00:00
Fredrik Adelöw 04655bb318 Generate Release
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2024-03-22 21:41:20 +01:00
renovate[bot] 823cf8e4df Update dependency aws-sdk-client-mock-jest to v4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 23:17:31 +00:00
Fredrik Adelöw 17c0ab6fef Merge pull request #23668 from backstage/renovate/aws-sdk-client-mock-4.x
Update dependency aws-sdk-client-mock to v4
2024-03-21 00:08:57 +01:00
github-actions[bot] e83e055841 Version Packages 2024-03-19 14:56:10 +00:00