Skip to content

feat(auth): add support for new service version in VPC Instance Auth#359

Merged
pyrooka merged 11 commits into
mainfrom
lt/vpc-auth-extension
Jun 19, 2026
Merged

feat(auth): add support for new service version in VPC Instance Auth#359
pyrooka merged 11 commits into
mainfrom
lt/vpc-auth-extension

Conversation

@diatrcz

@diatrcz diatrcz commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

This PR adds support for the new VPC Instance Metadata Service version (2025-08-26) with the following changes:

  • Added configurable ServiceVersion field (default: "2022-03-01") that switches to new API paths (/identity/v1/token, /identity/v1/iam_tokens) when set to "2025-08-26"
  • Added TokenLifetime field (default: 300s) for customizable token expiration
  • Configuration via builder methods (SetServiceVersion(), SetTokenLifetime()) or VPC_IMS_VERSION environment variable
  • Full backward compatibility with older service versions
Checklist
  • npm test passes (tip: npm run lint-fix can correct most style issues)
  • tests are included
  • documentation is changed or added

diatrcz added 5 commits June 4, 2026 16:01
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
@diatrcz diatrcz marked this pull request as ready for review June 10, 2026 14:58
@diatrcz diatrcz requested review from Andris28 and pyrooka June 10, 2026 14:58
@pyrooka pyrooka changed the title feat(auth): add support for new service version in VPC Instant Auth feat(auth): add support for new service version in VPC Instance Auth Jun 18, 2026

@pyrooka pyrooka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it's pretty good, just a few comments to address before merging.

Comment thread Authentication.md Outdated
Comment thread auth/token-managers/vpc-instance-token-manager.ts Outdated
Comment thread auth/token-managers/vpc-instance-token-manager.ts
Comment thread auth/authenticators/vpc-instance-authenticator.ts Outdated
Comment thread auth/token-managers/vpc-instance-token-manager.ts Outdated
Comment thread auth/token-managers/vpc-instance-token-manager.ts Outdated
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
@diatrcz diatrcz requested a review from pyrooka June 19, 2026 12:47
diatrcz and others added 5 commits June 19, 2026 14:47
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
Signed-off-by: Norbert Biczo <pyrooka@users.noreply.github.com>
Signed-off-by: Norbert Biczo <pyrooka@users.noreply.github.com>

@pyrooka pyrooka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pyrooka pyrooka merged commit 966b12f into main Jun 19, 2026
14 checks passed
@pyrooka pyrooka deleted the lt/vpc-auth-extension branch June 19, 2026 19:34
ibm-devx-sdk pushed a commit that referenced this pull request Jun 19, 2026
# [5.5.0](v5.4.22...v5.5.0) (2026-06-19)

### Features

* **auth:** add support for new service version in VPC Instance Auth ([#359](#359)) ([966b12f](966b12f))
@ibm-devx-sdk

Copy link
Copy Markdown

🎉 This PR is included in version 5.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants