choria-mcorpc-support 2.25.1 → 2.25.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 434e6312294b09fba1fea87dd7c271492d89c29e68682577ae5c4b1ae0c2b701
4
- data.tar.gz: 2a1bb5d6fe59ebcddf47f53a1405166bacc290619b75ce4136b81b5038d709e6
3
+ metadata.gz: 2e44c83c6fb1dada2924b3ea6690f719cee605ad28b2522493732e3dfaababd8
4
+ data.tar.gz: 1beebfd97274d3065303abd3d29312bf7c018a8f8e9451dbddec0a2d438d969c
5
5
  SHA512:
6
- metadata.gz: 1d23e06c2ff49f69808a416d3d3b44b80b717cb16d6c3895a95d46299e5eb76eadff29ba6c3e68a317e2ef6c60216f34c0880a35509340c4b8047d54264310eb
7
- data.tar.gz: 64abef1eddb1550c34a37f44d6bb77c51d048d6e98e6f6ba7489e30500f464cf9f6f4bde954eabfdc484e1106df0e34a335c627b624b77b9fb42b4730384f7bb
6
+ metadata.gz: 18863672cd7fbc44a5f07e1b7580d034972da6b318e7bfdd967adaee5671f2700fc8248e9031d65facb8c339f755138c0010d1a2e3da33171692f9fa5e4a63a2
7
+ data.tar.gz: 29ca2987783e86d7b65d55189b0bc6fffdb433b96eb4bbf28a8a2d5fe427b491dc2abb87374884966bbf4d3379cc15374ad33312181280cf6c29b38389c141b1
@@ -0,0 +1,41 @@
1
+ metadata :name => "aaa_signer",
2
+ :description => "Request Signer for Choria AAA Service",
3
+ :author => "R.I.Pienaar <rip@devco.net>",
4
+ :license => "Apache-2.0",
5
+ :version => "0.24.0",
6
+ :url => "https://github.com/choria-io/aaasvc",
7
+ :provider => "golang",
8
+ :service => true,
9
+ :timeout => 10
10
+
11
+
12
+ action "sign", :description => "Signs a RPC Request on behalf of a user" do
13
+ display :always
14
+
15
+ input :request,
16
+ :prompt => "RPC Request",
17
+ :description => "The request to sign",
18
+ :type => :string,
19
+ :validation => :shellsafe,
20
+ :maxlength => 100240,
21
+ :optional => false
22
+
23
+
24
+ input :token,
25
+ :prompt => "JWT Token",
26
+ :description => "The JWT token authenticating the user",
27
+ :type => :string,
28
+ :validation => '.',
29
+ :maxlength => 10024,
30
+ :optional => false
31
+
32
+
33
+
34
+
35
+ output :secure_request,
36
+ :description => "The signed Secure Request",
37
+ :type => "string",
38
+ :display_as => "Secure Request"
39
+
40
+ end
41
+
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "https://choria.io/schemas/mcorpc/ddl/v1/agent.json",
3
+ "metadata": {
4
+ "license": "Apache-2.0",
5
+ "author": "R.I.Pienaar \u003crip@devco.net\u003e",
6
+ "timeout": 10,
7
+ "name": "aaa_signer",
8
+ "version": "0.24.0",
9
+ "url": "https://github.com/choria-io/aaasvc",
10
+ "description": "Request Signer for Choria AAA Service",
11
+ "provider": "golang",
12
+ "service": true
13
+ },
14
+ "actions": [
15
+ {
16
+ "action": "sign",
17
+ "input": {
18
+ "request": {
19
+ "prompt": "RPC Request",
20
+ "description": "The request to sign",
21
+ "type": "string",
22
+ "optional": false,
23
+ "validation": "shellsafe",
24
+ "maxlength": 100240
25
+ },
26
+ "token": {
27
+ "prompt": "JWT Token",
28
+ "description": "The JWT token authenticating the user",
29
+ "type": "string",
30
+ "optional": false,
31
+ "validation": ".",
32
+ "maxlength": 10024
33
+ }
34
+ },
35
+ "output": {
36
+ "secure_request": {
37
+ "description": "The signed Secure Request",
38
+ "display_as": "Secure Request",
39
+ "type": "string"
40
+ }
41
+ },
42
+ "display": "always",
43
+ "description": "Signs a RPC Request on behalf of a user"
44
+ }
45
+ ]
46
+ }
@@ -2,7 +2,7 @@ metadata :name => "choria_provision",
2
2
  :description => "Choria Provisioner",
