Changing the Registry Secret

A producer user can change their registry secret by calling the /secret endpoint using the PUT method. This procedure will remove the current secret for the logged-in user and replace it with a new value.

In the request body, the existing secret must be the Base64-encoded current secret.

Important:The registry secret must fulfill the following requirements:

• at least 8 characters long
• at least one uppercase letter
• at least one lowercase letter
• at least one digit

The returned secret is Base64 encoded and must be decoded before it can be used to log into the registry.

Item

Description

URI

/registry/api/v1/secret 

Method

PUT 

Query parameters

N/A

Request body

{

  "existing-secret": "string",

  "new-secret": "string"

}

Note:The new-secret parameter is optional. When new-secret is left blank, a random registry secret is generated.

Response codes

200: Processing complete

400: Bad request format.

Sample Response

In case of a successful PUT operation, a response code 200 is returned.