Skip to content

Allow : and - in Azure App Config Id (#4955)#4956

Open
mjwrona wants to merge 1 commit into
trufflesecurity:mainfrom
mjwrona:fix/azureappconfig-id-hyphen-colon
Open

Allow : and - in Azure App Config Id (#4955)#4956
mjwrona wants to merge 1 commit into
trufflesecurity:mainfrom
mjwrona:fix/azureappconfig-id-hyphen-colon

Conversation

@mjwrona
Copy link
Copy Markdown

@mjwrona mjwrona commented May 12, 2026

Description:

Azure-issued App Configuration connection strings encode Id as <prefix>:<base64>, where the prefix typically contains hyphens. The previous character class accepted only the base64 alphabet, so every real key was silently dropped. Extend the class to include : and -, and add a test covering the canonical shape.

Closes #4955

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

Note

Low Risk
Low risk: only broadens the Azure App Config connection-string regex and adds test coverage, with no changes to verification or network behavior.

Overview
Updates the Azure App Configuration connection-string detector to accept canonical Id values containing - and : (e.g. <prefix>:<base64>), preventing valid keys from being missed.

Adds a unit test covering this canonical Id shape to ensure the updated regex matches real-world connection strings.

Reviewed by Cursor Bugbot for commit 8d054fa. Bugbot is set up for automated code reviews on this repo. Configure here.

Azure-issued App Configuration connection strings encode `Id` as
`<prefix>:<base64>`, where the prefix typically contains hyphens.
The previous character class accepted only the base64 alphabet, so
every real key was silently dropped. Extend the class to include
`:` and `-`, and add a test covering the canonical shape.

Signed-off-by: Martin Wrona <martin.wrona@digitecgalaxus.ch>
@mjwrona mjwrona requested a review from a team May 12, 2026 07:04
@mjwrona mjwrona requested a review from a team as a code owner May 12, 2026 07:04
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 12, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Azure App Configuration not detected

2 participants