-
Notifications
You must be signed in to change notification settings - Fork 28
feat(VpcInstanceAuthenticator): add support for new VPC authentication flow #139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d91fe1e to
dcd4f82
Compare
| "SERVICE7_CLIENT_ID": "iam-client2", | ||
| "SERVICE7_CLIENT_SECRET": "iam-secret2", | ||
| "SERVICE7_SCOPE": "scope2 scope3", | ||
| "SERVICE8_AUTH_TYPE": "VPC", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only added the entries for service8. The rest of the changes are just due to formatting differences.
|
|
||
| // map[string]byte | ||
| myByteMap := map[string][]byte{"myByteArray": []byte{01, 02, 03, 04}} | ||
| myByteMap := map[string][]byte{"myByteArray": {01, 02, 03, 04}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just fixed a warning coming from vscode
dcd4f82 to
0fbeedc
Compare
|
cc: @jorge-ibm for awareness |
d5fb1a5 to
a7394a0
Compare
…n flow This commit introduces the VpcInstanceAuthenticator. This authenticator implements the authentication flow within a VPC-managed compute resource that is configured to use the compute resource identity feature. This involves the use of the compute resource's local VPC Instance Metadata Service API to retrieve an instance identity token, and then exchange that token for an IAM access token. The IAM access token is then used to authenticate outbound REST API requests by adding to the request in the Authorization header.
a7394a0 to
8c48338
Compare
f109e17 to
6e2d7c6
Compare
6e2d7c6 to
c045311
Compare
# [5.8.0](v5.7.2...v5.8.0) (2021-11-08) ### Features * **VpcInstanceAuthenticator:** add support for new VPC authentication flow ([#139](#139)) ([9906ab3](9906ab3))
|
🎉 This PR is included in version 5.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This commit introduces the VpcInstanceAuthenticator.
This authenticator implements the authentication flow
within a VPC-managed compute resource that is configured to
use the compute resource identity feature.
This involves the use of the compute resource's local
VPC Instance Metadata Service API to retrieve an instance identity
token, and then exchange that token for an IAM access token.
The IAM access token is then used to authenticate outbound REST
API requests by adding to the request in the Authorization header.