Giter VIP home page Giter VIP logo

Comments (4)

csstaub avatar csstaub commented on June 27, 2024

It's possible to override the permissions on the server-side when adding a secret by setting the "mode" field in the metadata.

For example, if you set the metadata to

{"mode":"0400"}

the secret will have permissions 0400 in keywhiz-fs.

You can also override the owner/group with (for example):

{"owner":"cs","group":"cs","mode":"0400"}

That would make the secret be owned by cs:cs and have mode 0400.

If you're using the web UI to add a secret there should be a metadata field to add this.

If you're using the CLI, you can do it like this:

java -jar $KEYWHIZ_CLI_JAR -U https://localhost:4444/ add secret --name secret-name --json '{"mode":"0400"}'

That said, I think it would make sense to have a flag in keywhiz-fs to override the default permissions for secrets that don't have metadata attached to them.

from keywhiz-fs.

csstaub avatar csstaub commented on June 27, 2024

We could allow an override in keywhiz-fs by adding a flag, maybe like this:

keywhiz-fs [OPTIONS] --default-permissions 0400

would that be useful to you?

from keywhiz-fs.

gyulaweber avatar gyulaweber commented on June 27, 2024

@csstaub: Big Thanks for the explanation; yes, a default permission flag would be useful. I think I'll try to implement it, just for practicing golang.

from keywhiz-fs.

csstaub avatar csstaub commented on June 27, 2024

@gyulaweber sounds good!

from keywhiz-fs.

Related Issues (14)

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.