3
3
  :author => "R.I.Pienaar <rip@devco.net>",
4
4
  :license => "Apache-2.0",
5
- :version => "0.23.0",
5
+ :version => "0.24.0",
6
6
  :url => "https://choria.io",
7
7
  :timeout => 20
8
8
 
@@ -10,6 +10,13 @@ metadata :name => "choria_provision",
10
10
  action "configure", :description => "Configure the Choria Server" do
11
11
  display :failed
12
12
 
13
+ input :action_policies,
14
+ :prompt => "Action Policy Documents",
15
+ :description => "Map of Action Policy documents indexed by file name",
16
+ :type => :hash,
17
+ :optional => true
18
+
19
+
13
20
  input :ca,
14
21
  :prompt => "CA Bundle",
15
22
  :description => "PEM text block for the CA",
@@ -55,6 +62,13 @@ action "configure", :description => "Configure the Choria Server" do
55
62
  :optional => true
56
63
 
57
64
 
65
+ input :opa_policies,
66
+ :prompt => "Open Policy Agent Policy Documents",
67
+ :description => "Map of Open Policy Agent Policy documents indexed by file name",
68
+ :type => :hash,
69
+ :optional => true
70
+
71
+
58
72
  input :ssldir,
59
73
  :prompt => "SSL Dir",
60
74
  :description => "Directory for storing the certificate in",
@@ -5,7 +5,7 @@
5
5
  "description": "Choria Provisioner",
6
6
  "author": "R.I.Pienaar <rip@devco.net>",
7
7
  "license": "Apache-2.0",
8
- "version": "0.23.0",
8
+ "version": "0.24.0",
9
9
  "url": "https://choria.io",
10
10
  "timeout": 20
11
11
  },
@@ -74,6 +74,20 @@
74
74
  "optional": true,
75
75
  "maxlength": 64,
76
76
  "validation": "."
77
+ },
78
+ "action_policies": {
79
+ "prompt": "Action Policy Documents",
80
+ "description": "Map of Action Policy documents indexed by file name",
81
+ "type": "hash",
82
+ "default": {},
83
+ "optional": true
84
+ },
85
+ "opa_policies": {
86
+ "prompt": "Open Policy Agent Policy Documents",
87
+ "description": "Map of Open Policy Agent Policy documents indexed by file name",
88
+ "type": "hash",
89
+ "default": {},
90
+ "optional": true
77
91
  }
78
92
 
79
93
  },
@@ -2,7 +2,7 @@ metadata :name => "choria_registry",
2
2
  :description => "Choria Registry Service",
3
3
  :author => "rip@devco.net <rip@devco.net>",
4
4
  :license => "Apache-2.0",
5
- :version => "0.23.0",
5
+ :version => "0.24.0",
6
6
  :url => "https://choria.io",
7
7
  :provider => "golang",
8
8
  :service => true,
@@ -5,7 +5,7 @@
5
5
  "author": "rip@devco.net \u003crip@devco.net\u003e",
6
6
  "timeout": 2,
7
7
  "name": "choria_registry",
8
- "version": "0.23.0",
8
+ "version": "0.24.0",
9
9
  "url": "https://choria.io",
10
10
  "description": "Choria Registry Service",
11
11
  "provider": "golang",
@@ -2,7 +2,7 @@ metadata :name => "choria_util",
2
2
  :description => "Choria Utilities",
3
3
  :author => "R.I.Pienaar <rip@devco.net>",
4
4
  :license => "Apache-2.0",
5
- :version => "0.23.0",
5
+ :version => "0.24.0",
6
6
  :url => "https://choria.io",
7
7
  :timeout => 2
