-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathschema.graphql
More file actions
3320 lines (2958 loc) · 68.3 KB
/
schema.graphql
File metadata and controls
3320 lines (2958 loc) · 68.3 KB
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"""@auth indicates that the specified query / mutation / subscription requires user authentication"""
directive @auth on FIELD_DEFINITION
directive @constraint(
tag: String!
pattern: String!
example: String!
) on ENUM_VALUE
"""Directs the executor to defer this fragment when the `if` argument is true or undefined."""
directive @defer(
"""Deferred when true or undefined."""
if: Boolean
"""Unique name"""
label: String
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
"""Marks an element of a GraphQL schema as no longer supported."""
directive @deprecated(
"""Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/)."""
reason: String
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
directive @goField(
forceResolver: Boolean
name: String
) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
directive @httpError(
statusCode: Int!
) on ENUM_VALUE
"""Directs the executor to include this field or fragment only when the `if` argument is true."""
directive @include(
"""Included when true."""
if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
"""@noRole indicates that the specified query / mutation / subscription can be executed regardless of the user's roles.
This practically means that the query will not allow accessing any org-specific data."""
directive @noRole on FIELD_DEFINITION
"""@noauth indicates that the specified query / mutation / subscription can be executed anonymously without
user authentication, meaning anyone and everyone can execute it. USE WITH CAUTION.
user authentication, meaning anyone and everyone can execute it. USE WITH CAUTION."""
directive @noauth on FIELD_DEFINITION
"""Indicates exactly one field must be supplied and this field must not be `null`."""
directive @oneOf on INPUT_OBJECT
"""@requiresRole indicates that the specified query / mutation / subscription requires any of the provided roles to be executed.
Users without any of the specified roles will not be able to execute the query / mutation / subscription."""
directive @requiresRole(
roles: [AuthRole!]!
) on FIELD_DEFINITION
directive @restApiField(
action: ApiFieldAction
) on FIELD_DEFINITION
directive @restApiRoute(
method: ApiMethod!
path: String!
tags: [String!]!
) on FIELD_DEFINITION
"""Directs the executor to skip this field or fragment when the `if` argument is true."""
directive @skip(
"""Skipped when true."""
if: Boolean!
) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
"""Exposes a URL that specifies the behavior of this scalar."""
directive @specifiedBy(
"""The URL that specifies the behavior of this scalar."""
url: String!
) on SCALAR
"""@validate should be applied on API input fields / arguments, to enforce API input validation.
See https://github.com/go-playground/validator for possible built-in constraints,
and github.com/otterize/cloud/src/backend-service/pkg/lib/graphql/directives for custom contraints."""
directive @validate(
constraint: String
customConstraint: CustomConstraint
) on INPUT_FIELD_DEFINITION | ARGUMENT_DEFINITION
type AWSCustomer {
awsAccountId: String!
}
type AWSGeneralResource {
resource: String!
isWildcard: Boolean!
}
type AWSInfo {
region: String!
namespace: String!
eksClusterName: String!
awsAccountId: String!
}
input AWSInfoInput {
clusterId: ID!
region: String!
namespace: String!
eksClusterName: String!
awsAccountId: String!
}
type AWSResource {
type: AWSResourceType!
info: AWSResourceInfo!
}
union AWSResourceInfo =AWSS3Resource | AWSGeneralResource
enum AWSResourceType {
GENERAL
S3
}
type AWSS3Resource {
bucketName: String!
}
type AWSVisibility {
arn: String!
resourceType: AWSVisibilityResourceType!
name: String!
lbArn: String
domain: String
ips: [String!]!
eksIngressName: String
region: String!
}
enum AWSVisibilityResourceType {
EKS
}
type AWSVisibilitySettings {
isActive: Boolean!
awsAccountId: String!
externalId: String!
regions: [String!]!
}
input AWSVisibilitySettingsInput {
isActive: Boolean!
awsAccountId: String!
regions: [String!]!
}
type AccessApprovalRuleset {
id: ID!
order: Int!
origin: AccessApprovalRulesetFilter!
target: AccessApprovalRulesetFilter!
action: AccessApprovalRulesetAction!
}
enum AccessApprovalRulesetAction {
AUTO_APPROVE
AUTO_DENY
REQUIRE_APPROVAL
}
type AccessApprovalRulesetFilter {
clusterIds: IDFilterValue
serviceIds: IDFilterValue
namespaceIds: IDFilterValue
environmentIds: IDFilterValue
}
enum AccessApprovalRulesetFilterValue {
ANY
}
type AccessApprovalRulesetResources {
clusters: [Cluster!]!
services: [Service!]!
namespaces: [Namespace!]!
}
type AccessApprovalRulesetSummary {
environment: Environment!
count: Int!
}
type AccessGraph {
filter: AccessGraphFilter!
"""Clusters for which there are results"""
clusters: [Cluster!]!
serviceAccessGraphs: [ServiceAccessGraph!]!
serviceCount: Int!
}
type AccessGraphEdge {
client: Service!
server: Service!
discoveredIntents: [Intent!]!
appliedIntents: [Intent!]!
accessStatus: EdgeAccessStatus!
accessStatuses: EdgeAccessStatuses!
findings: [CallFinding!]!
traffic: TrafficLevel!
}
""" Access graph filter """
type AccessGraphFilter {
clusterIds: IDFilterValue
serviceIds: IDFilterValue
namespaceIds: IDFilterValue
environmentIds: IDFilterValue
lastSeen: TimeFilterValue
featureFlags: FeatureFlags
includeOnlyClientsMatchingFilter: Boolean
hits: NumericFilterValue
}
type AccessLog {
clusters: [Cluster!]!
namespaces: [Namespace!]!
entries: [AccessLogEdge!]!
timeRange: TimeRange!
totalCount: Int!
}
type AccessLogEdge {
timestamp: Time!
client: Service!
server: Service!
appliedIntents: [Intent!]
originIntent: Intent!
dns: String!
accessStatus: EdgeAccessStatus!
}
""" This enum should be removed after removing allowExternalTrafficPolicy from IntentsOperatorConfigurationInput, it is here for backward compatibility """
enum AllowExternalTrafficPolicy {
OFF
ALWAYS
IF_BLOCKED_BY_OTTERIZE
}
enum ApiFieldAction {
"""Do nothing, expose models to the REST API as id-only structs (Default behaviour)"""
COLLAPSE_MODEL
"""Expand model field, returning its full data and not just its ID"""
EXPAND_MODEL
"""Drop this field from the REST API"""
DROP_FIELD
}
enum ApiMethod {
GET
POST
PUT
PATCH
DELETE
}
"""applied intents request"""
input AppliedIntentsRequestApprovalData {
"""applied intents request"""
approved: Boolean!
"""applied intents request"""
reason: String!
}
type AppliedIntentsRequestStatus {
id: ID!
resourceId: String!
generation: Int!
"""client"""
service: Service!
timestamp: Time!
status: AppliedIntentsRequestStatusLabel!
reason: String
}
enum AppliedIntentsRequestStatusLabel {
PENDING
APPROVED
DENIED
STALE
}
type AppliedIntentsRequestWithDetails {
id: ID!
clientService: Service!
serverServices: [Service!]!
timestamp: Time!
status: AppliedIntentsRequestStatusLabel!
reason: String
clientIntents: ClientIntentsFileRepresentation!
}
enum AuthRole {
ADMIN
VIEWER
}
type AutoApproveMoreRestrictiveIntentsByEnv {
environmentId: ID!
enabled: Boolean!
}
enum AutomateThirdPartyNetworkPolicy {
OFF
ALWAYS
IF_BLOCKED_BY_OTTERIZE
}
enum AutomatedThirdPartyPolicyTypes {
EXTERNAL_TRAFFIC
METRICS_TRAFFIC
WEBHOOK_TRAFFIC
}
enum AwsIamStep {
CREATE_CLUSTER
CONNECT_CLUSTER
DEPLOY_OTTERIZE_FOR_AWS_IAM
CREATE_S3_BUCKET
DEPLOY_SAMPLE_SERVER
VIEW_LOGS
LABEL_THE_SERVER_POD
SEE_THE_CREATED_ROLE
SEE_THE_SERVICE_ACCOUNT
APPLY_INTENTS
QUERY_S3_BUCKET_CONTENT
COMPLETED
}
type AzureInfo {
tenantId: String!
subscriptionId: String!
resourceGroup: String!
aksClusterName: String!
namespace: String!
}
input AzureInfoInput {
clusterId: ID!
tenantId: String!
subscriptionId: String!
resourceGroup: String!
aksClusterName: String!
namespace: String!
}
type AzureKeyVaultPolicy {
certificatePermissions: [String!]
keyPermissions: [String!]
secretPermissions: [String!]
storagePermissions: [String!]
}
input AzureKeyVaultPolicyInput {
certificatePermissions: [String!]
keyPermissions: [String!]
secretPermissions: [String!]
storagePermissions: [String!]
}
type AzureResource {
resource: String!
}
type BasicEntity {
id: ID!
name: String!
}
"""The `Boolean` scalar type represents `true` or `false`."""
scalar Boolean
input CLICommand {
noun: String!
verb: String!
modifiers: [String!]
}
input CLIIdentifier {
version: String!
contextId: String!
cloudClientId: String
}
input CLITelemetry {
identifier: CLIIdentifier!
command: CLICommand!
}
type CallFinding {
standard: RegulationStandard!
code: RegulationCode!
reason: String!
}
input CertificateCustomization {
dnsNames: [String!]
ttl: Int
}
type CertificateInformation {
commonName: String!
dnsNames: [String!]
ttl: Int
}
enum CertificateProvider {
SPIRE
CERT_MANAGER
CLOUD
NONE
}
input ChannelInfoInput {
channelName: String!
}
input ClientIPConfig {
timeoutSeconds: Int
}
type ClientIntentAccessStatus {
total: Int!
allowed: Int!
blocked: Int!
wouldBeBlocked: Int!
}
type ClientIntentEvent {
firstTimestamp: Time
lastTimestamp: Time
reportingComponent: String
count: Int!
type: String!
reason: String!
message: String!
}
input ClientIntentEventInput {
clientName: String!
clientWorkloadKind: String
namespace: String!
name: String!
labels: [KeyValueInput!]
annotations: [KeyValueInput!]
count: Int!
clientIntentName: String!
firstTimestamp: Time
lastTimestamp: Time
reportingComponent: String
reportingInstance: String
sourceComponent: String
type: String!
reason: String!
message: String!
}
type ClientIntentStatus {
clientIntentName: String!
generation: Int!
timestamp: Time!
observedGeneration: Int!
upToDate: Boolean!
}
input ClientIntentStatusInput {
namespace: String!
clientName: String!
clientWorkloadKind: String
clientIntentName: String!
generation: Int!
timestamp: Time!
observedGeneration: Int!
upToDate: Boolean!
}
type ClientIntentsFileRepresentation {
fileName: String!
namespacedFileName: String!
service: Service!
rows: [ClientIntentsRow!]!
content: String!
}
type ClientIntentsFiles {
files: [ClientIntentsFileRepresentation!]!
mergedYAMLFile: MergedYAMLFile
}
type ClientIntentsRow {
text: String!
diff: RowDiff
calledServerId: ID
}
type CloudIam {
awsRoles: [String!]
}
type Cluster {
id: ID!
name: String!
configuration: ClusterConfiguration
namespaces: [Namespace!]!
serviceCount: Int!
integration: Integration
integrations: [Integration!]!
defaultEnvironment: Environment
components: IntegrationComponents!
createdAt: Time!
}
type ClusterConfiguration {
globalDefaultDeny: Boolean!
istioGlobalDefaultDeny: Boolean!
linkerdGlobalDefaultDeny: Boolean!
useNetworkPoliciesInAccessGraphStates: Boolean!
useIstioPoliciesInAccessGraphStates: Boolean!
useLinkerdPoliciesInAccessGraphStates: Boolean!
useKafkaACLsInAccessGraphStates: Boolean!
useAWSIAMInAccessGraphStates: Boolean!
useGCPIAMInAccessGraphStates: Boolean!
useAzureIAMInAccessGraphStates: Boolean!
useDatabaseInAccessGraphStates: Boolean!
clusterFormSettings: ClusterFormSettings!
}
input ClusterConfigurationInput {
globalDefaultDeny: Boolean!
istioGlobalDefaultDeny: Boolean
linkerdGlobalDefaultDeny: Boolean
useNetworkPoliciesInAccessGraphStates: Boolean!
useIstioPoliciesInAccessGraphStates: Boolean!
useLinkerdPoliciesInAccessGraphStates: Boolean!
useKafkaACLsInAccessGraphStates: Boolean!
useAWSIAMInAccessGraphStates: Boolean
useGCPIAMInAccessGraphStates: Boolean
useAzureIAMInAccessGraphStates: Boolean
useDatabaseInAccessGraphStates: Boolean
clusterFormSettings: ClusterFormSettingsInput
}
type ClusterFinding {
cluster: Cluster!
reason: String!
reasonId: String!
intentsOperatorState: IntentsOperatorState
relatedServices: [Service!]
}
type ClusterFormSettings {
certificateProvider: CertificateProvider!
enforcement: Boolean!
}
input ClusterFormSettingsInput {
certificateProvider: CertificateProvider!
enforcement: Boolean!
}
input Component {
componentType: TelemetryComponentType!
componentInstanceId: ID!
contextId: ID!
version: String!
cloudClientId: String
}
type ComponentStatus {
type: ComponentStatusType!
lastSeen: Time
}
enum ComponentStatusType {
NOT_INTEGRATED
CONNECTED
DISCONNECTED
}
enum ComponentType {
INTENTS_OPERATOR
CREDENTIALS_OPERATOR
NETWORK_MAPPER
}
input ConnectionsCount {
current: Int!
removed: Int!
added: Int!
}
type CreateGitHubIntegrationResponse {
integration: Integration!
nextURL: String!
}
type CreateGitLabIntegrationResponse {
integration: Integration!
nextURL: String!
}
type CreateSIEMIntegrationResponse {
integration: Integration!
}
type CreateSlackIntegrationResponse {
integration: Integration!
nextURL: String!
}
type CredentialsOperatorComponent {
type: ComponentType!
status: ComponentStatus!
}
"""The set of custom constraints supported by our API schema."""
enum CustomConstraint {
CUSTOM_NAME
K8S_NAME
LABEL_NAME
NONEMPTY
ID
}
input DNSIPPairInput {
dnsName: String
ips: [String!]
}
type Dashboard {
findings: [FindingSummary!]!
summary: DashboardData!
}
type DashboardData {
findingsCount: Int!
nonCompliantClusters: Fraction!
nonCompliantWorkloads: Fraction!
overallCompliance: Fraction!
nonCompliantStandards: Fraction!
nonCompliantControls: Fraction!
}
type DashboardV2 {
dashboard: DashboardData!
findings: [FindingSummaryV2!]!
}
type DatabaseConfig {
dbname: String!
table: String!
operations: [DatabaseOperation!]
}
input DatabaseConfigInput {
dbname: String!
table: String
operations: [DatabaseOperation!]
}
type DatabaseInfo {
databaseType: DatabaseType!
address: String!
username: String!
visibility: DatabaseVisibilitySettings
}
input DatabaseInfoInput {
databaseType: DatabaseType!
address: String!
visibility: DatabaseVisibilitySettingsInput
}
enum DatabaseOperation {
ALL
SELECT
INSERT
UPDATE
DELETE
}
enum DatabaseType {
POSTGRESQL
MYSQL
}
type DatabaseVisibilitySettings {
source: DatabaseVisibilitySource
gcpPubSub: GCPPubSubLogConsumerSettings
}
input DatabaseVisibilitySettingsInput {
source: DatabaseVisibilitySource
gcpPubSub: GCPPubSubLogConsumerSettingsInput
}
enum DatabaseVisibilitySource {
GCP_PUBSUB
}
type DefaultIntentsApprovalActionByEnv {
environmentId: ID!
action: AccessApprovalRulesetAction!
}
type DetectedCloudServer {
cloudProvider: String!
cloudService: String!
region: String!
}
input DiscoveredIntentInput {
discoveredAt: Time!
intent: IntentInput!
}
input EBPFDiagnostics {
containerImage: String
executable: String
executableHash: String
programName: String
podName: String
podNamespace: String
}
type EdgeAccessStatus {
useNetworkPoliciesInAccessGraphStates: Boolean!
useIstioPoliciesInAccessGraphStates: Boolean!
useLinkerdPoliciesInAccessGraphStates: Boolean!
useKafkaPoliciesInAccessGraphStates: Boolean!
verdict: EdgeAccessStatusVerdict!
reason: EdgeAccessStatusReason!
reasons: [EdgeAccessStatusReason!]!
}
enum EdgeAccessStatusReason {
ALLOWED_BY_APPLIED_INTENTS
ALLOWED_BY_APPLIED_INTENTS_OVERLY_PERMISSIVE
ALLOWED_BY_APPLIED_INTENTS_HTTP_OVERLY_PERMISSIVE
ALLOWED_BY_APPLIED_INTENTS_KAFKA_OVERLY_PERMISSIVE
ALLOWED_BY_APPLIED_INTENTS_DATABASE_OVERLY_PERMISSIVE
ALLOWED_BY_EXTERNAL_TRAFFIC_NETWORK_POLICY
ALLOWED_BY_INTERNET_EGRESS_NETWORK_POLICY
ALLOWED_BY_INTERNET_INGRESS_NETWORK_POLICY
WOULD_BE_ALLOWED_BY_EXTERNAL_TRAFFIC_NETWORK_POLICY
BLOCKED_BY_APPLIED_INTENTS_UNDER_PERMISSIVE
BLOCKED_BY_APPLIED_INTENTS_RESOURCE_MISMATCH
BLOCKED_BY_APPLIED_INTENTS_HTTP_UNDER_PERMISSIVE
BLOCKED_BY_APPLIED_INTENTS_HTTP_RESOURCE_MISMATCH
BLOCKED_BY_APPLIED_INTENTS_KAFKA_UNDER_PERMISSIVE
BLOCKED_BY_APPLIED_INTENTS_KAFKA_RESOURCE_MISMATCH
BLOCKED_BY_KAFKA_ENFORCEMENT_CONFIG_MISSING_APPLIED_INTENTS
BLOCKED_BY_APPLIED_INTENTS_DATABASE_UNDER_PERMISSIVE
BLOCKED_BY_APPLIED_INTENTS_DATABASE_RESOURCE_MISMATCH
BLOCKED_BY_DATABASE_ENFORCEMENT_CONFIG_MISSING_APPLIED_INTENTS
BLOCKED_BY_INTERNET_EGRESS_NETWORK_POLICY
BLOCKED_BY_INTERNET_INGRESS_NETWORK_POLICY
BLOCKED_BY_DEFAULT_DENY
SHARED_SERVICE_ACCOUNT
CLIENT_ISTIO_SIDECAR_MISSING
SERVER_ISTIO_SIDECAR_MISSING
INTENTS_OPERATOR_NOT_ENFORCING
INTENTS_OPERATOR_NOT_ENFORCING_MISSING_APPLIED_INTENT
INTENTS_OPERATOR_NOT_ENFORCING_KAFKA_INTENTS_NOT_REQUIRED_FOR_TOPIC
MISSING_APPLIED_INTENT
MISSING_APPLIED_CLOUD_RESOURCE_INTENT
NOT_IN_PROTECTED_SERVICES
INTENTS_OPERATOR_NEVER_CONNECTED
NETWORK_MAPPER_NEVER_CONNECTED
INTERNET_ACCESS_STATUS_UNKNOWN
NO_INTENTS_FOUND_OF_RELEVANT_TYPE
IGNORED_IN_CALCULATION
INTERNET_INTENTS_ENFORCEMENT_DISABLED
BLOCKED_BY_DEFAULT_DENY_MISSING_EXTERNAL_TRAFFIC_POLICY
BLOCKED_BY_APPLIED_INTENTS_MISSING_EXTERNAL_TRAFFIC_POLICY
ALLOWED_BY_EXTERNALLY_MANAGED_NETWORK_POLICY
ALLOWED_BY_METRICS_COLLECTION_TRAFFIC_NETWORK_POLICY
WOULD_BE_ALLOWED_BY_METRICS_COLLECTION_TRAFFIC_NETWORK_POLICY
}
enum EdgeAccessStatusVerdict {
EXPLICITLY_ALLOWED
IMPLICITLY_ALLOWED
WOULD_BE_BLOCKED
BLOCKED
UNKNOWN
}
type EdgeAccessStatuses {
networkPolicies: EdgeAccessStatus!
kafkaACLs: EdgeAccessStatus!
istioPolicies: EdgeAccessStatus!
awsIam: EdgeAccessStatus!
gcpIam: EdgeAccessStatus!
azureIAM: EdgeAccessStatus!
database: EdgeAccessStatus!
linkerdPolicies: EdgeAccessStatus!
}
enum EligibleForMetricsCollectionReason {
POD_ANNOTATIONS
SERVICE_ANNOTATIONS
}
type Environment {
id: ID!
name: String!
labels: [Label!]
namespaces: [Namespace!]!
serviceCount: Int!
appliedIntentsCount: Int!
}
input Error {
message: String!
errorClass: String!
cause: Error
stack: [StackFrame]
metadata: [MetadataEntry!]
}
enum EventType {
INTENTS_DELETED
INTENTS_APPLIED
INTENTS_APPLIED_KAFKA
INTENTS_APPLIED_HTTP
INTENTS_APPLIED_DATABASE
INTENTS_APPLIED_INTERNET
INTENTS_DISCOVERED
INTENTS_DISCOVERED_SOCKET_SCAN
INTENTS_DISCOVERED_CAPTURE
INTENTS_DISCOVERED_KAFKA
INTENTS_DISCOVERED_ISTIO
INTENTS_DISCOVERED_TCP
MAPPER_EXPORT
MAPPER_VISUALIZE
KAFKA_SERVER_CONFIG_APPLIED
KAFKA_SERVER_CONFIG_DELETED
NETWORK_POLICIES_CREATED
NETWORK_POLICIES_DELETED
KAFKA_ACLS_CREATED
KAFKA_ACLS_DELETED
ISTIO_POLICIES_CREATED
ISTIO_POLICIES_DELETED
STARTED
SERVICE_DISCOVERED
NAMESPACE_DISCOVERED
PROTECTED_SERVICE_APPLIED
PROTECTED_SERVICE_DELETED
ACTIVE
EBPF_ATTACHED
EBPF_ATTACH_FAILED
EBPF_PROCESSING_ERROR
}
input ExternalTrafficDiscoveredIntentInput {
discoveredAt: Time!
intent: ExternalTrafficIntentInput!
}
input ExternalTrafficIntentInput {
namespace: String!
clientName: String!
target: DNSIPPairInput!
connectionsCount: ConnectionsCount
ttl: Time
}
input ExternallyAccessibleServiceInput {
namespace: String!
serverName: String!
serviceName: String
referredByIngress: Boolean!
hasInternetFacingAWSALBIngress: Boolean
serviceType: KubernetesServiceType!
}
input ExternallyManagedPolicyWorkloadInput {
name: String!
namespace: String!
kind: String!
}
type FeatureFlags {
isCloudServicesDetectionEnabled: Boolean
isCloudSecurityEnabled: Boolean
useClientIntentsV2: Boolean
enableFindingsV2: Boolean
useTypedIntentsCTE: Boolean
enableInternetIntentsSuggestions: Boolean
enableIAMIntentsSuggestions: Boolean
enableNetworkPoliciesInAccessGraph: Boolean
}
type Finding {
hash: String!
service: BasicEntity!
serviceNamespace: BasicEntity
server: BasicEntity!
cluster: BasicEntity!
intentsOperatorState: IntentsOperatorState
clusterRelatedServices: [Service!]
reason: String!
status: FindingStatus!
ignoredReason: String
type: FindingType!
controlId: RegulationCode!
}
enum FindingStatus {
OPEN
RESOLVED
IGNORED
}
type FindingStatusHistory {
timestamp: Time!
status: FindingStatus!
reason: String
}
type FindingSummary {
standard: RegulationStandard!
codeLabel: String!
code: RegulationCode!
severity: Severity!
description: String!
validationDescription: String
clusterFindings: [ClusterFinding!]!
serviceFindings: [ServiceFinding!]!
clusterCount: Int!
serviceCount: Int!
requirements: [FindingSummary!]
}
type FindingSummaryResponse {
findingSummaries: [FindingSummaryV2!]!
timestamp: Time!
}
type FindingSummaryV2 {
standard: RegulationStandard!
code: RegulationCode!
codeLabel: String!
severity: Severity!
description: String!
validationDescription: String
status: FindingStatus!
ignoredReason: String
workloadFindingsStatus: StatusSummary!
clusterFindingStatus: StatusSummary!
requirements: [FindingSummaryV2!]
wasOpen: Boolean!
}
"""NEW findings"""
enum FindingType {
SERVICE
CLUSTER
}
"""The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point)."""
scalar Float
type Fraction {
numerator: Int!
denominator: Int!
}
type GCPInfo {
region: String!
namespace: String!
gcpProjectName: String!
gkeClusterName: String!
}
input GCPInfoInput {
region: String!
namespace: String!
clusterId: String!
gcpProjectName: String!
gkeClusterName: String!
}
type GCPPubSubLogConsumerSettings {
projectId: String!
topic: String!
}
input GCPPubSubLogConsumerSettingsInput {
projectId: String!
topic: String!
}