-
Notifications
You must be signed in to change notification settings - Fork 53
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
Unable to create a chef vault secret from a recipe #30
Comments
Just tried chef-vault for the first time and had the same problem when trying to create a secret from a recipe. Turns out my error was that my client doesn't have the permission to read the user I passed as an argument to 'admins'. I had luck when I set as admin the name of client where the recipe ran, but that's really not practical. |
@pelletiermaxime We tried doing that, however it did not work. We still received the 403. |
The same 403 ? |
Actually, we just got it work. I was looking at the wrong properties. Thanks! Is there any way to do this programmatically? I have a lot of nodes & will be constantly spinning up new ones. It seems tedious to have to either make individual knife calls or do it all via the UI. Thanks again! |
I am running into the same issue on this as well. I am trying what I think is the suggested solution, but am not having a lot of work in making this work. I am sure I will figure it out. Would it be within the scope of the cookbook to provide suggested solutions in the README, or at least link to some docs that describe it? That would probably help a lot of us newbies. |
Looks related to reading user public keys on hosted chef, need to figure out how to let a non-admin client(node) read them:
Here is a pry-byebug / debug where I think we are getting the error:
|
I may be mistaken, but I think it is currently impossible to use hosted chef users as administratiors for a chef-vault encrypted data bag. How would one specify that a node/client has access to read a hosted chef users data at |
@coderanger suggests using knife-acl to grant read access to the users container, but warns that using search to choose nodes to ecrypt to isn't very safe, because a node can claim to be in any role. The search results are, in a way, advisory only. |
@hh , I should have followed up on this. I tried the knife-acl piece to some success, but once I ran it by security team to write from a node, they axed that idea immediately. It is no longer an issue. Thank you for the follow up on this. |
@jcarapet I don't think it matters whether you use knife-vault or run this on a node, the security issue seems to deal with the search results for the nodes not being reliable. I think it might be interesting to get a list of nodes from another source, and use |
Hello,
I am trying to run create a chef vault secret from a recipe. I get a permission denied. I have tried different things including giving specific update permissions to the node/client on that specific databag but to no avail.
Here is the complete stacktrace and error: https://gist.github.com/chirag-jog/1aebe628bd6ddcf1c91c
The text was updated successfully, but these errors were encountered: