Comments (4)
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.
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.
@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.
@gyulaweber sounds good!
from keywhiz-fs.
Related Issues (14)
- Use go 1.5 vendoring for dependencies HOT 1
- Support StatFs HOT 1
- Improve docs HOT 2
- Some situation leads to 100% cpu on dev machine HOT 7
- Allow trailing slash for the URL
- error messages are formatted as array of ascii codes instead of string.
- For development purposes, can I run the keywhiz server and keywhiz-fs client on my mac? HOT 9
- Allow relaxing of file permissions HOT 1
- Fix Dockerfile to use glide for vendoring HOT 2
- Docker example isn't working
- Invalid link count HOT 1
- Cleanup Secret/SecretList functions in client.go HOT 1
- fusermount failed HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keywhiz-fs.