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

FIX: Unbreak on OpenBSD #233

Merged

Conversation

buzzdeee
Copy link
Contributor

@buzzdeee buzzdeee commented Jun 8, 2016

Seems since end of April/beginning of May, with the
permission changes of puppetdb config ini files,
it is broken on OpenBSD.
This fixes is by setting the $puppetdb_user, and
$puppetdb_group in OS specific case statements:

Some more info:

underprivileged users from packages start with
_underscore, as well as such groups, therefore on OpenBSD, the
user:group is _puppetdb:_puppetdb

Because of that, instead of the single default in params.pp,
move the definition of puppetdb_user and puppetdb_group into
one of the OS specific case statement.

As a side node not 100% related:
I wonder why the config files have to be owned by
the puppetdb user/group?

From a security point of view, wouldn't it make more sense,
to have the config files owned by root:$puppetdb_group, and
permissions like 640? IIRC, puppetdb doesn't need to fiddle
with the files, only read access should be fine?

puppetdb is java, so the JIT requires memory regions being
writable AND executable at the same time, so being a potentially
valuable target for attackers.

cheers,
Sebastian

_underscore, as well as such groups, therefore on OpenBSD, the
user:group is _puppetdb:_puppetdb

Because of that, instead of the single default in params.pp,
move the definition of puppetdb_user and puppetdb_group into
one of the OS specific case statement.
@kbarber kbarber added this to the 5.2.0 (master) milestone Jun 10, 2016
@ajroetker ajroetker merged commit d3915a4 into puppetlabs:master Jun 22, 2016
@smortex smortex added the bugfix label Apr 18, 2024
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.

4 participants