Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Allow secret names to be greater than 20 characters #209

Open
sunniejai opened this issue May 5, 2022 · 11 comments
Open
Labels
enhancement New feature or request

Comments

@sunniejai
Copy link

In previous versions of the container apps, you could have secret names that are longer than 20 characters. Example: applicationinsightsinstrumentationkey, but starting this week, I started getting an error saying that ERROR: Secret names cannot be longer than 20. Please shorten applicationinsightsinstrumentationkey.

I'm not sure why we're forcing people to use shorter names? 20 characters isn't very long at all.

Please allow secret names > 20 characters again.

@sunniejai sunniejai added the enhancement New feature or request label May 5, 2022
@ghost ghost added the Needs: triage 🔍 Pending a first pass to read, tag, and assign label May 5, 2022
@kendallroden kendallroden added this to Requested Enhancements in Feature Requests May 5, 2022
@torosent torosent removed the Needs: triage 🔍 Pending a first pass to read, tag, and assign label May 6, 2022
@torosent
Copy link
Member

torosent commented May 6, 2022

Thanks @sunniejai. We have a work item o change it.

@sunniejai
Copy link
Author

Any updates on when this will be worked on? Still seeing this issue

@sunefred
Copy link

Looking forward to this as well! We are having to make a lot of nonsensical abbreviations to fit the length requirement. In the meantime there does not seem to be any restrictions in the UI at all.

@mgelei
Copy link

mgelei commented Apr 22, 2023

On a sidenote, you can't even update existing secrets that were created automatically upon creating the app, see #728

@shaikmoeed
Copy link

Hi, @torosent Is there any update on this? We are having many container apps where we need to update the secret value of all those container apps. Doing it through UI is a very long task, any workaround or fixing for this bug would help a lot.

@howang-ms
Copy link
Collaborator

The length limit for secret name is extended to 63 char now.

@shaikmoeed
Copy link

@howang-ms Still getting same error. Is there anything need to update on CLI or this change is not yet deployed?

@adrobson
Copy link

adrobson commented Oct 4, 2023

Why is there such a short limit? To set up KEDA scaling on a Azure Storage Queue there needs to be a reference to the Storage Account Connection String (not the Account Key), which needs to be stored as a secret. In my case the connection string is 188 characters which would be fairly typical. So therefore shouldn't the limit be 300 characters or so? Otherwise how else could we set up an environment completely using Devops automation?

@mgelei
Copy link

mgelei commented Oct 4, 2023

@adrobson The limitation is for the name of the secret, thus storing a connection string should be fine, as long as the name for the actual key vault entry is less than 63 characters long.

@mshasib
Copy link

mshasib commented Mar 21, 2024

Has this been fixed? Secret key names greater than 20 characters can be added from the portal but still see the issue on the CLI

@pupul07
Copy link

pupul07 commented Jun 6, 2024

Can confirm that the CLI still doesn't allow more than 20 characters :(
Hope this gets fixed soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Feature Requests
Requested Enhancements
Development

No branches or pull requests

9 participants