Skip to content

Wrong regex behaviour #163

Open
Open
@TrueBad0ur

Description

@TrueBad0ur

About

Hey
Testing your solution, looks cool, but there's a little problem or maybe feature, I don't know
Here in this line you find elements as LIKE LINE in all namespaces
And if I have namespaces like test, test1, test2, test3
with the configuration like:

matchNamespace:
  - test

The secret will be deployed to all these namespaces, but if you have examples with -* regex I thought that in such a case just one namespace should be selected

Maybe we should register it as CVE, cause here is obvious security risk

Probable fix

Use lazy regex with ?, count elements in matchNamespace or any other way

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions