Code Monkey home page Code Monkey logo

Comments (5)

ryanprior avatar ryanprior commented on August 30, 2024

One possible implementation would be to create a file instead of set an environment variable when the key is a quoted path instead of a constant.

For example:

secrets.yml
---
"~/.ssh/id_rsa": !var:file ryan/ssh/private

This could either create the file in /tmp and a symlink, or actually create the file in the target location with no symlink.

from summon.

dustinmm80 avatar dustinmm80 commented on August 30, 2024

why would you symlink when you can use /dev/shm instead? symlinking opens you up to placing files in insecure places.

from summon.

jepperson2 avatar jepperson2 commented on August 30, 2024

In my case there are services that need secrets to be in specific file locations that I cannot change. I want to use Summon to fetch them and make them accessible from that unchangeable path.

By using a symlink to the /dev/shm file that Summon populates, as soon as the Summon process terminates, that symlink points to a non-existent file (which is a good thing in my case - I don't want the secret to persist after the process terminates).

As I understand it, this still potentially exposes that secret after the process finishes if there's an open file descriptor to that symlink, but this is still better behavior than simply writing the secret to a file, which would persist after the Summon process terminates unless I explicitly delete it.

from summon.

rpothier avatar rpothier commented on August 30, 2024

Hi @jepperson2 We just added examples for adding symlinks in 201. It looks to be similar to what you are doing.

from summon.

rpothier avatar rpothier commented on August 30, 2024

Closing this issue as it is a duplicate of #190 .

from summon.

Related Issues (20)

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.