forked from honeydipper/honeydipper-config-essentials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdaemon.yaml
216 lines (207 loc) · 7.65 KB
/
daemon.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
---
drivers:
daemon:
featureMap:
global:
eventbus: redisqueue
locker: redislock
api-broadcast: api-broadcast
features:
global:
- name: "eventbus"
required: true
- name: "driver:redispubsub"
- name: locker
- name: api-broadcast
drivers:
redisqueue:
name: redisqueue
type: builtin
handlerData:
shortName: redisqueue
description: |
redisqueue driver is used internally to facilitate communications between
different components of Honeydipper system. It doesn't offer `rawActions` or
`rawEvents` for workflow composing.
meta:
configurations:
- name: connection
description: The parameters used for connecting to the redis including `Addr`, `Password` and `DB`.
notes:
- See below for an example
- example: |
---
drivers:
redisqueue:
connection:
Addr: 192.168.2.10:6379
DB: 2
Password: ENC[gcloud-kms,...masked]
redispubsub:
name: redispubsub
type: builtin
handlerData:
shortName: redispubsub
description: |
redispubsub driver is used internally to facilitate communications between
different components of Honeydipper system.
meta:
configurations:
- name: connection
description: The parameters used for connecting to the redis including `Addr`, `Password` and `DB`.
notes:
- See below for an example
- example: |
---
drivers:
redispubsub:
connection:
Addr: 192.168.2.10:6379
DB: 2
Password: ENC[gcloud-kms,...masked]
rawActions:
- name: send
description: |
broadcasting a dipper message to all Honeydipper services. This is used
in triggering configuration reloading and waking up a suspended workflow.
The payload of rawAction call will used as broadcasting dipper message
paylod.
parameters:
- name: broadcastSubject
description: the subject field of the dipper message to be sent
notes:
- Below is an example of using the driver to trigger a configuration reload
- example: |
---
workflows:
reload:
call_driver: redispubsub.send
with:
broadcastSubject: reload
force: $?ctx.force
- Below is another example of using the driver to wake up a suspended workflow
- example: |
---
workflows:
resume_workflow:
call_driver: redispubsub.send
with:
broadcastSubject: resume_session
key: $ctx.resume_token
labels:
status: $ctx.labels_status
reason: $?ctx.labels_reason
payload: $?ctx.resume_payload
redislock:
name: redislock
type: builtin
handlerData:
shortName: redislock
description: |
redislock driver provides RPC calls for the services to acquire locks for synchronize and
coordinate between instances.
meta:
configurations:
- name: connection
description: The parameters used for connecting to the redis including `Addr`, `Password` and `DB`.
notes:
- See below for an example
- example: |
---
drivers:
redislock:
connection:
Addr: 192.168.2.10:6379
DB: 2
Password: ENC[gcloud-kms,...masked]
- This drive doesn't offer any raw actions as of now.
api-broadcast:
name: api-broadcast
type: builtin
handlerData:
shortName: redispubsub
description: |
This driver shares the code with `redispubsub` driver. The purpose is provide a abstract
feature for services to make broadcasts to each other. The current `redispubsub` driver
offers a few functions through a `call_driver`. Once the `DipperCL` offers `call_feature`
statement, we can consolidate the loading of the two drivers into one.
meta:
configurations:
- name: connection
description: The parameters used for connecting to the redis including `Addr`, `Password` and `DB`.
notes:
- See below for an example
- example: |
---
drivers:
redispubsub:
connection:
Addr: 192.168.2.10:6379
DB: 2
Password: ENC[gcloud-kms,...masked]
- This driver doesn't offer any actions or functions.
auth-simple:
name: auth-simple
type: builtin
handlerData:
shortName: auth-simple
description: |
This driver provides RPCs for the API serive to authenticate the incoming requests. The
supported method includes basic authentication, and token authentication. This also acts
as a reference on how to implement authentication for honeydipper APIs.
meta:
configurations:
- name: schemes
description: a list of strings indicating authenticating methods to try, support `basic` and `token`.
- name: users
description: a list of users for `basic` authentication.
- name: users.name
description: the name of the user
- name: users.pass
description: the password (use encryption)
- name: users.subject
description: a structure describing the credential, used for authorization
- name: tokens
description: |
a map of tokens to its subjects, each subject is a structure describing
the credential, used for authorization.
notes:
- See below for an example
- example: |
---
drivers:
auth-simple:
schemes:
- basic
- token
users:
- name: user1
pass: ENC[...]
subject:
group: engineer
role: viewer
- name: admin
pass: ENC[...]
subject:
group: sre
role: admin
tokens:
ioefui3wfjejfasf:
subject:
group: machine
role: viewer
- This driver doesn't offer any actions or functions.
redisqueue:
connection:
Addr: 127.0.0.1:6379
redispubsub:
connection:
Addr: 127.0.0.1:6379
redislock:
connection:
Addr: 127.0.0.1:6379
api-broadcast:
topic: honeydipper:api-broadcast
channel: api
connection:
Addr: 127.0.0.1:6379