copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2024-10-04 |
change log for Secrets Manager APIs, API changelog, updates to Secrets Manager APIs |
secrets-manager |
{:codeblock: .codeblock} {:screen: .screen} {:download: .download} {:external: target="_blank" .external} {:faq: data-hd-content-type='faq'} {:gif: data-image-type='gif'} {:important: .important} {:note: .note} {:pre: .pre} {:tip: .tip} {:preview: .preview} {:deprecated: .deprecated} {:beta: .beta} {:term: .term} {:shortdesc: .shortdesc} {:script: data-hd-video='script'} {:support: data-reuse='support'} {:table: .aria-labeledby="caption"} {:troubleshoot: data-hd-content-type='troubleshoot'} {:help: data-hd-content-type='help'} {:tsCauses: .tsCauses} {:tsResolve: .tsResolve} {:tsSymptoms: .tsSymptoms} {:video: .video} {:step: data-tutorial-type='step'} {:tutorial: data-hd-content-type='tutorial'} {:api: .ph data-hd-interface='api'} {:cli: .ph data-hd-interface='cli'} {:ui: .ph data-hd-interface='ui'} {:terraform: .ph data-hd-interface="terraform"} {:curl: .ph data-hd-programlang='curl'} {:java: .ph data-hd-programlang='java'} {:ruby: .ph data-hd-programlang='ruby'} {:c#: .ph data-hd-programlang='c#'} {:objectc: .ph data-hd-programlang='Objective C'} {:python: .ph data-hd-programlang='python'} {:javascript: .ph data-hd-programlang='javascript'} {:php: .ph data-hd-programlang='PHP'} {:swift: .ph data-hd-programlang='swift'} {:curl: .ph data-hd-programlang='curl'} {:dotnet-standard: .ph data-hd-programlang='dotnet-standard'} {:go: .ph data-hd-programlang='go'} {:unity: .ph data-hd-programlang='unity'} {:release-note: data-hd-content-type='release-note'}
{: #api-change-log}
In this change log, you can learn about the latest changes, improvements, and updates for the {{site.data.keyword.secrets-manager_full}} API. The change log lists changes that have been made, ordered by the date they were released. Changes to existing API versions are designed to be compatible with existing client applications. {: shortdesc}
To learn about general updates and improvements to the {{site.data.keyword.secrets-manager_short}} service, see Release notes.
{: #2024-10-07-api}
- A new configuration
action_type
,private_cert_configuration_action_rotate_intermediate
, is now available to enable rotation of an intermediate CA's certificate. Learn more about rotating an intermediate CA.
{: #2024-09-23-api}
- The Create Secret API now supports creating an IAM secret for managing credentials on a different {{site.data.keyword.cloud_notm}} account by passing the account ID in the new
account_id
field. - A new property
disabled
has been added to the IAM credentials configuration. Use this property to disable the API key configuration when you switch to using IAM service authorization configuration. - The Update configuration method can now be used to update either the
api_key
field or thedisabled
field. - A new field
account_id
is returned when the Service ID being managed belongs to a different {{site.data.keyword.cloud_notm}} account.
{: #2024-09-09-api}
- The
expiration_date
field is now returned also for secret versions.
{: #2024-08-06-api}
- Use the
secret_types
option to list configuration for a specific engine. Supported values are:iam_credentials
,public_cert
, andprivate_cert
. - New property
crypto_key
to provide your own HSM.
{: #2024-06-10-api}
- The Update metadata API now supports
null
for theexpiration_date
field, making it possible to disable expiration for thearbitrary
andusername_passowrd
secret types.
{: #2024-03-11-api}
- The service endpoints API now also returns the key management service selected for the service instance - provider-managed, or user-provided ({{site.data.keyword.keymanagementserviceshort}} or {{site.data.keyword.hscrypto}}).
- The List secrets API now accepts additional parameters,
?secret_types=...
to filter by secret type, and?match_all_labels=...
to filter by a label or a combination of labels.
{: #2024-02-12-api}
- The User credentials secret type now supports generating a random password on secret creation if the
password
field is kept empty. In addition you can control the password's length, and whether to include numbers, symbols and upper-case letters by including thepassword_generation_policy
field. To learn more, see Storing user credentials. - For an existing DNS Provider configuration, you can switch between API key and service-to-service authorization by passing an empty string in the
apikey
field. Note: it is assumed that a service-to-service authorization to the same Cloud Internet Services instance with an identical or matching access policy was configured prior to the switch.
{: #2023-09-20-api}
Get a secret by name instead of ID by using a new API endpoint /api/v2/secret_groups/{secret_group_name}/secret_types/{secret_type}/secrets/{name}
. Learn more in Accessing secrets.
{: #2023-04-17-api}
Version 2.0.0 was released on 17 April 2023. This release includes the following updates:
- You no longer need to include
secret_type
in the API URL to identify a secret. - The secret group name must be unique per {{site.data.keyword.secrets-manager_short}} instance.
- Resources updates are defined as HTTP patch operations.
- The configurations API follows the pattern of the {{site.data.keyword.secrets-manager_short}} API.
config_type
acts as the API discriminator, similarly tosecret_type
. - Configurations are modeled as openAPI composites with metadata and data parts, similarly to the {{site.data.keyword.secrets-manager_short}} model. Mappings between IAM roles and configurations API follow the same pattern for the {{site.data.keyword.secrets-manager_short}} API. For example, an IAM viewer can list configurations to view their metadata.
- List operations return metadata only for secret, secret version, and config resources.
- The action to rotate a secret is now the create a new secret version API:
POST/v2/secrets/{id}/versions
. - The action to restore secret version is now the create a new secret version API with the
restored_from_version
body parameter. - The action to delete IAM credentials is now the delete a secret version data API:
DELETE /v2/secrets/{id}/versions/{version_id}/secret_data
. - Policies API is now embedded into the metadata API in version 2.0.
- The actions to list Secrets and get secret metadata return the
versions_total
field. The version's content is not included. - Current and previous secret versions can be referenced by using the
current
andprevious
aliases in version APIs. - As of April 17, 2023, the {{site.data.keyword.secrets-manager_full}} API v1 has been deprecated in favor of v2. If you're still actively working with the {{site.data.keyword.secrets-manager_short}} API v1, please be sure to start your upgrade as soon as possible. On 31 October 2023, support for the {{site.data.keyword.secrets-manager_short}} API v1 will be removed.
{: #2022-09-12-api}
This release includes the following updates:
- Added the Update the metadata of a secret version method that can be used to store version custom metadata that is relevant to the needs of your organization.
- Updated the Create a secret, Invoke an action on a secret, Get secret metadata, Get secret version metadata, and Update secret metadata methods to include
custom_metadata
andversion_custom_metadata
fields.
{: #2022-07-10-api}
This release includes the following updates:
- Added the Lock a secret and Lock a secret version methods that can be used to create locks on a secret in your instance. For more information, see Locking secrets.
- Added the Unlock a secret and Unlock a secret version methods that can be used to remove locks on a secret or specific secret version.
- Added the List secret locks, List secret version locks, and List all secrets and locks.
- Updated all secrets operations to return a
locks_total
field as part of the metadata of a secret.
{: #2022-04-25-api}
This release includes the following updates:
- Added the
private_cert
secret type that can be used to generate TLS certificates with the service. For more information, see Creating private certificates. - Added the Invoke an action on a version of a secret method that can be used to revoke a version of a private certificate. Currently, this API supports
private_cert
secrets only. - Updated the Invoke an action on a secret method to include
revoke
as a supported action. Currently, therevoke
action is supported forprivate_cert
secrets only. - Updated the Get a version of a secret method that can be used to retrieve the previous version of a secret. This API now supports
private_cert
secrets in addition toimported_cert
andpublic_cert
. - Updated the Add a configuration, List configurations, Update a configuration, Get a configuration, and Remove a configuration methods. These APIs now support
private_cert
secrets in addition topublic_cert
. - Added the Invoke an action on a configuration method that be used to run operations on specific configuration elements, for example root or intermediate certificate authorities. Currently, this API supports
private_cert
secrets only.
{: #2022-02-03-api}
This release includes the following update:
- Added the Register with {{site.data.keyword.en_short}}, Get {{site.data.keyword.en_short}} registration details, Unregister from {{site.data.keyword.en_short}}, and Send test event methods that can be used to manage your connection to the {{site.data.keyword.en_short}} service.
{: #2022-01-31-api}
This release includes the following update:
- Added
kv
as a secret type to the Create a secret method. You can store and manage key-value secrets, including complex JSON documents, that are used to access protected systems that are inside or outside of {{site.data.keyword.cloud_notm}}.
{: #2021-11-22-api}
This release includes the following updates:
- Added the
service_id
string parameter as a request body option to the Create a secret method. You can use this field to create IAM credentials with an existing service ID from your account, so that only an API key is generated when the secret is read or accessed. - Added the
api_key_id
string parameter to the response details of the Create a secret and Get secret metadata methods. - Added the
service_id_is_static
boolean parameter to the response details of the Create a secret and Get secret metadata methods. This parameter indicates whether an IAM credential secret was created by using an existing service ID. - Added the List versions of a secret method that can be used to obtain version history information for a secret.
- Added
payload_available
anddownloaded
boolean parameters to the response details of the Get a secret, Get secret version metadata, List versions of a secret methods. These parameters can help you to identify whether the a secret version is available to be restored, and whether it has already been previously read or accessed. - Added the
restore
query parameter as a request option on the Invoke an action on a secret method. You can use this action to restore the previous version of a secret. - Updated the Get a version of a secret method that can be used to retrieve the previous version of a secret. This API now supports
arbitrary
,iam_credentials
, andusername_password
secrets, in addition topublic_cert
andimported_cert
.
{: #2021-09-20-api}
This release includes the following updates:
- Added
public_cert
secret type that can be used to order domain-validated TLS certificates with the service. For more information, see Ordering certificates. - Added the Add a configuration, List configurations, Update a configuration, Get a configuration, and Remove a configuration methods that can be used to add engine configurations to the service. Currently, these APIs support
public_cert
secrets only. - Updated the Get a version of a secret method that can be used to retrieve the previous version of a secret. This API now supports
public_cert
secrets in addition toimported_cert
.
{: #2021-07-11-api}
This release includes the following updates:
- Changed the maximum length for secret names to 240 characters.
- Changed the maximum length for secret descriptions to 1024 characters.
{: #2021-06-20-api}
This release includes the following updates:
- Added
imported_cert
secret type that can be used to store X.509 certificates in the service. For more information, see Importing certificates. - Added the Get a version of a secret method that can be used to retrieve the previous version of a secret. Currently, this API supports
imported_cert
secrets only.
{: #2021-04-13-api}
This release includes the following updates:
- Added
group={secret_group_ID}
query parameter that can be used to filter a list of secrets by secret group.
{: #2021-03-07-api}
This release includes the following updates:
- Added the
reuse_api_key
boolean parameter for IAM credential secrets.
{: #2021-02-10-api}
This release includes the following updates:
- Added the
search={string}
query parameter that can be used to filter a list of secrets that contain a specified string. - Added the
sort_by={field_name}
query parameter that can be used to filter a list of secrets by a specified metadata field.
{: #2021-01-25-api}
This release includes the following updates:
- Changed the maximum length for secret names to 128 characters.
- Changed the maximum length for secret group names to 62 characters.