Skip to content

Also allow Sensitive for rootdn #450

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

Closed

Conversation

dabelenda
Copy link
Contributor

Pull Request (PR) description

Sometimes the rootdn (username) is also considered sensitive enough to be left out of PuppetDB and the Logs.

In our case, the same datasource is used for both the rootdn and rootpw and it is automatically wrapped into a Sensitive[Deferred] since our Agents have direct access to the secrets without going through the Server.

This Pull Request (PR) fixes the following issues

Not reported as an issue before creating the PR.

@dabelenda dabelenda force-pushed the also_allow_rootdn_sensitive branch from 553ec4b to 1df7e6f Compare April 24, 2025 13:33
@bastelfreak
Copy link
Member

@dabelenda thanks for the PR. Can you please add a test that sets the parameter to a sensitive value?

@bastelfreak bastelfreak added the enhancement New feature or request label Apr 24, 2025
Sensitive is made to hide information about the type contained inside it, so String[1] is hard to get with most implementation of lookup that return secret data.
@dabelenda dabelenda force-pushed the also_allow_rootdn_sensitive branch from 1df7e6f to 3662d88 Compare April 24, 2025 14:18
@dabelenda
Copy link
Contributor Author

Sorry, I am currently validating in our infrastructure... and it seems that I have trouble due to the interaction between Sensitive and Deferred ...

The typing in that case is not as straightforward as described in this PR...

@dabelenda
Copy link
Contributor Author

I will close this PR until I have sorted out my issues. Sorry for the noise.

@dabelenda dabelenda closed this Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants