Skip to content

Instantly share code, notes, and snippets.

@dustinmm80
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinmm80/d4002044f2f1d0aa61e1 to your computer and use it in GitHub Desktop.
Save dustinmm80/d4002044f2f1d0aa61e1 to your computer and use it in GitHub Desktop.
Starter Conjur policy for Digitas groups
# conjur policy load --as-group security_admin digitas-policy.rb
# Create group 'devops', add user 'dustin' as an admin
devops = group '/devops' do
add_member user('/dustin'), admin_option: true
end
# Create group 'developers', add user 'katie' as a member
developers = group '/developers' do
add_member user('/katie')
end
# Create a postgres password variable
# Group 'devops' can read and change it
# Group 'developers' can only read it
postgres_password = variable '/databases/postgres/password' do |v|
v.permit 'execute', devops
v.permit 'update', devops
v.permit 'execute', developers
end
@dustinmm80
Copy link
Author

step 1:
install UI plugin, launch it in background
step 2:
create variable, user, group via CLI - view in the UI
step 3:
permit group to read variable - view in UI
step 4:
edit and apply policy - view in UI

run through https://github.com/conjurdemos/conjur-kitchen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment