Closed austb closed 1 year ago
Wait, I'm sorry for the spam. I read the changed class as puppetdb::globals
not puppetdb::server::globals
, which is private.
I pointed this out a few times: the whole module is in a bad shape. there are zero public tests. I would highly appreciate it if the CAT team takes over maintenance of it (or when a pipeline is added based on their standards).
One question that I still have: would it be preferable to change this permission on the package side of things?
My reasoning is that the service should not have permissions to modify its own config. It's managed by Puppet and giving it the permission to modify can only break things. So we make root
the owner. It does need to read the config, so we use the group puppetdb
. Then nobody else should read it, since the file contains credentials. So mode 0640
is used.
I haven't checked packaging, but that should apply the same permissions.
Thanks for the responses. I will get a release of this module out shortly.
@bastelfreak @ekohl I wanted to open this PR to get some more information from the community and for discussion about possibly reverting or changing removal of the parameter in this PR. We were concerned about the backward incompatibility of this change, since a user specifying the
puppetdb_user
in their manifest would result in a catalog failing to compile.Is the primary goal of this change to reduce change events after a puppetdb package upgrade (when the default settings are used)?
We had a few alternate options that we'd like to get feedback on.
root
as the owner to avoid the change event on upgrade