Skip to Content
Xeonr Developer Docs
API SpecificationUpdater

Rotate an app's signing secret

POST
/xeonr.updater.v1.UpdaterService/RotateSigningSecret

Generates a new random signing secret for the app (32 bytes, hex encoded), saves it and returns it. Every updater token signed with the old secret stops validating immediately, so end users holding one lose access to private targets until they sign in again.

The caller needs write access to the app's bucket (a signed-in person's token carrying upl:uploads:manage); a read-only token gets PERMISSION_DENIED, and so does an API key.

Header Parameters

Connect-Protocol-Version*number

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

bucketId?string
Length1 <= length
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/RotateSigningSecret" \  -H "Connect-Protocol-Version: 1" \  -H "Content-Type: application/json" \  -d '{}'
{
  "signingSecret": "41a0a068f1ccde5fa9820e6877b97fa2ffe03c1e11470e437e3ff812819dd423"
}