Skip to content

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

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

feat(auth): add support for new service version in VPC Instance Auth#247
pyrooka merged 6 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

diatrcz added 3 commits June 4, 2026 14:40
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 9, 2026 14:06
@diatrcz diatrcz requested review from Andris28 and pyrooka June 9, 2026 14:06
@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.

Left a few minor suggestions/question, but looks pretty good overall!

Comment thread src/main/java/com/ibm/cloud/sdk/core/security/VpcInstanceAuthenticator.java Outdated
Comment thread src/main/java/com/ibm/cloud/sdk/core/security/VpcInstanceAuthenticator.java Outdated
diatrcz added 2 commits June 19, 2026 13:23
Signed-off-by: Lídia Tarcza <100163235+diatrcz@users.noreply.github.com>
@diatrcz diatrcz requested a review from pyrooka June 19, 2026 11:24

@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!

Signed-off-by: Norbert Biczo <pyrooka@users.noreply.github.com>
@pyrooka pyrooka merged commit ada802f into main Jun 19, 2026
12 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
# [9.26.0](9.25.0...9.26.0) (2026-06-19)

### Features

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

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 9.26.0 🎉

The release is available on GitHub release

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