Skip to content

Commit

Permalink
Merge pull request #91 from IBM/password_policy
Browse files Browse the repository at this point in the history
patch: Custom password generation policy for user-credentials secrets
  • Loading branch information
IdanAdar authored Feb 7, 2024
2 parents a4fa1ad + 2a2dca7 commit c9dabed
Show file tree
Hide file tree
Showing 410 changed files with 1,499 additions and 1,173 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -12,7 +12,7 @@
*/

/*
* IBM OpenAPI SDK Code Generator Version: 3.82.1-2082d402-20231115-195014
* IBM OpenAPI SDK Code Generator Version: 3.84.2-a032c73d-20240125-175315
*/

package com.ibm.cloud.secrets_manager_sdk.secrets_manager.v2;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -64,9 +64,9 @@ public ArbitrarySecretMetadataPatch build() {
}

/**
* Adds an labels to labels.
* Adds a new element to labels.
*
* @param labels the new labels
* @param labels the new element to be added
* @return the ArbitrarySecretMetadataPatch builder
*/
public Builder addLabels(String labels) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -106,9 +106,9 @@ public ArbitrarySecretPrototype build() {
}

/**
* Adds an labels to labels.
* Adds a new element to labels.
*
* @param labels the new labels
* @param labels the new element to be added
* @return the ArbitrarySecretPrototype builder
*/
public Builder addLabels(String labels) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -383,8 +383,8 @@ public String getLetsEncryptEnvironment() {
/**
* Gets the letsEncryptPreferredChain.
*
* If the CA offers multiple certificate chains, prefer the chain with an issuer matching this Subject Common Name. If
* no match, the default offered chain will be used.
* This field supports only the chains that Let's Encrypt provides. Keep empty to use the default or supply a valid
* Let's Encrypt-provided value. For a list of supported chains, see: https://letsencrypt.org/certificates/.
*
* @return the letsEncryptPreferredChain
*/
Expand All @@ -407,16 +407,22 @@ public String getLetsEncryptPrivateKey() {
/**
* Gets the cloudInternetServicesApikey.
*
* An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.
* An IBM Cloud API key that can list domains in your Cloud Internet Services instance and add DNS records.
*
* To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API
* key must be assigned the Reader service role on Internet Services (`internet-svcs`).
* key must be assigned the Reader service role on Internet Services (`internet-svcs`). In order to add DNS records
* you need to assign the Manager role.
*
* If you need to manage specific domains, you can assign the Manager role. For production environments, it is
* recommended that you assign the Reader access role, and then use the
* If you want to manage specific domains, you can assign the Manager role for this specific domain. For production
* environments, it is recommended that you assign the Reader access role, and then use the
* [IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific
* domains. For more information, see the
* [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).
* domains.
*
* If an IBM Cloud API key value is empty Secrets Manager tries to access your Cloud Internet Services instance with
* service-to-service authorization.
*
* For more information, see the
* [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-cis).
*
* @return the cloudInternetServicesApikey
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -393,7 +393,7 @@ public PrivateCertificateConfigurationCACertificate getData() {
/**
* Gets the intermediateCertificateAuthority.
*
* The unique name of your configuration.
* The name of the intermediate certificate authority configuration.
*
* @return the intermediateCertificateAuthority
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -367,7 +367,7 @@ public String csr() {
/**
* Gets the intermediateCertificateAuthority.
*
* The unique name of your configuration.
* The name of the intermediate certificate authority configuration.
*
* @return the intermediateCertificateAuthority
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -261,8 +261,8 @@ public String getLetsEncryptEnvironment() {
/**
* Gets the letsEncryptPreferredChain.
*
* If the CA offers multiple certificate chains, prefer the chain with an issuer matching this Subject Common Name. If
* no match, the default offered chain will be used.
* This field supports only the chains that Let's Encrypt provides. Keep empty to use the default or supply a valid
* Let's Encrypt-provided value. For a list of supported chains, see: https://letsencrypt.org/certificates/.
*
* @return the letsEncryptPreferredChain
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -714,8 +714,8 @@ public String letsEncryptPrivateKey() {
/**
* Gets the letsEncryptPreferredChain.
*
* If the CA offers multiple certificate chains, prefer the chain with an issuer matching this Subject Common Name. If
* no match, the default offered chain will be used.
* This field supports only the chains that Let's Encrypt provides. Keep empty to use the default or supply a valid
* Let's Encrypt-provided value. For a list of supported chains, see: https://letsencrypt.org/certificates/.
*
* @return the letsEncryptPreferredChain
*/
Expand All @@ -726,16 +726,22 @@ public String letsEncryptPreferredChain() {
/**
* Gets the cloudInternetServicesApikey.
*
* An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.
* An IBM Cloud API key that can list domains in your Cloud Internet Services instance and add DNS records.
*
* To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API
* key must be assigned the Reader service role on Internet Services (`internet-svcs`).
* key must be assigned the Reader service role on Internet Services (`internet-svcs`). In order to add DNS records
* you need to assign the Manager role.
*
* If you need to manage specific domains, you can assign the Manager role. For production environments, it is
* recommended that you assign the Reader access role, and then use the
* If you want to manage specific domains, you can assign the Manager role for this specific domain. For production
* environments, it is recommended that you assign the Reader access role, and then use the
* [IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific
* domains. For more information, see the
* [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).
* domains.
*
* If an IBM Cloud API key value is empty Secrets Manager tries to access your Cloud Internet Services instance with
* service-to-service authorization.
*
* For more information, see the
* [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-cis).
*
* @return the cloudInternetServicesApikey
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -999,8 +999,8 @@ public String letsEncryptPrivateKey() {
/**
* Gets the letsEncryptPreferredChain.
*
* If the CA offers multiple certificate chains, prefer the chain with an issuer matching this Subject Common Name. If
* no match, the default offered chain will be used.
* This field supports only the chains that Let's Encrypt provides. Keep empty to use the default or supply a valid
* Let's Encrypt-provided value. For a list of supported chains, see: https://letsencrypt.org/certificates/.
*
* @return the letsEncryptPreferredChain
*/
Expand All @@ -1011,16 +1011,22 @@ public String letsEncryptPreferredChain() {
/**
* Gets the cloudInternetServicesApikey.
*
* An IBM Cloud API key that can to list domains in your Cloud Internet Services instance.
* An IBM Cloud API key that can list domains in your Cloud Internet Services instance and add DNS records.
*
* To grant Secrets Manager the ability to view the Cloud Internet Services instance and all of its domains, the API
* key must be assigned the Reader service role on Internet Services (`internet-svcs`).
* key must be assigned the Reader service role on Internet Services (`internet-svcs`). In order to add DNS records
* you need to assign the Manager role.
*
* If you need to manage specific domains, you can assign the Manager role. For production environments, it is
* recommended that you assign the Reader access role, and then use the
* If you want to manage specific domains, you can assign the Manager role for this specific domain. For production
* environments, it is recommended that you assign the Reader access role, and then use the
* [IAM Policy Management API](https://cloud.ibm.com/apidocs/iam-policy-management#create-policy) to control specific
* domains. For more information, see the
* [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-specific-domains).
* domains.
*
* If an IBM Cloud API key value is empty Secrets Manager tries to access your Cloud Internet Services instance with
* service-to-service authorization.
*
* For more information, see the
* [docs](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-prepare-order-certificates#authorize-cis).
*
* @return the cloudInternetServicesApikey
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2023.
* (C) Copyright IBM Corp. 2024.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down
Loading

0 comments on commit c9dabed

Please sign in to comment.