19210 - Publish the actionpolicy simple rpc authorization plugin
Refactored, added tests and updated docs
This commit is contained in:
1
spec/actionpolicy/fixtures/default_allow
Normal file
1
spec/actionpolicy/fixtures/default_allow
Normal file
@@ -0,0 +1 @@
|
||||
policy default allow
|
||||
1
spec/actionpolicy/fixtures/default_deny
Normal file
1
spec/actionpolicy/fixtures/default_deny
Normal file
@@ -0,0 +1 @@
|
||||
policy default deny
|
||||
2
spec/actionpolicy/fixtures/example1
Normal file
2
spec/actionpolicy/fixtures/example1
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow * * * *
|
||||
2
spec/actionpolicy/fixtures/example10
Normal file
2
spec/actionpolicy/fixtures/example10
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow uid=500 rspec * rspec
|
||||
2
spec/actionpolicy/fixtures/example11
Normal file
2
spec/actionpolicy/fixtures/example11
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow uid=500 rspec foo=bar rspec
|
||||
2
spec/actionpolicy/fixtures/example12
Normal file
2
spec/actionpolicy/fixtures/example12
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow uid=500 rspec foo=bar and bar=foo rspec
|
||||
2
spec/actionpolicy/fixtures/example13
Normal file
2
spec/actionpolicy/fixtures/example13
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow uid=500 rspec foo=bar one and two or three
|
||||
2
spec/actionpolicy/fixtures/example14
Normal file
2
spec/actionpolicy/fixtures/example14
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow uid=500 rspec foo=bar and one or (two and one)
|
||||
5
spec/actionpolicy/fixtures/example15
Normal file
5
spec/actionpolicy/fixtures/example15
Normal file
@@ -0,0 +1,5 @@
|
||||
policy default deny
|
||||
allow uid=500 * * *
|
||||
allow uid=600 * customer=acme acme::devserver
|
||||
allow uid=600 enable disable status customer=acme *
|
||||
allow uid=700 restart (puppet().enabled=false and environment=production) or environment=development
|
||||
2
spec/actionpolicy/fixtures/example2
Normal file
2
spec/actionpolicy/fixtures/example2
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow uid=500 * * *
|
||||
2
spec/actionpolicy/fixtures/example3
Normal file
2
spec/actionpolicy/fixtures/example3
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow * rspec * *
|
||||
2
spec/actionpolicy/fixtures/example4
Normal file
2
spec/actionpolicy/fixtures/example4
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow * * foo=bar *
|
||||
2
spec/actionpolicy/fixtures/example5
Normal file
2
spec/actionpolicy/fixtures/example5
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow * * * rspec
|
||||
2
spec/actionpolicy/fixtures/example6
Normal file
2
spec/actionpolicy/fixtures/example6
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow uid=500 rspec * *
|
||||
2
spec/actionpolicy/fixtures/example7
Normal file
2
spec/actionpolicy/fixtures/example7
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow uid=500 * foo=bar *
|
||||
2
spec/actionpolicy/fixtures/example8
Normal file
2
spec/actionpolicy/fixtures/example8
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow uid=500 * * rspec
|
||||
2
spec/actionpolicy/fixtures/example9
Normal file
2
spec/actionpolicy/fixtures/example9
Normal file
@@ -0,0 +1,2 @@
|
||||
policy default deny
|
||||
allow uid=500 rspec foo=bar *
|
||||
Reference in New Issue
Block a user