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

Colored2 4.0.0 has incorrect permissions #1414

Open
justinstoller opened this issue Jan 7, 2025 · 0 comments
Open

Colored2 4.0.0 has incorrect permissions #1414

justinstoller opened this issue Jan 7, 2025 · 0 comments
Labels

Comments

@justinstoller
Copy link
Member

Describe the Bug

Running r10k as a non-root user errors because of incorrect permissions in the Colored2 gem.

Expected Behavior

R10K works with non-root users (e.g. can be installed via puppet and then used by puppetserver).

Steps to Reproduce

Steps to reproduce the behavior:

  1. Install r10k using /opt/puppetlabs/puppet/bin/gem
  2. Configure puppetserver to use a code id script that looks like:
    /bin/bash
    /opt/puppetlabs/puppet/bin/r10k deploy display --fetch $1
  3. Run the agent against the puppetserver. The server will throw a stacktrace failing to load Colored2 trying to find the code id of the catalog it is compiling. The server will be unable to serve catalogs until this is fixed.

Environment

R10K 5.0

Additional Context

I believe this isn't a huge issue to our users because most run r10k as part of their FOSS deployments as root and do not use code-id features. Code ids are used in PE but we build the colored2 gem ourselves in that case. I also believe once colored2 releases a new version of the gem with the correct permissions this will be resolved. However, we will still be vulnerable to regressions.

kigster/colored2#11

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

No branches or pull requests

1 participant