microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
374 stars 29 forks source link

Cannot update automatically created secret - name too long #728

Open mgelei opened 1 year ago

mgelei commented 1 year ago

Please provide us with the following information:

This issue is a: (mark with an x)

Issue description

When you create a container app with an external registry (e.g. GHCR) it creates a secret to store the token needed to log in. But when I try to update the token through Azure CLI, I get an error message: "Secret names cannot be longer than 20."

Steps to reproduce

  1. Create container app on Azure portal, with an image from GHCR
  2. Create a GH personal token and give it to the app so it can access private packages
  3. Regenerate the token (i.e. upon expiry) and run: az containerapp secret set -n MyApp -g MyRG --secrets reg-pswd-abcd1234-ab12=MySecretToken, where reg-pswd-abcd1234-ab12 is the name of the secret automatically generated upon the app's creation

Expected behavior [What you expected to happen.] The secret value gets replaced by the new value

Actual behavior [What actually happened.] ERROR: Secret names cannot be longer than 20. Please shorten reg-pswd-abcd1234-ab12 and exits with code 1

simonjj commented 3 months ago

We're hoping to prioritize this issue soon.