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

Allow trusted facts to be derived from node name #110

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

nabertrand
Copy link

Allow trusted facts to be derived from node name

When using the certless API, Puppet will use trusted facts from PuppetDB unless provided in the request. If the PuppetDB facts were uploaded by the catalog_diff host, the trusted facts in PuppetDB will be for the catalog_diff host rather than the node being evaluated. This allows the trusted facts to be derived from the node name instead of using values from PuppetDB.

Perhaps there is a way to have Puppet store the trusted facts as presented in the facts file being uploaded, but from what I can tell the facts API always replaces trusted facts with data derived from the client cert.

When using the certless API, Puppet will use trusted facts from PuppetDB
unless provided in the request. If the PuppetDB facts were uploaded by the
catalog_diff host, the trusted facts in PuppetDB will be for the
catalog_diff host rather than the node being evaluated. This allows the
trusted facts to be derived from the node name instead of using values
from PuppetDB.
@bastelfreak bastelfreak self-assigned this Oct 1, 2024
@bastelfreak bastelfreak added the enhancement New feature or request label Oct 1, 2024
@bastelfreak
Copy link
Member

@nabertrand hi! Sorry for the late reply, I somehow missed the PR!

@bastelfreak bastelfreak merged commit dedafb4 into voxpupuli:master Oct 1, 2024
4 checks passed
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