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

Regex support for --secret-type #287

Merged
merged 4 commits into from
Dec 16, 2024
Merged

Conversation

Nuckal777
Copy link
Contributor

Hi,

this is an implementation for 242, because #243 seems a bit inactive. There are two notable changes:

  • dots in file names need to be escaped, due to their special meaning in regex patterns
  • the read errors metric behaves differently

Copy link
Contributor

@plaffitt plaffitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, however I'm really not comfortable with the fact that you changed the tests without any explanation. I want to be sure that this PR don't introduce any breaking change and those changes suggest that it does.

internal/kubernetes_test.go Outdated Show resolved Hide resolved
internal/kubernetes_test.go Show resolved Hide resolved
internal/exporter.go Show resolved Hide resolved
@Nuckal777
Copy link
Contributor Author

Hey, what should I follow-up on?

@Nuckal777
Copy link
Contributor Author

Let's try to revive this PR. I repaired the read errors metric.

@coltaa
Copy link

coltaa commented Oct 16, 2024

Any updates on when this could be merged/released?

@hypnoglow
Copy link

Hi @paullaffitte

Could we proceed forward with this change?

Our team also eagers for this feature as it is impossible for us to rely on a static list of secret keys.

@plaffitt
Copy link
Contributor

Hi @Nuckal777, sorry for the delay. With the latest changes it looks good to me. If you can rebase the branch to resolve conflicts I will merge it. And it would be awesome if you could implement the idea described here also.

@Nuckal777
Copy link
Contributor Author

Here you go. Because we have go1.23, we can avoid the callback stuff by using iterators. 🎉

@npdgm npdgm merged commit 0e1da07 into enix:main Dec 16, 2024
3 checks passed
@monkeynator
Copy link
Member

🎉 This PR is included in version 3.18.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants