Skip to content

Commit da633e2

Browse files
committed
feat(IamAssumeAuthenticator): introduce new authenticator type
This commit introduces the new IamAssumeAuthenticator which will fetch an IAM access token using the IAM getToken operation's "assume" grant type. The resulting access token allows the application to assume the identity of a trusted profile, similar to the "sudo" feature of Linux. Signed-off-by: Phil Adams <[email protected]>
1 parent a261640 commit da633e2

15 files changed

+1467
-42
lines changed

.secrets.baseline

Lines changed: 50 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "package-lock.json|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2024-09-03T23:09:01Z",
6+
"generated_at": "2024-10-01T20:10:03Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"
@@ -70,23 +70,55 @@
7070
"hashed_secret": "91dfd9ddb4198affc5c194cd8ce6d338fde470e2",
7171
"is_secret": false,
7272
"is_verified": false,
73-
"line_number": 72,
73+
"line_number": 73,
74+
"type": "Secret Keyword",
75+
"verified_result": null
76+
},
77+
{
78+
"hashed_secret": "4f51cde3ac0a5504afa4bc06859b098366592c19",
79+
"is_secret": false,
80+
"is_verified": false,
81+
"line_number": 222,
82+
"type": "Secret Keyword",
83+
"verified_result": null
84+
},
85+
{
86+
"hashed_secret": "e87559ed7decb62d0733ae251ae58d42a55291d8",
87+
"is_secret": false,
88+
"is_verified": false,
89+
"line_number": 224,
90+
"type": "Secret Keyword",
91+
"verified_result": null
92+
},
93+
{
94+
"hashed_secret": "12f4a68ed3d0863e56497c9cdb1e2e4e91d5cb68",
95+
"is_secret": false,
96+
"is_verified": false,
97+
"line_number": 288,
98+
"type": "Secret Keyword",
99+
"verified_result": null
100+
},
101+
{
102+
"hashed_secret": "c837b75d7cd93ef9c2243ca28d6e5156259fd253",
103+
"is_secret": false,
104+
"is_verified": false,
105+
"line_number": 292,
74106
"type": "Secret Keyword",
75107
"verified_result": null
76108
},
77109
{
78110
"hashed_secret": "98635b2eaa2379f28cd6d72a38299f286b81b459",
79111
"is_secret": false,
80112
"is_verified": false,
81-
"line_number": 407,
113+
"line_number": 526,
82114
"type": "Secret Keyword",
83115
"verified_result": null
84116
},
85117
{
86118
"hashed_secret": "47fcf185ee7e15fe05cae31fbe9e4ebe4a06a40d",
87119
"is_secret": false,
88120
"is_verified": false,
89-
"line_number": 510,
121+
"line_number": 629,
90122
"type": "Secret Keyword",
91123
"verified_result": null
92124
}
@@ -104,23 +136,23 @@
104136
"hashed_secret": "d4c3d66fd0c38547a3c7a4c6bdc29c36911bc030",
105137
"is_secret": false,
106138
"is_verified": false,
107-
"line_number": 46,
139+
"line_number": 47,
108140
"type": "Secret Keyword",
109141
"verified_result": null
110142
},
111143
{
112144
"hashed_secret": "8318df9ecda039deac9868adf1944a29a95c7114",
113145
"is_secret": false,
114146
"is_verified": false,
115-
"line_number": 49,
147+
"line_number": 50,
116148
"type": "Secret Keyword",
117149
"verified_result": null
118150
},
119151
{
120152
"hashed_secret": "9a66213cc16d178fdbf9f4da6b7bd92497fda404",
121153
"is_secret": false,
122154
"is_verified": false,
123-
"line_number": 55,
155+
"line_number": 56,
124156
"type": "Secret Keyword",
125157
"verified_result": null
126158
}
@@ -183,6 +215,16 @@
183215
"verified_result": null
184216
}
185217
],
218+
"src/test/java/com/ibm/cloud/sdk/core/test/security/IamAssumeAuthenticatorTest.java": [
219+
{
220+
"hashed_secret": "333f0f8814d63e7268f80e1e65e7549137d2350c",
221+
"is_secret": false,
222+
"is_verified": false,
223+
"line_number": 57,
224+
"type": "Secret Keyword",
225+
"verified_result": null
226+
}
227+
],
186228
"src/test/java/com/ibm/cloud/sdk/core/test/security/JsonWebTokenTest.java": [
187229
{
188230
"hashed_secret": "c6ba9cef42f298486a61546fefd03a4177e60a99",
@@ -294,7 +336,7 @@
294336
"hashed_secret": "f2e7745f43b0ef0e2c2faf61d6c6a28be2965750",
295337
"is_secret": false,
296338
"is_verified": false,
297-
"line_number": 115,
339+
"line_number": 127,
298340
"type": "Secret Keyword",
299341
"verified_result": null
300342
}

0 commit comments

Comments
 (0)