8
8
 
@@ -5,7 +5,7 @@
5
5
  "description": "Choria Utilities",
6
6
  "author": "R.I.Pienaar <rip@devco.net>",
7
7
  "license": "Apache-2.0",
8
- "version": "0.23.0",
8
+ "version": "0.24.0",
9
9
  "url": "https://choria.io",
10
10
  "timeout": 2
11
11
  },
@@ -2,7 +2,7 @@ metadata :name => "rpcutil",
2
2
  :description => "Utility actions that expose information about the state of the running Server",
3
3
  :author => "R.I.Pienaar <rip@devco.net>",
4
4
  :license => "Apache-2.0",
5
- :version => "0.23.0",
5
+ :version => "0.24.0",
6
6
  :url => "https://choria.io/",
7
7
  :timeout => 2
8
8
 
@@ -5,7 +5,7 @@
5
5
  "description": "Utility actions that expose information about the state of the running Server",
6
6
  "author": "R.I.Pienaar <rip@devco.net>",
7
7
  "license": "Apache-2.0",
8
- "version": "0.23.0",
8
+ "version": "0.24.0",
9
9
  "url": "https://choria.io/",
10
10
  "timeout": 2
11
11
  },
@@ -2,7 +2,7 @@ metadata :name => "scout",
2
2
  :description => "Choria Scout Agent Management API",
3
3
  :author => "R.I.Pienaar <rip@devco.net>",
4
4
  :license => "Apache-2.0",
5
- :version => "0.23.0",
5
+ :version => "0.24.0",
6
6
  :url => "https://choria.io",
7
7
  :provider => "golang",
8
8
  :timeout => 5
@@ -132,9 +132,9 @@ action "goss_validate", :description => "Performs a Goss validation using a spec
132
132
  :display_as => "Tests"
133
133
 
134
134
  summarize do
135
- aggregate summary(:tests, :format => "%s Test Cases on %d node(s)")
136
- aggregate summary(:failures, :format => "%s Failed Cases on %d node(s)")
137
- aggregate summary(:success, :format => "%s Passed Cases on %d node(s)")
135
+ aggregate summary(:tests, :format => "%s Tests on %d node(s)")
136
+ aggregate summary(:failures, :format => "%s Failed test on %d node(s)")
137
+ aggregate summary(:success, :format => "%s Passed tests on %d node(s)")
138
138
  end
139
139
  end
140
140
 
@@ -5,7 +5,7 @@
5
5
  "author": "R.I.Pienaar <rip@devco.net>",
6
6
  "timeout": 5,
7
7
  "name": "scout",
8
- "version": "0.23.0",
8
+ "version": "0.24.0",
9
9
  "url": "https://choria.io",
10
10
  "description": "Choria Scout Agent Management API",
11
11
  "provider": "golang"
@@ -56,10 +56,12 @@ module MCollective
56
56
 
57
57
  begin
58
58
  Timeout.timeout(timeout + 0.5) do
59
- nodes.concat(JSON.parse(stdout.read))
59
+ out = stdout.read
60
60
  status = wait_thr.value
61
61
 
62
62
  raise("Choria discovery failed: %s" % stderr.read) unless status.exitstatus == 0
63
+
64
+ nodes.concat(JSON.parse(out))
63
65
  end
64
66
  rescue Timeout::Error
65
67
  Log.warn("Timeout waiting for Choria to perform discovery")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: choria-mcorpc-support
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.25.1
4
+ version: 2.25.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - R.I.Pienaar
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-24 00:00:00.000000000 Z
11
+ date: 2021-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: systemu
@@ -60,6 +60,8 @@ files:
60
60
  - bin/mco
61
61
  - lib/mcollective.rb
62
62
  - lib/mcollective/agent.rb
63
+ - lib/mcollective/agent/aaa_signer.ddl
64
+ - lib/mcollective/agent/aaa_signer.json
63
65
  - lib/mcollective/agent/bolt_tasks.ddl
64
66
  - lib/mcollective/agent/bolt_tasks.json
65
67
  - lib/mcollective/agent/bolt_tasks.rb