Skip to content

Commit e8737b4

Browse files
committed
updating missing hasura permissions
1 parent 767f82a commit e8737b4

File tree

3 files changed

+211
-75
lines changed

3 files changed

+211
-75
lines changed

hasura-docker/metadata/metadata/actions.graphql

+53
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ type Mutation {
1616
c2_id: Int!
1717
file_uuid: String!
1818
host_url: String!
19+
alert_on_download: Boolean
20+
remove: Boolean
1921
): c2HostFileOutput
2022
}
2123

@@ -149,6 +151,7 @@ type Mutation {
149151
type Mutation {
150152
createTask(
151153
command: String!
154+
payload_type: String
152155
params: String!
153156
files: [String]
154157
callback_id: Int
@@ -230,6 +233,12 @@ type Mutation {
230233
): dynamicQueryOutput
231234
}
232235

236+
type Query {
237+
eventingTestFile(
238+
file_contents: String!
239+
): eventingTestFileOutput
240+
}
241+
233242
type Mutation {
234243
eventingTriggerCancel(
235244
eventgroupinstance_id: Int!
@@ -255,6 +264,13 @@ type Mutation {
255264
): eventingTriggerRetryOutput
256265
}
257266

267+
type Mutation {
268+
eventingTriggerRetryFromStep(
269+
eventstepinstance_id: Int!
270+
retry_all_groups: Boolean
271+
): eventingTriggerRetryFromStepOutput
272+
}
273+
258274
type Mutation {
259275
eventingTriggerRunAgain(
260276
eventgroupinstance_id: Int!
@@ -387,6 +403,12 @@ type Mutation {
387403
): startStopOutput
388404
}
389405

406+
type Mutation {
407+
testProxy(
408+
callbackport_id: Int!
409+
): testProxyOutput
410+
}
411+
390412
type Mutation {
391413
toggleProxy(
392414
callbackport_id: Int!
@@ -439,6 +461,8 @@ type Mutation {
439461
webhook: String
440462
admin_id: Int
441463
deleted: Boolean
464+
banner_text: String
465+
banner_color: String
442466
): updateOperationOutput
443467
}
444468

@@ -481,6 +505,7 @@ type Mutation {
481505
input OperatorInput {
482506
username: String!
483507
password: String
508+
email: String
484509
bot: Boolean
485510
}
486511

@@ -556,6 +581,7 @@ type createAPITokenResponse {
556581
operator_id: Int
557582
name: String
558583
created_by: Int
584+
token_type: String
559585
}
560586

561587
type OperatorOutput {
@@ -575,6 +601,7 @@ type OperatorOutput {
575601
failed_login_count: Int
576602
last_failed_login_timestamp: String
577603
account_type: String
604+
email: String
578605
}
579606

580607
type createPayloadOutput {
@@ -715,6 +742,10 @@ type updateCurrentOperationOutput {
715742
status: String!
716743
error: String
717744
operation_id: Int
745+
name: String
746+
complete: Boolean
747+
banner_text: String
748+
banner_color: String
718749
}
719750

720751
type deleteBlockListOutput {
@@ -745,6 +776,10 @@ type generateReportOutput {
745776
type previewFileOutput {
746777
status: String!
747778
error: String
779+
size: Int
780+
host: String
781+
full_remote_path: String
782+
filename: String
748783
contents: String
749784
}
750785

@@ -845,6 +880,8 @@ type updateOperationOutput {
845880
webhook: String
846881
admin_id: Int
847882
deleted: Boolean
883+
banner_text: String
884+
banner_color: String
848885
id: Int
849886
}
850887

@@ -924,6 +961,7 @@ type globalSettingsOutput {
924961
type exportCallbackConfigOutput {
925962
status: String!
926963
error: String
964+
agent_callback_id: String
927965
config: String
928966
}
929967

@@ -1036,3 +1074,18 @@ type containerWriteFileOutput {
10361074
version: String
10371075
}
10381076

1077+
type eventingTriggerRetryFromStepOutput {
1078+
status: String!
1079+
error: String
1080+
}
1081+
1082+
type testProxyOutput {
1083+
status: String!
1084+
error: String
1085+
}
1086+
1087+
type eventingTestFileOutput {
1088+
status: String!
1089+
error: String
1090+
}
1091+

hasura-docker/metadata/metadata/actions.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,16 @@ actions:
331331
- role: operation_admin
332332
- role: mythic_admin
333333
- role: developer
334+
- name: eventingTestFile
335+
definition:
336+
kind: ""
337+
handler: '{{MYTHIC_ACTIONS_URL_BASE}}/eventing_test_file_webhook'
338+
forward_client_headers: true
339+
permissions:
340+
- role: operator
341+
- role: operation_admin
342+
- role: mythic_admin
343+
- role: developer
334344
- name: eventingTriggerCancel
335345
definition:
336346
kind: synchronous
@@ -371,6 +381,16 @@ actions:
371381
- role: operation_admin
372382
- role: mythic_admin
373383
- role: developer
384+
- name: eventingTriggerRetryFromStep
385+
definition:
386+
kind: synchronous
387+
handler: '{{MYTHIC_ACTIONS_URL_BASE}}/eventing_trigger_retry_from_step_webhook'
388+
forward_client_headers: true
389+
permissions:
390+
- role: operator
391+
- role: operation_admin
392+
- role: mythic_admin
393+
- role: developer
374394
- name: eventingTriggerRunAgain
375395
definition:
376396
kind: synchronous
@@ -585,6 +605,16 @@ actions:
585605
- role: mythic_admin
586606
- role: operation_admin
587607
- role: operator
608+
- name: testProxy
609+
definition:
610+
kind: synchronous
611+
handler: '{{MYTHIC_ACTIONS_URL_BASE}}/test_proxy_webhook'
612+
forward_client_headers: true
613+
permissions:
614+
- role: operator
615+
- role: operation_admin
616+
- role: mythic_admin
617+
- role: developer
588618
- name: toggleProxy
589619
definition:
590620
kind: synchronous
@@ -809,4 +839,7 @@ custom_types:
809839
- name: containerListFilesOutput
810840
- name: containerUploadFileOutput
811841
- name: containerWriteFileOutput
842+
- name: eventingTriggerRetryFromStepOutput
843+
- name: testProxyOutput
844+
- name: eventingTestFileOutput
812845
scalars: []

0 commit comments

Comments
 (0)