Skip to content

Commit

Permalink
IAM credetials secrets with S2S authorization
Browse files Browse the repository at this point in the history
Signed-off-by: Haim <haims@il.ibm.com>
  • Loading branch information
haimsch committed Sep 18, 2024
1 parent 24285e8 commit cb50781
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions secrets-manager/v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4155,14 +4155,14 @@ namespace SecretsManagerV2 {
created_at: string;
/** The date when a resource was modified. The date format follows `RFC 3339`. */
updated_at: string;
/** This parameter indicates whether the API key configuration is disabled. */
disabled?: boolean;
/** An IBM Cloud API key that can create and manage service IDs. The API key must be assigned the Editor
* platform role on the Access Groups Service and the Operator platform role on the IAM Identity Service. For more
* information, see the
* [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-configure-iam-engine).
*/
api_key?: string;
/** This parameter indicates whether the API key configuration is disabled. */
disabled: boolean;
}
export namespace IAMCredentialsConfiguration {
export namespace Constants {
Expand Down Expand Up @@ -4212,6 +4212,8 @@ namespace SecretsManagerV2 {
created_at: string;
/** The date when a resource was modified. The date format follows `RFC 3339`. */
updated_at: string;
/** This parameter indicates whether the API key configuration is disabled. */
disabled?: boolean;
}
export namespace IAMCredentialsConfigurationMetadata {
export namespace Constants {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/secrets-manager.v2.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2960,9 +2960,9 @@ describe('SecretsManagerV2', () => {
const serviceUrl = secretsManagerServiceOptions.url;
const path = '/api/v2/configurations';
const mockPagerResponse1 =
'{"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"configurations":[{"config_type":"iam_credentials_configuration","name":"my-secret-engine-config","secret_type":"arbitrary","created_by":"iam-ServiceId-e4a2f0a4-3c76-4bef-b1f2-fbeae11c0f21","created_at":"2022-04-12T23:20:50.520Z","updated_at":"2022-04-12T23:20:50.520Z"}],"limit":1}';
'{"next":{"href":"https://myhost.com/somePath?offset=1"},"total_count":2,"configurations":[{"config_type":"iam_credentials_configuration","name":"my-secret-engine-config","secret_type":"arbitrary","created_by":"iam-ServiceId-e4a2f0a4-3c76-4bef-b1f2-fbeae11c0f21","created_at":"2022-04-12T23:20:50.520Z","updated_at":"2022-04-12T23:20:50.520Z","disabled":true}],"limit":1}';
const mockPagerResponse2 =
'{"total_count":2,"configurations":[{"config_type":"iam_credentials_configuration","name":"my-secret-engine-config","secret_type":"arbitrary","created_by":"iam-ServiceId-e4a2f0a4-3c76-4bef-b1f2-fbeae11c0f21","created_at":"2022-04-12T23:20:50.520Z","updated_at":"2022-04-12T23:20:50.520Z"}],"limit":1}';
'{"total_count":2,"configurations":[{"config_type":"iam_credentials_configuration","name":"my-secret-engine-config","secret_type":"arbitrary","created_by":"iam-ServiceId-e4a2f0a4-3c76-4bef-b1f2-fbeae11c0f21","created_at":"2022-04-12T23:20:50.520Z","updated_at":"2022-04-12T23:20:50.520Z","disabled":true}],"limit":1}';

beforeEach(() => {
unmock_createRequest();
Expand Down

0 comments on commit cb50781

Please sign in to comment.