Code Monkey home page Code Monkey logo

nodripa's People

Contributors

coreymbe avatar martyewings avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

martyewings

nodripa's Issues

tmpfs is an unacceptable location to store long-lived files

On *nix, /tmp is (usually) an in-memory file system intended for temporary files and files that do not need to survive a reboot. It should be used by scripts that need temp files (via mktemp for example), but not for the scripts themselves. There is also a security issue of users editing the scripts to contain arbitrary code that would then be run as root by systemd. I think the "sticky bit" is standard now, but this should still be avoided.

Depending on the use case, this should either use templates to set up the .service file to run the scripts from a different location, or use a Forge module that has types and providers for systemd resources.

Security implications

The way this module works is essentially by allowing arbitrary, privileged code execution on the primary by agents. This is a huge security flaw, and IMO this module needs to be pulled from the Forge until reworked.

In PE and FOSS, the primary will only talk to agents that present a cert bundle signed by the Puppet CA, and the endpoints they are allowed to talk to are controlled by the service's auth.conf. This module circumvents both the CA and auth.conf and allows agents to run arbitrary code, which is a critical design flaw that needs to be addressed.

Also, the approach of installing Bolt on agents should not be used. When agents talk to the primary, it should be through Puppet's apis.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.