Skip to content

Commit 00d7ce5

Browse files
Zach LintzParker JohansenGoFightNguyenWes Novack
authored andcommitted
add aws authentication using the IAM method
Co-Authored-By: Parker Johansen <parker-johansen@pluralsight.com> Co-Authored-By: Jason Nguyen <jason-nguyen@pluralsight.com> Co-Authored-By: Wes Novack <wes-novack@pluralsight.com>
1 parent 01cf59a commit 00d7ce5

4 files changed

Lines changed: 46 additions & 1 deletion

File tree

features.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@
172172
`POST /auth/{{mount_point}}{{^mount_point}}kubernetes{{/mount_point}}/login`
173173

174174

175+
## vault.awsIamLogin
176+
177+
`POST /auth/{{mount_point}}{{^mount_point}}aws{{/mount_point}}/login`
178+
179+
175180
## vault.userpassLogin
176181

177182
`POST /auth/{{mount_point}}{{^mount_point}}userpass{{/mount_point}}/login/{{username}}`

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ declare namespace NodeVault {
7272
githubLogin(options?: Option): Promise<any>;
7373
userpassLogin(options?: Option): Promise<any>;
7474
kubernetesLogin(options?: Option): Promise<any>;
75+
awsIamLogin(options?: Option): Promise<any>;
7576
tokenAccessors(options?: Option): Promise<any>;
7677
tokenCreate(options?: Option): Promise<any>;
7778
tokenCreateOrphan(options?: Option): Promise<any>;

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"Charles Phillips (https://github.com/doublerebel)",
6565
"David Drewery (https://github.com/EXPEddrewery)",
6666
"Dustin (https://github.com/at88mph)",
67+
"Jason Nguyen (https://github.com/gofightnguyen)",
6768
"Jeff Sisson (https://github.com/saranrapjs)",
6869
"Jonathan Bastnagel (https://github.com/inkadnb)",
6970
"Julian Amelung (https://github.com/julianbei)",
@@ -73,6 +74,7 @@
7374
"Mario Pareja (https://github.com/mpareja)",
7475
"Mark Frost (https://github.com/frostmar)",
7576
"Owen Farrell (https://github.com/owenfarrell)",
77+
"Parker Johansen (https://github.com/auroq)",
7678
"Patrick Rainier Juen (https://github.com/uLan08)",
7779
"Phred Lane (https://github.com/fearphage)",
7880
"Ryan Lewis (https://github.com/ryanlewis)",
@@ -85,7 +87,9 @@
8587
"Tom Vogel (https://github.com/tavogel)",
8688
"Trevor Robinson (https://github.com/trevorr)",
8789
"Vineet Bhatia (https://github.com/firefoxNX)",
88-
"Vladyslav Mashkin (https://github.com/jsdream)"
90+
"Vladyslav Mashkin (https://github.com/jsdream)",
91+
"Wes Novack (https://github.com/wes-novack)",
92+
"Zach Lintz (https://github.com/zlintz)"
8993
],
9094
"license": "MIT",
9195
"bugs": {

src/commands.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,41 @@ module.exports = {
474474
res: tokenResponse,
475475
},
476476
},
477+
awsIamLogin: {
478+
method: 'POST',
479+
path: '/auth/{{mount_point}}{{^mount_point}}aws{{/mount_point}}/login',
480+
tokenSource: true,
481+
schema: {
482+
req: {
483+
type: 'object',
484+
properties: {
485+
role: {
486+
type: 'string',
487+
},
488+
iam_http_request_method: {
489+
type: 'string',
490+
},
491+
iam_request_url: {
492+
type: 'string',
493+
},
494+
iam_request_body: {
495+
type: 'string',
496+
},
497+
iam_request_headers: {
498+
type: 'string',
499+
},
500+
},
501+
required: [
502+
'role',
503+
'iam_http_request_method',
504+
'iam_request_url',
505+
'iam_request_body',
506+
'iam_request_headers',
507+
],
508+
},
509+
res: tokenResponse,
510+
},
511+
},
477512
userpassLogin: {
478513
method: 'POST',
479514
path: '/auth/{{mount_point}}{{^mount_point}}userpass{{/mount_point}}/login/{{username}}',

0 commit comments

Comments
 (0)