Inconsistency in Secret Names Length Validation between Azure Portal and CLI #28239
Labels
Auto-Assign
Auto assign by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
ContainerApp
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Describe the bug
I've encountered a discrepancy in the validation of secret keys between the Azure Portal and the CLI. When using the Azure CLI, it appears that secret key names cannot exceed 20 characters in length. However, this restriction is not enforced when creating secrets through the Azure Portal.
Related command
Errors
Secret names cannot be longer than 20. Please shorten long-secret-key-12345
Issue script & Debug output
Expected behavior
If it's possible to allow registration of more than 20 characters, we should do it.
Environment Summary
az --version
azure-cli 2.56.0
core 2.56.0
telemetry 1.1.0
Extensions:
containerapp 0.3.46
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Python location '/opt/homebrew/Cellar/azure-cli/2.56.0/libexec/bin/python'
Extensions directory '/Users/s23735/.azure/cliextensions'
Python (Darwin) 3.11.7 (main, Dec 4 2023, 18:10:11) [Clang 15.0.0 (clang-1500.1.0.2.5)]
Additional context
related: microsoft/azure-container-apps#209
The text was updated successfully, but these errors were encountered: