Skip to content

Instantly share code, notes, and snippets.

@mattray
Created June 10, 2020 08:33
Show Gist options
  • Save mattray/530a71f17ae09097acd49ba24770090c to your computer and use it in GitHub Desktop.
Save mattray/530a71f17ae09097acd49ba24770090c to your computer and use it in GitHub Desktop.
~/ws/home-repo/meta-user on :master [Δ?] via ℜ:v2.7.1
$ knife client create upload1 -f upload1.pem --key meta-user.pem --user meta-user --server-url "https://ndnd/organizations/test1" --disable-editing -c no_ssl.rb
Created client[upload1]
~/ws/home-repo/meta-user on :master [Δ?] via ℜ:v2.7.1
$ knife acl add client upload1 containers cookbooks create --key meta-user.pem --user meta-user --server-url "https://ndnd/organizations/test1" --disable-editing -c no_ssl.rb
Adding 'upload1' to 'create' ACE of 'cookbooks'
~/ws/home-repo/meta-user on :master [Δ?] via ℜ:v2.7.1
$ knife cookbook upload managed_automate -o cookbooks --key upload1.pem --user upload1 --server-url "https://ndnd/organizations/test1" -c no_ssl.rb
Uploading managed_automate [0.12.0]
ERROR: You authenticated successfully to https://ndnd/organizations/test1 as upload1 but you are not authorized for this action.
Response: missing create permission
~/ws/home-repo/meta-user on :master [Δ?] via ℜ:v2.7.1
✗$ knife acl show containers cookbooks --key meta-user.pem --user meta-user --server-url "https://ndnd/organizations/test1" --disable-editing -c no_ssl.rb
create:
clients: upload1
groups:
admins
users
users: pivotal
delete:
clients:
groups:
admins
users
users: pivotal
grant:
clients:
groups: admins
users: pivotal
read:
clients:
groups:
admins
clients
users
users: pivotal
update:
clients:
groups:
admins
users
users: pivotal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment