Skip to content

Fix isFilename to detect files by existence check#1604

Merged
maraino merged 1 commit intomasterfrom
mariano/fix-1601
Mar 31, 2026
Merged

Fix isFilename to detect files by existence check#1604
maraino merged 1 commit intomasterfrom
mariano/fix-1601

Conversation

@maraino
Copy link
Copy Markdown
Collaborator

@maraino maraino commented Mar 31, 2026

Previously isFilename relied on kmsURI being empty and the name not matching a KMS URI pattern, which could misidentify valid file paths as KMS URIs. Now it uses os.Stat to check whether the name actually exists as a file on disk.

Fixes #1601

Previously isFilename relied on kmsURI being empty and the name not
matching a KMS URI pattern, which could misidentify valid file paths
as KMS URIs. Now it uses os.Stat to check whether the name actually
exists as a file on disk.
@github-actions github-actions bot added the needs triage Waiting for discussion / prioritization by team label Mar 31, 2026
@maraino maraino requested a review from dopey March 31, 2026 19:23
@maraino maraino merged commit 03db1fb into master Mar 31, 2026
19 of 20 checks passed
@maraino maraino deleted the mariano/fix-1601 branch March 31, 2026 19:26
@hslatman hslatman added this to the v0.30.3 milestone Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs triage Waiting for discussion / prioritization by team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot sign using cloudkms: since v0.30.1

4 participants