-
Notifications
You must be signed in to change notification settings - Fork 2
/
constants.go
523 lines (503 loc) · 32.8 KB
/
constants.go
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
// Copyright 2020 StrongDM Inc
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by constgen. DO NOT EDIT.
package sdm
// Permission Levels, shared by all entities capable of making authenticated requests against StrongDM.
const (
PermissionLevelRootAdmin = "root-admin"
PermissionLevelAdmin = "admin"
PermissionLevelDatabaseAdmin = "database-admin"
PermissionLevelTeamLeader = "multi-team-leader"
PermissionLevelUser = "user"
PermissionLevelAuditor = "auditor"
// Deprecated: Use permissions.CheckNode()
PermissionLevelRelay = "relay"
PermissionLevelAdminToken = "admin-token"
PermissionLevelSCIMToken = "scim-token"
PermissionLevelServiceNowToken = "servicenow-token"
PermissionLevelService = "service"
PermissionLevelSuspended = "suspended"
PermissionLevelEmpty = ""
)
// Node Lifecycle States, defining whether a node was last reported online, offline, restarting, etc.
const (
NodeStateNew = "new"
NodeStateVerifyingRestart = "verifying_restart"
NodeStateAwaitingRestart = "awaiting_restart"
NodeStateRestarting = "restarting"
NodeStateStarted = "started"
NodeStateStopped = "stopped"
NodeStateDead = "dead"
)
// Providers responsible for managing roles and users.
// None, or an empty string, implies the user is managed by strongDM.
// Deprecated: Please use SCIMProvider instead.
const (
ProviderNone = ""
ProviderOkta = "okta"
ProviderSailPoint = "sailpoint"
ProviderAzure = "azure"
ProviderGeneric = "generic"
ProviderOneLogin = "onelogin"
ProviderGoogle = "google"
)
// Providers responsible for managing roles and users.
// None, or an empty string, implies the user is managed by strongDM.
const (
SCIMProviderNone = ""
SCIMProviderOkta = "okta"
SCIMProviderSailPoint = "sailpoint"
SCIMProviderAzure = "azure"
SCIMProviderGeneric = "generic"
SCIMProviderOneLogin = "onelogin"
SCIMProviderGoogle = "google"
)
// Providers responsible for SSO authentication.
const (
AuthProviderAzure = "azure"
AuthProviderBitium = "bitium"
AuthProviderGoogle = "google"
AuthProviderOkta = "okta"
AuthProviderStrongDM = "strongdm"
AuthProviderActiveDirectory = "active directory"
AuthProviderGenericOIDC = "generic oidc"
AuthProviderOneLoginOIDC = "oneloginv2"
AuthProviderKeycloak = "keycloak"
AuthProviderShibboleth = "shibboleth"
AuthProviderAuth0 = "auth0"
AuthProviderWorkspaceOne = "workspace one"
AuthProviderOneLoginSAML = "onelogin-saml"
AuthProviderGenericSAML = "generic-saml"
AuthProviderPingIDSAML = "ping-identity-saml"
AuthProviderPingIDOIDC = "ping-identity-oidc"
)
// Providers responsible for multi-factor authentication
const (
MFAProviderNone = ""
MFAProviderDuo = "duo"
MFAProviderTOTP = "totp"
MFAProviderOkta = "okta"
)
// Activity Entities, all entity types that can be part of an activity.
const (
ActivityEntityTypeUser = "user"
ActivityEntityTypeRole = "role"
ActivityEntityTypeLegacyCompositeRole = "composite_role"
ActivityEntityTypeDatasource = "datasource"
ActivityEntityTypeOrganization = "organization"
ActivityEntityTypeInstallation = "installation"
ActivityEntityTypeSecretStore = "secretstore"
ActivityEntityTypeSecretEngine = "secretengine"
ActivityEntityTypeRemoteIdentityGroup = "remote_identity_group"
ActivityEntityTypeRemoteIdentity = "remote_identity"
ActivityEntityTypeIdentitySet = "identity_set"
ActivityEntityTypeIdentityAlias = "identity_alias"
ActivityEntityTypeAccessRequest = "access_request"
ActivityEntityTypeWorkflow = "workflow"
ActivityEntityTypeApprovalFlow = "approval_flow"
ActivityEntityTypeApprovalFlowStep = "approval_flow_step"
ActivityEntityTypeApprovalFlowApprover = "approval_flow_approver"
ActivityEntityTypeManagedSecret = "managed_secret"
ActivityEntityTypeNode = "node"
ActivityEntityTypePeeringGroup = "peering_group"
ActivityEntityTypePeeringGroupNode = "peering_group_node"
ActivityEntityTypePeeringGroupResource = "peering_group_resource"
ActivityEntityTypePeeringGroupPeer = "peering_group_peer"
)
// Activity Verbs, describe which kind of activity has taken place.
const (
ActivityVerbUserAdded = "user added"
ActivityVerbUserDeleted = "user deleted"
ActivityVerbUserUpdated = "user updated"
ActivityVerbUserSignup = "user signup"
ActivityVerbUserTypeChanged = "user type changed"
ActivityVerbUserPasswordChanged = "user password changed"
ActivityVerbUserTemporaryAccessGranted = "user temporary access granted"
ActivityVerbUserTemporaryAccessRevoked = "user temporary access revoked"
ActivityVerbUserTemporaryAccessExpired = "user temporary access expired"
ActivityVerbUserAddedToRole = "user added to role"
ActivityVerbUserDeletedFromRole = "user deleted from role"
ActivityVerbUserSuspended = "user suspended"
ActivityVerbUserReinstated = "user reinstated"
ActivityVerbUserLoggedIntoTheUI = "user logged into the Admin UI"
ActivityVerbParentAdminLoggedIntoChildOrg = "parent admin logged into the child org"
ActivityVerbUserLoggedIntoTheClient = "user logged into the local client"
ActivityVerbServiceAccountCreated = "service account created"
ActivityVerbServiceAccountExpired = "service account expired"
ActivityVerbAdminTokenAdded = "admin token created"
ActivityVerbAdminTokenDeleted = "admin token deleted"
ActivityVerbAdminTokenExpired = "admin token expired"
ActivityVerbAdminTokenRekeyed = "admin token rekeyed"
ActivityVerbAdminTokenCloned = "admin token cloned"
ActivityVerbAdminTokenSuspended = "admin token suspended"
ActivityVerbAdminTokenReinstated = "admin token reinstated"
ActivityVerbSSOUserLoggedIntoTheUI = "user logged into the Admin UI using SSO"
ActivityVerbSSOUserLoggedIntoTheClient = "user logged into the local client using SSO"
ActivityVerbUserLoggedOutFromTheClient = "user logged out from the local client"
ActivityVerbUserLoggedOutFromTheUI = "user logged out from the Admin UI"
ActivityVerbFailedLoginFromTheUI = "failed login attempt from the Admin UI"
ActivityVerbFailedLoginFromTheClient = "failed login attempt from the local client"
ActivityVerbMFADeniedFromTheUI = "MFA denied access for the Admin UI"
ActivityVerbMFADeniedFromTheClient = "MFA denied access for the local client"
ActivityVerbTooManyAttemptsLockout = "user account locked due to failed login attempts"
ActivityVerbAttemptCounterReset = "failed login attempt counter reset"
ActivityVerbSuspendedUserLoginAttemptFromTheClient = "attempt to login by a suspended user from the local client"
ActivityVerbSuspendedUserLoginAttemptFromTheUI = "attempt to login by a suspended user from the Admin UI"
ActivityVerbServiceAccountLoginAttemptFromTheUI = "attempted to login by a service account from the Admin UI"
ActivityVerbSuspendedServiceAccountLoginAttemptFromTheUI = "attempted to login by a suspended service account from the Admin UI"
ActivityVerbSuspendedServiceAccountLoginAttemptFromTheClient = "attempt to login by a suspended service account from the local client"
ActivityVerbUserSetAPassword = "user set a password"
ActivityVerbUserResetAPassword = "user reset their password"
ActivityVerbUserChangedPassword = "user changed their password"
ActivityVerbUserInvited = "user invited"
ActivityVerbUserClickedInvitation = "user clicked on their invitation"
ActivityVerbUserClickedPasswordReset = "user clicked on their password reset"
ActivityVerbUserAllowPasswordLogin = "user allowed to login via password"
ActivityVerbUserRequireSSOLogin = "user required to login via SSO"
ActivityVerbUserProvisioningEnabled = "user provisioning enabled"
ActivityVerbUserProvisioningDisabled = "user provisioning disabled"
ActivityVerbAdminInitiatedPasswordReset = "admin initiated password reset"
ActivityVerbRoleAdded = "role added"
ActivityVerbRoleDeleted = "role deleted"
ActivityVerbRoleUpdated = "role updated"
ActivityVerbRoleAccessRulesUpdated = "access rules updated"
ActivityVerbRoleAccessRulesCreated = "access rules created"
ActivityVerbRoleAccessRulesDeleted = "access rules deleted"
ActivityVerbRoleProvisioningEnabled = "role provisioning enabled"
ActivityVerbRoleProvisioningDisabled = "role provisioning disabled"
ActivityVerbDatasourceAdded = "datasource added"
ActivityVerbDatasourceCloned = "datasource cloned"
ActivityVerbDatasourceDeleted = "datasource deleted"
ActivityVerbDatasourceUpdated = "datasource updated"
ActivityVerbDatasourcePortOverride = "datasource connection port overriden"
ActivityVerbMultipleDatasourcePortOverride = "multiple datasource ports overriden"
ActivityVerbServerAdded = "server added"
ActivityVerbServerCloned = "server cloned"
ActivityVerbServerDeleted = "server deleted"
ActivityVerbServerUpdated = "server updated"
ActivityVerbServerPortOverride = "server connection port overriden"
ActivityVerbMultipleServerPortOverride = "multiple server ports overriden"
ActivityVerbClusterAdded = "cluster added"
ActivityVerbClusterCloned = "cluster cloned"
ActivityVerbClusterDeleted = "cluster deleted"
ActivityVerbClusterUpdated = "cluster updated"
ActivityVerbClusterPortOverride = "cluster connection port overriden"
ActivityVerbMultipleClusterPortOverride = "multiple cluster ports overriden"
ActivityVerbCloudAdded = "cloud added"
ActivityVerbCloudCloned = "cloud cloned"
ActivityVerbCloudDeleted = "cloud deleted"
ActivityVerbCloudUpdated = "cloud updated"
ActivityVerbWebsiteAdded = "website added"
ActivityVerbWebsiteCloned = "website cloned"
ActivityVerbWebsiteDeleted = "website deleted"
ActivityVerbWebsiteUpdated = "website updated"
ActivityVerbInstallationCreated = "installation created"
ActivityVerbRelayInstallationCreated = "installation created for relay"
ActivityVerbInstallationApproved = "installation approved"
ActivityVerbInstallationRevoked = "installation revoked"
ActivityVerbRelayCreated = "relay created"
ActivityVerbRelayUpdatedName = "relay name updated"
ActivityVerbRelayDeleted = "relay deleted"
ActivityVerbOrgPublicKeyUpdated = "public key updated"
ActivityVerbOrgDiscardReplaysUpdated = "discard replays updated"
ActivityVerbOrgEnforcePortOverridesUpdated = "port override enforcement updated"
ActivityVerbOrgServiceAutoConnectUpdated = "service account auto-connect updated"
ActivityVerbOrgSelfRegistrationActivated = "self-registration activated"
ActivityVerbOrgSelfRegistrationDeactivated = "self-registration deactivated"
ActivityVerbOrgNameUpdated = "organization name updated"
ActivityVerbOrgSettingUpdated = "organization setting updated"
ActivityVerbOrgLogSyncSettingUpdated = "organization log stream setting updated"
ActivityVerbOrgWorkflowSettingUpdated = "organization workflow setting updated"
ActivityVerbOrgCreated = "organization created"
ActivityVerbOrgSCIMProvisioningUpdated = "SCIM provider set"
ActivityVerbOrgSCIMProvisioningDeleted = "SCIM provider deleted"
ActivityVerbOrgCustomProvisioningUpdated = "Provisioning provider set"
ActivityVerbOrgCustomProvisioningDeleted = "Provisioning provider deleted"
ActivityVerbChildOrgAdminInvited = "child organization admin invited"
ActivityVerbServiceAccountRekeyed = "service account rekeyed"
ActivityVerbSCIMTokenAdded = "SCIM token created"
ActivityVerbSCIMTokenDeleted = "SCIM token deleted"
ActivityVerbSCIMTokenRekeyed = "SCIM token rekeyed"
ActivityVerbAPIKeyDeleted = "API key deleted"
ActivityVerbOrgSSHCertificateAuthorityRotated = "organization SSH certificate authority rotated"
ActivityVerbOrgSSHAllowPortForwarding = "allowed SSH port forwarding"
ActivityVerbOrgSSHDisallowPortForwarding = "disallowed SSH port forwarding"
ActivityVerbOrgAddChild = "add child organization"
ActivityVerbOrgRemoveChild = "remove child organization"
ActivityVerbOrgExtendTrial = "trial extended"
ActivityVerbSecretStoreAdded = "secret store added"
ActivityVerbSecretStoreUpdated = "secret store updated"
ActivityVerbSecretStoreDeleted = "secret store deleted"
ActivityVerbSecretEngineAdded = "secret engine added"
ActivityVerbSecretEngineUpdated = "secret engine updated"
ActivityVerbSecretEngineDeleted = "secret engine deleted"
ActivityVerbRemoteIdentityGroupCreated = "remote identity group created"
ActivityVerbRemoteIdentityGroupUpdated = "remote identity group updated"
ActivityVerbRemoteIdentityGroupDeleted = "remote identity group deleted"
ActivityVerbIdentitySetCreated = "identity set created"
ActivityVerbIdentitySetUpdated = "identity set updated"
ActivityVerbIdentitySetDeleted = "identity set deleted"
ActivityVerbIdentitySetProvisioningEnabled = "identity set provisioning enabled"
ActivityVerbIdentitySetProvisioningDisabled = "identity set provisioning disabled"
ActivityVerbRemoteIdentityCreated = "remote identity created"
ActivityVerbRemoteIdentityUpdated = "remote identity updated"
ActivityVerbRemoteIdentityDeleted = "remote identity deleted"
ActivityVerbIdentityAliasCreated = "identity alias created"
ActivityVerbIdentityAliasUpdated = "identity alias updated"
ActivityVerbIdentityAliasDeleted = "identity alias deleted"
ActivityVerbIdentityAliasProvisioningEnabled = "identity alias provisioning enabled"
ActivityVerbIdentityAliasProvisioningDisabled = "identity alias provisioning disabled"
ActivityVerbAccessRequestedToResource = "access requested to resource"
ActivityVerbAccessRequestToResourceApprovalAdded = "access request to resource approval added"
ActivityVerbAccessRequestToResourceCanceled = "access request to resource canceled"
ActivityVerbAccessRequestToResourceDenied = "access request to resource denied"
ActivityVerbAccessRequestToResourceTimedOut = "access request to resource timed out"
ActivityVerbAccessRequestToResourceGranted = "access request to resource granted"
ActivityVerbAccessRequestToResourceGrantedAutomatically = "access request to resource granted automatically"
ActivityVerbAccessRequestToResourceApprovedViaServiceNow = "access request to resource approved via ServiceNow"
ActivityVerbWorkflowDeleted = "workflow deleted"
ActivityVerbWorkflowAdded = "workflow added"
ActivityVerbDeprecatedWorkflowResourceAssigned = "resource assigned to workflow"
ActivityVerbDeprecatedWorkflowResourceUnassigned = "resource unassigned from workflow"
ActivityVerbDeprecatedWorkflowResourceMultipleAssigned = "multiple resources assigned to workflow"
ActivityVerbDeprecatedWorkflowResourceMultipleUnassigned = "multiple resources unassigned from workflow"
ActivityVerbDeprecatedWorkflowApproversUpdated = "workflow approvers updated"
ActivityVerbDeprecatedWorkflowAutoGrantUpdated = "workflow auto grant updated"
ActivityVerbDeprecatedWorkflowApprovalCriteriaUpdated = "workflow approval criteria updated"
ActivityVerbWorkflowRolesUpdated = "workflow roles updated"
ActivityVerbWorkflowNameUpdated = "workflow name updated"
ActivityVerbWorkflowDescriptionUpdated = "workflow description updated"
ActivityVerbWorkflowRequiresReasonUpdated = "workflow requires reason updated"
ActivityVerbWorkflowAccessRulesUpdated = "workflow access rules updated"
ActivityVerbWorkflowAccessRulesDeleted = "workflow access rules deleted"
ActivityVerbWorkflowAccessRulesCreated = "workflow access rules created"
ActivityVerbWorkflowEnabled = "workflow enabled"
ActivityVerbWorkflowDisabled = "workflow disabled"
ActivityVerbApprovalFlowAdded = "approval workflow added"
ActivityVerbApprovalFlowDeleted = "approval workflow deleted"
ActivityVerbApprovalFlowUpdated = "approval workflow updated"
ActivityVerbApprovalFlowStepAdded = "approval workflow step added"
ActivityVerbApprovalFlowStepDeleted = "approval workflow step deleted"
ActivityVerbApprovalFlowStepUpdated = "approval workflow step updated"
ActivityVerbApprovalFlowApproverAdded = "approval workflow approver added"
ActivityVerbApprovalFlowApproverDeleted = "approval workflow approver deleted"
ActivityVerbOrgVNMSubnetUpdated = "organization VNM subnet updated"
ActivityVerbOrgVNMResourcesAllocated = "organization resources allocated within VNM subnet"
ActivityVerbDeprecatedOrgActivateDeviceApproval = "activate device approval"
ActivityVerbDeprecatedOrgDeactivateDeviceApproval = "deactivate device approval"
ActivityVerbEmulationMigrationCompleted = "emulation migration completed"
ActivityVerbAccessOverhaulMigrationCompleted = "access overhaul migration completed"
ActivityVerbActivatedSSHPortForwardingAllServer = "enabled SSH port forwarding on all servers"
ActivityVerbTOTPEnrollmentAdded = "user enrolled a totp device"
ActivityVerbTOTPEnrollmentDeleted = "user reset their totp enrollment"
ActivityVerbSuspendedUserEnrollAttemptFromTheUI = "attempt to enroll by a suspended user from the Admin UI"
ActivityVerbResourceLocked = "user locked a resource"
ActivityVerbResourceUnlocked = "user unlocked a resource"
ActivityVerbResourceForceUnlocked = "admin force-unlocked a resource"
ActivityVerbConcurrentAuthenticationRevokedPerOrgSetting = "concurrent authentications revoked per organization settings"
ActivityVerbOrgIntegrationInstalled = "org integration installed"
ActivityVerbUserIntegrationAuthorized = "user authorized integration"
ActivityVerbOrgIntegrationUninstalled = "org integration uninstalled"
ActivityVerbUserIntegrationDeauthorized = "user deauthorized integration"
ActivityVerbServiceNowTokenAdded = "ServiceNow token created"
ActivityVerbServiceNowTokenDeleted = "ServiceNow token deleted"
ActivityVerbManagedSecretCreated = "managed secret created"
ActivityVerbManagedSecretUpdated = "managed secret updated"
ActivityVerbManagedSecretExpirationTimeUpdated = "managed secret expiration time updated"
ActivityVerbManagedSecretDeleted = "managed secret deleted"
)
// Permissions, all permissions that may be granted to an account.
const (
PermissionRelayList = "relay:list"
PermissionRelayCreate = "relay:create"
PermissionDatasourceList = "datasource:list"
PermissionDatasourceCreate = "datasource:create"
PermissionDatasourceHealthcheck = "datasource:healthcheck"
PermissionDeprecatedDatasourceGrant = "datasource:grant"
PermissionDatasourceDelete = "datasource:delete"
PermissionDatasourceUpdate = "datasource:update"
PermissionResourceLockDelete = "resourcelock:delete"
PermissionResourceLockList = "resourcelock:list"
PermissionSecretEngineCreate = "secretengine:create"
PermissionSecretEngineList = "secretengine:list"
PermissionSecretEngineDelete = "secretengine:delete"
PermissionSecretEngineUpdate = "secretengine:update"
PermissionSecretEngineStatus = "secretengine:status"
PermissionSecretStoreCreate = "secretstore:create"
PermissionSecretStoreList = "secretstore:list"
PermissionSecretStoreDelete = "secretstore:delete"
PermissionSecretStoreUpdate = "secretstore:update"
PermissionSecretStoreStatus = "secretstore:status"
PermissionRemoteIdentityGroupWrite = "remoteidentitygroup:write"
PermissionRemoteIdentityGroupRead = "remoteidentitygroup:read"
PermissionRemoteIdentityWrite = "remoteidentity:write"
PermissionRemoteIdentityRead = "remoteidentity:read"
PermissionUserCreate = "user:create"
PermissionUserList = "user:list"
PermissionUserUpdateAdmin = "user:update_admin"
PermissionUserCreateAdminToken = "user:create_admin_token"
PermissionUserCreateServiceAccount = "user:create_service_account"
PermissionUserSetPermissionLevel = "user:set_strong_role"
PermissionUserUpdate = "user:update"
PermissionUserInitiatePasswordReset = "user:initiate_password_reset"
PermissionUserDelete = "user:delete"
PermissionUserAssign = "user:assign"
PermissionUserSuspend = "user:suspend"
PermissionUserSetPassword = "user:set_password"
PermissionDemoProvisioningRequestCreate = "demoprovisioningrequest:create"
PermissionDemoProvisioningRequestList = "demoprovisioningrequest:list"
PermissionRoleList = "role:list"
PermissionRoleCreate = "role:create"
PermissionRoleDelete = "role:delete"
PermissionRoleUpdate = "role:update"
PermissionOrgViewSettings = "organization:view_settings"
PermissionOrgEditSettings = "organization:edit_settings"
PermissionOrgDeploymentDoctor = "organization:deployment_doctor"
PermissionOrgListChildren = "organization:list_children"
PermissionOrgCreateChildOrganization = "organization:create_child_organization"
PermissionOrgAuditUsers = "audit:users"
PermissionOrgAuditRoles = "audit:roles"
PermissionOrgAuditDatasources = "audit:datasources"
PermissionOrgAuditNodes = "audit:nodes"
PermissionOrgAuditPermissions = "audit:permissions"
PermissionOrgAuditQueries = "audit:queries"
PermissionOrgAuditActivities = "audit:activities"
PermissionOrgAuditSSH = "audit:ssh"
PermissionOrgAuditAccountGrants = "audit:accountgrants"
PermissionOrgAuditOrg = "audit:organization"
PermissionOrgAuditRemoteIdentities = "audit:remoteidentities"
PermissionOrgAuditRemoteIdentityGroups = "audit:remoteidentitygroups"
PermissionOrgAuditSecretEngines = "audit:secretengines"
PermissionOrgAuditSecretStores = "audit:secretstores"
PermissionOrgAuditWorkflows = "audit:workflows"
PermissionOrgAuditApprovalFlows = "audit:approvalflows"
PermissionOrgAuditAccessRequests = "audit:accessrequests"
PermissionOrgAuditPolicies = "audit:policies"
PermissionWorkflowList = "workflow:list"
PermissionWorkflowEdit = "workflow:edit"
PermissionAccessRequestEdit = "accessrequest:edit"
PermissionAccessRequestList = "accessrequest:list"
PermissionAccessRequestRequester = "accessrequest:requester"
PermissionApprovalFlowEdit = "approvalflow:edit"
PermissionApprovalFlowList = "approvalflow:list"
PermissionGlobalRDPRender = "rdp:render"
PermissionGlobalQueryBucketTracker = "query:bucket_tracker"
PermissionGlobalAssetsGetLatestVersionCommitHash = "assets:get_latest_version_commit_hash"
PermissionGlobalSDMOSService = "sdmos:service"
PermissionGlobalSDMOSDeployment = "sdmos:deployment"
PermissionGlobalSDMOSRelease = "sdmos:release"
PermissionGlobalDemoProvisioner = "demo:provision"
PermissionInstallationBless = "installation:bless"
PermissionInstallationCreate = "installation:create"
PermissionInstallationRevoke = "installation:revoke"
PermissionTestingOrgCreate = "testing:organization:create"
PermissionTestingOrgDelete = "testing:organization:delete"
PermissionTestingNoPermissions = "testing:noperms"
PermissionTestingFetchQueries = "testing:queries:get"
PermissionGrantRead = "grant:read"
PermissionGrantWrite = "grant:write"
PermissionReportRead = "report:read"
PermissionBillingRead = "billing:read"
PermissionCredentialRead = "credential:read"
PermissionCredentialWrite = "credential:write"
PermissionManagedSecretCreate = "managedsecret:create"
PermissionManagedSecretList = "managedsecret:list"
PermissionManagedSecretDelete = "managedsecret:delete"
PermissionManagedSecretUpdate = "managedsecret:update"
PermissionManagedSecretRead = "managedsecret:read"
)
// Query Categories, all the categories of resource against which queries are logged.
const (
QueryCategoryKubernetes = "k8s"
QueryCategoryDatasources = "queries"
QueryCategoryRDP = "rdp"
QueryCategorySSH = "ssh"
QueryCategoryWeb = "web"
QueryCategoryCloud = "cloud"
QueryCategoryAll = "all"
)
// LogRemoteEncoder defines the encryption encoder for the queries are stored in the API.
const (
LogRemoteEncoderStrongDM = "strongdm"
LogRemoteEncoderPubKey = "pubkey"
LogRemoteEncoderHash = "hash"
)
// LogLocalStorage defines how queries are stored locally.
const (
LogLocalStorageStdout = "stdout"
LogLocalStorageFile = "file"
LogLocalStorageTCP = "tcp"
LogLocalStorageSocket = "socket"
LogLocalStorageSyslog = "syslog"
LogLocalStorageNone = "none"
)
// LogLocalEncoder defines the encryption encoder for queries are stored locally in the relay.
const (
LogLocalEncoderPlaintext = "plaintext"
LogLocalEncoderPubKey = "pubkey"
)
// LogLocalFormat defines the format the queries are stored locally in the relay.
const (
LogLocalFormatCSV = "csv"
LogLocalFormatJSON = "json"
)
// OrgKind defines the types of organizations that may exist.
const (
OrgKindSolo = "solo"
OrgKindRoot = "root"
OrgKindChild = "child"
)
// KeyType defines the supported SSH key types
const (
SSHKeyTypeRSA_2048 = "rsa-2048"
SSHKeyTypeRSA_4096 = "rsa-4096"
SSHKeyTypeECDSA_256 = "ecdsa-256"
SSHKeyTypeECDSA_384 = "ecdsa-384"
SSHKeyTypeECDSA_521 = "ecdsa-521"
SSHKeyTypeED25519 = "ed25519"
)
// CaptureType designates what type of SSH/RDP/K8s capture we have.
const (
CaptureTypeShell = "shell"
CaptureTypeScpUpload = "scp-upload"
CaptureTypeScpDownload = "scp-download"
CaptureTypeCommand = "command"
CaptureTypeRDPBasic = "rdp-basic"
CaptureTypeRDPEnhanced = "rdp-enhanced"
CaptureTypeK8sExec = "k8s-exec"
CaptureTypeK8sExecTTY = "k8s-execTTY"
CaptureTypeK8sPortForward = "k8s-portForward"
CaptureTypeK8sCPUpload = "k8s-cp-upload"
CaptureTypeK8sCPDownload = "k8s-cp-download"
CaptureTypeK8sDescribe = "k8s-describe"
CaptureTypeK8sGet = "k8s-get"
CaptureTypeK8sDelete = "k8s-delete"
CaptureTypeK8sGeneric = "k8s-generic"
CaptureTypeK8sApply = "k8s-apply"
CaptureTypeSSHPortForward = "ssh-portForward"
)
// Providers responsible for device trust enforcement
const (
DeviceTrustProviderNone = ""
DeviceTrustProviderSentinelOne = "sentinelone"
DeviceTrustProviderCrowdStrike = "crowdstrike"
DeviceTrustProviderMicrosoftDefender = "microsoftdefender"
DeviceTrustProviderDuo = "duo"
)
// APIHost defines the API host for various control planes.
const (
APIHostUS = "api.strongdm.com:443"
APIHostUK = "api.uk.strongdm.com:443"
)