strongdm 3.11.0 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 05d015d4f19aaf6ab38e9215d9f4012099b40c9749b58051ee3c907833eaeef5
4
- data.tar.gz: a750ed1f27766b71aa28f38eb781fe9d7d8af82897443d1b04c0d9f3a2e64891
3
+ metadata.gz: 6ac7ec46e57a5d58bb862137fe1b7953392592bc5fc354c1aa05ed2482109e5d
4
+ data.tar.gz: 88179b6812bb571f4238f6a3c82f53900285e0fc73a6ed86ef3bd8c15570fa7c
5
5
  SHA512:
6
- metadata.gz: 82d005454840630dfc91a4e5f890f92a1471285fae855a263f7d2974252a10f8ebb11ff609126ce7832c65cbf93d3c32815ace8dd07a8eed29805001f27d0fa3
7
- data.tar.gz: 83cf7a434781fe5e190ecd30bad6b302a9942123f4d1d799f168fa018beff24110bff89d061ec8813d81326e5b0e096c3bb5b1d47ead74dc73a0c124d2bee925
6
+ metadata.gz: 11c31fd62f7cca001e4381ff38212effe9cbe8c866880bd76eb28dbd112f7a624b0e4a56569311ab1ec9bef1a5fc6c7170b110ee60738ca72ff64b04210e3611
7
+ data.tar.gz: 8d4718bd81ee4183c431da710335aac8748a122128778cc9f25f3dd2a9f96edb352ca46d1e039d052d340587fca66bfa66806f914a053643538dde2d2a8462ad
data/.git/ORIG_HEAD CHANGED
@@ -1 +1 @@
1
- fb276eee8a0b2cc1415c25962410309b645373ed
1
+ f880c51210aa33186d71d9b463ddbd587ef3e4fd
data/.git/index CHANGED
Binary file
data/.git/logs/HEAD CHANGED
@@ -1,3 +1,3 @@
1
- 0000000000000000000000000000000000000000 fb276eee8a0b2cc1415c25962410309b645373ed root <root@8ff708ee8c17.(none)> 1681499499 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
2
- fb276eee8a0b2cc1415c25962410309b645373ed fb276eee8a0b2cc1415c25962410309b645373ed root <root@8ff708ee8c17.(none)> 1681499499 +0000 checkout: moving from master to master
3
- fb276eee8a0b2cc1415c25962410309b645373ed a77792a22449d0029bebb3f66fc23f63e54a8e90 root <root@8ff708ee8c17.(none)> 1681499499 +0000 merge origin/development: Fast-forward
1
+ 0000000000000000000000000000000000000000 f880c51210aa33186d71d9b463ddbd587ef3e4fd root <root@9a7806f82947.(none)> 1682619701 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
2
+ f880c51210aa33186d71d9b463ddbd587ef3e4fd f880c51210aa33186d71d9b463ddbd587ef3e4fd root <root@9a7806f82947.(none)> 1682619701 +0000 checkout: moving from master to master
3
+ f880c51210aa33186d71d9b463ddbd587ef3e4fd 9010771bf3315cb08f6421f7fd8290741d029f79 root <root@9a7806f82947.(none)> 1682619701 +0000 merge origin/development: Fast-forward
@@ -1,2 +1,2 @@
1
- 0000000000000000000000000000000000000000 fb276eee8a0b2cc1415c25962410309b645373ed root <root@8ff708ee8c17.(none)> 1681499499 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
2
- fb276eee8a0b2cc1415c25962410309b645373ed a77792a22449d0029bebb3f66fc23f63e54a8e90 root <root@8ff708ee8c17.(none)> 1681499499 +0000 merge origin/development: Fast-forward
1
+ 0000000000000000000000000000000000000000 f880c51210aa33186d71d9b463ddbd587ef3e4fd root <root@9a7806f82947.(none)> 1682619701 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
2
+ f880c51210aa33186d71d9b463ddbd587ef3e4fd 9010771bf3315cb08f6421f7fd8290741d029f79 root <root@9a7806f82947.(none)> 1682619701 +0000 merge origin/development: Fast-forward
@@ -1 +1 @@
1
- 0000000000000000000000000000000000000000 fb276eee8a0b2cc1415c25962410309b645373ed root <root@8ff708ee8c17.(none)> 1681499499 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
1
+ 0000000000000000000000000000000000000000 f880c51210aa33186d71d9b463ddbd587ef3e4fd root <root@9a7806f82947.(none)> 1682619701 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
data/.git/packed-refs CHANGED
@@ -1,6 +1,6 @@
1
1
  # pack-refs with: peeled fully-peeled sorted
2
- a77792a22449d0029bebb3f66fc23f63e54a8e90 refs/remotes/origin/development
3
- fb276eee8a0b2cc1415c25962410309b645373ed refs/remotes/origin/master
2
+ 9010771bf3315cb08f6421f7fd8290741d029f79 refs/remotes/origin/development
3
+ f880c51210aa33186d71d9b463ddbd587ef3e4fd refs/remotes/origin/master
4
4
  2e4fe8087177ddea9b3991ca499f758384839c89 refs/tags/untagged-84fd83a4484c785cce63
5
5
  04f604866214fab4d5663b5171a3e596331577bd refs/tags/v0.9.4
6
6
  6f9a7b75b345c65fb554884907b7060680c807b7 refs/tags/v0.9.5
@@ -43,6 +43,8 @@ be1460e0ed022801549a84a12897334b7064f1a7 refs/tags/v2.6.3
43
43
  ebc33c297839fbbcfa70f855e599630c0a6c880c refs/tags/v2.6.4
44
44
  0fbd2ab317197f8aff986524b40fb96d7aa05547 refs/tags/v3.0.0
45
45
  fb276eee8a0b2cc1415c25962410309b645373ed refs/tags/v3.10.0
46
+ a77792a22449d0029bebb3f66fc23f63e54a8e90 refs/tags/v3.11.0
47
+ f880c51210aa33186d71d9b463ddbd587ef3e4fd refs/tags/v3.12.0
46
48
  40d185ce8d4f4375411706886f6fbbaa5493bef6 refs/tags/v3.2.0
47
49
  dd6a8a74ad5675831f42e3a820208e96f7361f80 refs/tags/v3.2.1
48
50
  09ee1a3be370a7b5e21709a7857d0f189f23da8b refs/tags/v3.2.2
@@ -1 +1 @@
1
- a77792a22449d0029bebb3f66fc23f63e54a8e90
1
+ 9010771bf3315cb08f6421f7fd8290741d029f79
data/lib/constants.rb CHANGED
@@ -209,6 +209,7 @@ module SDM
209
209
  ORG_SELF_REGISTRATION_DEACTIVATED = "self-registration deactivated"
210
210
  ORG_NAME_UPDATED = "organization name updated"
211
211
  ORG_SETTING_UPDATED = "organization setting updated"
212
+ ORG_LOG_SYNC_SETTING_UPDATED = "organization log sync setting updated"
212
213
  ORG_CREATED = "organization created"
213
214
  ORG_SCIM_PROVISIONING_UPDATED = "SCIM provider set"
214
215
  ORG_SCIM_PROVISIONING_DELETED = "SCIM provider deleted"
@@ -246,6 +247,7 @@ module SDM
246
247
  WORKFLOW_RESOURCE_UNASSIGNED = "resource unassigned from workflow"
247
248
  WORKFLOW_RESOURCE_MULTIPLE_ASSIGNED = "multiple resources assigned to workflow"
248
249
  WORKFLOW_RESOURCE_MULTIPLE_UNASSIGNED = "multiple resources unassigned from workflow"
250
+ WORKFLOW_ROLES_UPDATED = "workflow roles updated"
249
251
  WORKFLOW_NOTIFICATION_OPTION_ADDED = "workflow notification type added"
250
252
  WORKFLOW_NOTIFICATION_OPTION_REMOVED = "workflow notification type removed"
251
253
  WORKFLOW_NOTIFICATION_OPTIONS_UPDATED = "workflow notification settings updated"
@@ -394,4 +396,25 @@ module SDM
394
396
  ECDSA_521 = "ecdsa-521"
395
397
  ED_25519 = "ed25519"
396
398
  end
399
+
400
+ # CaptureType designates what type of SSH/RDP/K8s capture we have.
401
+ module CaptureType
402
+ SHELL = "shell"
403
+ SCP_UPLOAD = "scp-upload"
404
+ SCP_DOWNLOAD = "scp-download"
405
+ COMMAND = "command"
406
+ RDP_BASIC = "rdp-basic"
407
+ RDP_ENHANCED = "rdp-enhanced"
408
+ K_8_S_EXEC = "k8s-exec"
409
+ K_8_S_EXEC_TTY = "k8s-execTTY"
410
+ K_8_S_PORT_FORWARD = "k8s-portForward"
411
+ K_8_SCP_UPLOAD = "k8s-cp-upload"
412
+ K_8_SCP_DOWNLOAD = "k8s-cp-download"
413
+ K_8_S_DESCRIBE = "k8s-describe"
414
+ K_8_S_GET = "k8s-get"
415
+ K_8_S_DELETE = "k8s-delete"
416
+ K_8_S_GENERIC = "k8s-generic"
417
+ K_8_S_APPLY = "k8s-apply"
418
+ SSH_PORT_FORWARD = "ssh-portForward"
419
+ end
397
420
  end
@@ -195,8 +195,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
195
195
  optional :secret_store_id, :string, 32772
196
196
  optional :egress_filter, :string, 32773
197
197
  optional :bind_interface, :string, 32774
198
+ optional :subdomain, :string, 32775
198
199
  optional :access_key, :string, 1
199
200
  optional :healthcheck_region, :string, 4
201
+ optional :port_override, :int32, 10
200
202
  optional :role_arn, :string, 5
201
203
  optional :role_external_id, :string, 6
202
204
  optional :secret_access_key, :string, 2
@@ -407,8 +409,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
407
409
  optional :secret_store_id, :string, 32772
408
410
  optional :egress_filter, :string, 32773
409
411
  optional :bind_interface, :string, 32774
412
+ optional :subdomain, :string, 32775
410
413
  optional :app_id, :string, 1
411
414
  optional :password, :string, 3
415
+ optional :port_override, :int32, 8
412
416
  optional :tenant_id, :string, 2
413
417
  end
414
418
  add_message "v1.AzureCertificate" do
@@ -419,8 +423,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
419
423
  optional :secret_store_id, :string, 32772
420
424
  optional :egress_filter, :string, 32773
421
425
  optional :bind_interface, :string, 32774
426
+ optional :subdomain, :string, 32775
422
427
  optional :app_id, :string, 1
423
428
  optional :client_certificate, :string, 3
429
+ optional :port_override, :int32, 10
424
430
  optional :tenant_id, :string, 2
425
431
  end
426
432
  add_message "v1.AzureMysql" do
@@ -674,7 +680,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
674
680
  optional :secret_store_id, :string, 32772
675
681
  optional :egress_filter, :string, 32773
676
682
  optional :bind_interface, :string, 32774
683
+ optional :subdomain, :string, 32775
677
684
  optional :keyfile, :string, 1
685
+ optional :port_override, :int32, 11
678
686
  optional :scopes, :string, 2
679
687
  end
680
688
  add_message "v1.GoogleGKE" do
data/lib/grpc/plumbing.rb CHANGED
@@ -463,10 +463,12 @@ module SDM
463
463
  porcelain.healthy = (plumbing.healthy)
464
464
  porcelain.id = (plumbing.id)
465
465
  porcelain.name = (plumbing.name)
466
+ porcelain.port_override = (plumbing.port_override)
466
467
  porcelain.role_arn = (plumbing.role_arn)
467
468
  porcelain.role_external_id = (plumbing.role_external_id)
468
469
  porcelain.secret_access_key = (plumbing.secret_access_key)
469
470
  porcelain.secret_store_id = (plumbing.secret_store_id)
471
+ porcelain.subdomain = (plumbing.subdomain)
470
472
  porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
471
473
  porcelain
472
474
  end
@@ -483,10 +485,12 @@ module SDM
483
485
  plumbing.healthy = (porcelain.healthy)
484
486
  plumbing.id = (porcelain.id)
485
487
  plumbing.name = (porcelain.name)
488
+ plumbing.port_override = (porcelain.port_override)
486
489
  plumbing.role_arn = (porcelain.role_arn)
487
490
  plumbing.role_external_id = (porcelain.role_external_id)
488
491
  plumbing.secret_access_key = (porcelain.secret_access_key)
489
492
  plumbing.secret_store_id = (porcelain.secret_store_id)
493
+ plumbing.subdomain = (porcelain.subdomain)
490
494
  plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
491
495
  plumbing
492
496
  end
@@ -2176,7 +2180,9 @@ module SDM
2176
2180
  porcelain.id = (plumbing.id)
2177
2181
  porcelain.name = (plumbing.name)
2178
2182
  porcelain.password = (plumbing.password)
2183
+ porcelain.port_override = (plumbing.port_override)
2179
2184
  porcelain.secret_store_id = (plumbing.secret_store_id)
2185
+ porcelain.subdomain = (plumbing.subdomain)
2180
2186
  porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
2181
2187
  porcelain.tenant_id = (plumbing.tenant_id)
2182
2188
  porcelain
@@ -2194,7 +2200,9 @@ module SDM
2194
2200
  plumbing.id = (porcelain.id)
2195
2201
  plumbing.name = (porcelain.name)
2196
2202
  plumbing.password = (porcelain.password)
2203
+ plumbing.port_override = (porcelain.port_override)
2197
2204
  plumbing.secret_store_id = (porcelain.secret_store_id)
2205
+ plumbing.subdomain = (porcelain.subdomain)
2198
2206
  plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
2199
2207
  plumbing.tenant_id = (porcelain.tenant_id)
2200
2208
  plumbing
@@ -2228,7 +2236,9 @@ module SDM
2228
2236
  porcelain.healthy = (plumbing.healthy)
2229
2237
  porcelain.id = (plumbing.id)
2230
2238
  porcelain.name = (plumbing.name)
2239
+ porcelain.port_override = (plumbing.port_override)
2231
2240
  porcelain.secret_store_id = (plumbing.secret_store_id)
2241
+ porcelain.subdomain = (plumbing.subdomain)
2232
2242
  porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
2233
2243
  porcelain.tenant_id = (plumbing.tenant_id)
2234
2244
  porcelain
@@ -2246,7 +2256,9 @@ module SDM
2246
2256
  plumbing.healthy = (porcelain.healthy)
2247
2257
  plumbing.id = (porcelain.id)
2248
2258
  plumbing.name = (porcelain.name)
2259
+ plumbing.port_override = (porcelain.port_override)
2249
2260
  plumbing.secret_store_id = (porcelain.secret_store_id)
2261
+ plumbing.subdomain = (porcelain.subdomain)
2250
2262
  plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
2251
2263
  plumbing.tenant_id = (porcelain.tenant_id)
2252
2264
  plumbing
@@ -3527,8 +3539,10 @@ module SDM
3527
3539
  porcelain.id = (plumbing.id)
3528
3540
  porcelain.keyfile = (plumbing.keyfile)
3529
3541
  porcelain.name = (plumbing.name)
3542
+ porcelain.port_override = (plumbing.port_override)
3530
3543
  porcelain.scopes = (plumbing.scopes)
3531
3544
  porcelain.secret_store_id = (plumbing.secret_store_id)
3545
+ porcelain.subdomain = (plumbing.subdomain)
3532
3546
  porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
3533
3547
  porcelain
3534
3548
  end
@@ -3544,8 +3558,10 @@ module SDM
3544
3558
  plumbing.id = (porcelain.id)
3545
3559
  plumbing.keyfile = (porcelain.keyfile)
3546
3560
  plumbing.name = (porcelain.name)
3561
+ plumbing.port_override = (porcelain.port_override)
3547
3562
  plumbing.scopes = (porcelain.scopes)
3548
3563
  plumbing.secret_store_id = (porcelain.secret_store_id)
3564
+ plumbing.subdomain = (porcelain.subdomain)
3549
3565
  plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
3550
3566
  plumbing
3551
3567
  end
@@ -5713,6 +5729,7 @@ module SDM
5713
5729
  porcelain.account_id = (plumbing.account_id)
5714
5730
  porcelain.account_last_name = (plumbing.account_last_name)
5715
5731
  porcelain.account_tags = convert_tags_to_porcelain(plumbing.account_tags)
5732
+ porcelain.capture = convert_query_capture_to_porcelain(plumbing.capture)
5716
5733
  porcelain.completed_at = convert_timestamp_to_porcelain(plumbing.completed_at)
5717
5734
  porcelain.duration = convert_duration_to_porcelain(plumbing.duration)
5718
5735
  porcelain.egress_node_id = (plumbing.egress_node_id)
@@ -5743,6 +5760,7 @@ module SDM
5743
5760
  plumbing.account_id = (porcelain.account_id)
5744
5761
  plumbing.account_last_name = (porcelain.account_last_name)
5745
5762
  plumbing.account_tags = convert_tags_to_plumbing(porcelain.account_tags)
5763
+ plumbing.capture = convert_query_capture_to_plumbing(porcelain.capture)
5746
5764
  plumbing.completed_at = convert_timestamp_to_plumbing(porcelain.completed_at)
5747
5765
  plumbing.duration = convert_duration_to_plumbing(porcelain.duration)
5748
5766
  plumbing.egress_node_id = (porcelain.egress_node_id)
@@ -5779,6 +5797,64 @@ module SDM
5779
5797
  end
5780
5798
  items
5781
5799
  end
5800
+ def self.convert_query_capture_to_porcelain(plumbing)
5801
+ if plumbing == nil
5802
+ return nil
5803
+ end
5804
+ porcelain = QueryCapture.new()
5805
+ porcelain.client_command = (plumbing.client_command)
5806
+ porcelain.command = (plumbing.command)
5807
+ porcelain.container = (plumbing.container)
5808
+ porcelain.env = (plumbing.env)
5809
+ porcelain.file_name = (plumbing.file_name)
5810
+ porcelain.file_size = (plumbing.file_size)
5811
+ porcelain.height = (plumbing.height)
5812
+ porcelain.pod = (plumbing.pod)
5813
+ porcelain.request_body = (plumbing.request_body)
5814
+ porcelain.request_method = (plumbing.request_method)
5815
+ porcelain.request_uri = (plumbing.request_uri)
5816
+ porcelain.type = (plumbing.type)
5817
+ porcelain.width = (plumbing.width)
5818
+ porcelain
5819
+ end
5820
+
5821
+ def self.convert_query_capture_to_plumbing(porcelain)
5822
+ if porcelain == nil
5823
+ return nil
5824
+ end
5825
+ plumbing = V1::QueryCapture.new()
5826
+ plumbing.client_command = (porcelain.client_command)
5827
+ plumbing.command = (porcelain.command)
5828
+ plumbing.container = (porcelain.container)
5829
+ plumbing.env = (porcelain.env)
5830
+ plumbing.file_name = (porcelain.file_name)
5831
+ plumbing.file_size = (porcelain.file_size)
5832
+ plumbing.height = (porcelain.height)
5833
+ plumbing.pod = (porcelain.pod)
5834
+ plumbing.request_body = (porcelain.request_body)
5835
+ plumbing.request_method = (porcelain.request_method)
5836
+ plumbing.request_uri = (porcelain.request_uri)
5837
+ plumbing.type = (porcelain.type)
5838
+ plumbing.width = (porcelain.width)
5839
+ plumbing
5840
+ end
5841
+ def self.convert_repeated_query_capture_to_plumbing(porcelains)
5842
+ items = Array.new
5843
+ porcelains.each do |porcelain|
5844
+ plumbing = convert_query_capture_to_plumbing(porcelain)
5845
+ items.append(plumbing)
5846
+ end
5847
+ items
5848
+ end
5849
+
5850
+ def self.convert_repeated_query_capture_to_porcelain(plumbings)
5851
+ items = Array.new
5852
+ plumbings.each do |plumbing|
5853
+ porcelain = convert_query_capture_to_porcelain(plumbing)
5854
+ items.append(porcelain)
5855
+ end
5856
+ items
5857
+ end
5782
5858
  def self.convert_rdp_to_porcelain(plumbing)
5783
5859
  if plumbing == nil
5784
5860
  return nil
@@ -57,6 +57,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
57
57
  optional :account_tags, :message, 21, "v1.Tags"
58
58
  optional :query_key_id, :string, 22
59
59
  optional :completed_at, :message, 23, "google.protobuf.Timestamp"
60
+ optional :capture, :message, 24, "v1.QueryCapture"
61
+ end
62
+ add_message "v1.QueryCapture" do
63
+ optional :width, :int32, 1
64
+ optional :height, :int32, 2
65
+ optional :command, :string, 3
66
+ map :env, :string, :string, 4
67
+ optional :type, :string, 5
68
+ optional :file_name, :string, 6
69
+ optional :file_size, :int64, 7
70
+ optional :client_command, :string, 8
71
+ optional :pod, :string, 9
72
+ optional :container, :string, 10
73
+ optional :request_method, :string, 11
74
+ optional :request_uri, :string, 12
75
+ optional :request_body, :bytes, 13
60
76
  end
61
77
  end
62
78
  end
@@ -65,4 +81,5 @@ module V1
65
81
  QueryListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.QueryListRequest").msgclass
66
82
  QueryListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.QueryListResponse").msgclass
67
83
  Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Query").msgclass
84
+ QueryCapture = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.QueryCapture").msgclass
68
85
  end
@@ -402,6 +402,8 @@ module SDM
402
402
  # Unique human-readable name of the Resource.
403
403
  attr_accessor :name
404
404
 
405
+ attr_accessor :port_override
406
+
405
407
  attr_accessor :role_arn
406
408
 
407
409
  attr_accessor :role_external_id
@@ -409,6 +411,8 @@ module SDM
409
411
  attr_accessor :secret_access_key
410
412
  # ID of the secret store containing credentials for this resource, if any.
411
413
  attr_accessor :secret_store_id
414
+ # Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
415
+ attr_accessor :subdomain
412
416
  # Tags is a map of key, value pairs.
413
417
  attr_accessor :tags
414
418
 
@@ -420,10 +424,12 @@ module SDM
420
424
  healthy: nil,
421
425
  id: nil,
422
426
  name: nil,
427
+ port_override: nil,
423
428
  role_arn: nil,
424
429
  role_external_id: nil,
425
430
  secret_access_key: nil,
426
431
  secret_store_id: nil,
432
+ subdomain: nil,
427
433
  tags: nil
428
434
  )
429
435
  @access_key = access_key == nil ? "" : access_key
@@ -433,10 +439,12 @@ module SDM
433
439
  @healthy = healthy == nil ? false : healthy
434
440
  @id = id == nil ? "" : id
435
441
  @name = name == nil ? "" : name
442
+ @port_override = port_override == nil ? 0 : port_override
436
443
  @role_arn = role_arn == nil ? "" : role_arn
437
444
  @role_external_id = role_external_id == nil ? "" : role_external_id
438
445
  @secret_access_key = secret_access_key == nil ? "" : secret_access_key
439
446
  @secret_store_id = secret_store_id == nil ? "" : secret_store_id
447
+ @subdomain = subdomain == nil ? "" : subdomain
440
448
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
441
449
  end
442
450
 
@@ -2071,8 +2079,12 @@ module SDM
2071
2079
  attr_accessor :name
2072
2080
 
2073
2081
  attr_accessor :password
2082
+
2083
+ attr_accessor :port_override
2074
2084
  # ID of the secret store containing credentials for this resource, if any.
2075
2085
  attr_accessor :secret_store_id
2086
+ # Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
2087
+ attr_accessor :subdomain
2076
2088
  # Tags is a map of key, value pairs.
2077
2089
  attr_accessor :tags
2078
2090
 
@@ -2086,7 +2098,9 @@ module SDM
2086
2098
  id: nil,
2087
2099
  name: nil,
2088
2100
  password: nil,
2101
+ port_override: nil,
2089
2102
  secret_store_id: nil,
2103
+ subdomain: nil,
2090
2104
  tags: nil,
2091
2105
  tenant_id: nil
2092
2106
  )
@@ -2097,7 +2111,9 @@ module SDM
2097
2111
  @id = id == nil ? "" : id
2098
2112
  @name = name == nil ? "" : name
2099
2113
  @password = password == nil ? "" : password
2114
+ @port_override = port_override == nil ? 0 : port_override
2100
2115
  @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2116
+ @subdomain = subdomain == nil ? "" : subdomain
2101
2117
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2102
2118
  @tenant_id = tenant_id == nil ? "" : tenant_id
2103
2119
  end
@@ -2125,8 +2141,12 @@ module SDM
2125
2141
  attr_accessor :id
2126
2142
  # Unique human-readable name of the Resource.
2127
2143
  attr_accessor :name
2144
+
2145
+ attr_accessor :port_override
2128
2146
  # ID of the secret store containing credentials for this resource, if any.
2129
2147
  attr_accessor :secret_store_id
2148
+ # Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
2149
+ attr_accessor :subdomain
2130
2150
  # Tags is a map of key, value pairs.
2131
2151
  attr_accessor :tags
2132
2152
 
@@ -2140,7 +2160,9 @@ module SDM
2140
2160
  healthy: nil,
2141
2161
  id: nil,
2142
2162
  name: nil,
2163
+ port_override: nil,
2143
2164
  secret_store_id: nil,
2165
+ subdomain: nil,
2144
2166
  tags: nil,
2145
2167
  tenant_id: nil
2146
2168
  )
@@ -2151,7 +2173,9 @@ module SDM
2151
2173
  @healthy = healthy == nil ? false : healthy
2152
2174
  @id = id == nil ? "" : id
2153
2175
  @name = name == nil ? "" : name
2176
+ @port_override = port_override == nil ? 0 : port_override
2154
2177
  @secret_store_id = secret_store_id == nil ? "" : secret_store_id
2178
+ @subdomain = subdomain == nil ? "" : subdomain
2155
2179
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
2156
2180
  @tenant_id = tenant_id == nil ? "" : tenant_id
2157
2181
  end
@@ -3496,9 +3520,13 @@ module SDM
3496
3520
  # Unique human-readable name of the Resource.
3497
3521
  attr_accessor :name
3498
3522
 
3523
+ attr_accessor :port_override
3524
+
3499
3525
  attr_accessor :scopes
3500
3526
  # ID of the secret store containing credentials for this resource, if any.
3501
3527
  attr_accessor :secret_store_id
3528
+ # Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
3529
+ attr_accessor :subdomain
3502
3530
  # Tags is a map of key, value pairs.
3503
3531
  attr_accessor :tags
3504
3532
 
@@ -3509,8 +3537,10 @@ module SDM
3509
3537
  id: nil,
3510
3538
  keyfile: nil,
3511
3539
  name: nil,
3540
+ port_override: nil,
3512
3541
  scopes: nil,
3513
3542
  secret_store_id: nil,
3543
+ subdomain: nil,
3514
3544
  tags: nil
3515
3545
  )
3516
3546
  @bind_interface = bind_interface == nil ? "" : bind_interface
@@ -3519,8 +3549,10 @@ module SDM
3519
3549
  @id = id == nil ? "" : id
3520
3550
  @keyfile = keyfile == nil ? "" : keyfile
3521
3551
  @name = name == nil ? "" : name
3552
+ @port_override = port_override == nil ? 0 : port_override
3522
3553
  @scopes = scopes == nil ? "" : scopes
3523
3554
  @secret_store_id = secret_store_id == nil ? "" : secret_store_id
3555
+ @subdomain = subdomain == nil ? "" : subdomain
3524
3556
  @tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
3525
3557
  end
3526
3558
 
@@ -5944,6 +5976,9 @@ module SDM
5944
5976
  # The tags of the account accessed, at the time the query was executed. If the account
5945
5977
  # tags are later changed, that change will not be reflected via this field.
5946
5978
  attr_accessor :account_tags
5979
+ # For queries against SSH, Kubernetes, and RDP resources, this contains additional information
5980
+ # about the captured query.
5981
+ attr_accessor :capture
5947
5982
  # The time at which the Query was completed.
5948
5983
  # Empty if this record indicates the start of a long-running query.
5949
5984
  attr_accessor :completed_at
@@ -5956,6 +5991,7 @@ module SDM
5956
5991
  # Unique identifier of the Query.
5957
5992
  attr_accessor :id
5958
5993
  # The captured content of the Query.
5994
+ # For queries against SSH, Kubernetes, and RDP resources, this contains a JSON representation of the QueryCapture.
5959
5995
  attr_accessor :query_body
5960
5996
  # The general category of Resource against which Query was performed, e.g. "web" or "cloud".
5961
5997
  attr_accessor :query_category
@@ -5991,6 +6027,7 @@ module SDM
5991
6027
  account_id: nil,
5992
6028
  account_last_name: nil,
5993
6029
  account_tags: nil,
6030
+ capture: nil,
5994
6031
  completed_at: nil,
5995
6032
  duration: nil,
5996
6033
  egress_node_id: nil,
@@ -6014,6 +6051,7 @@ module SDM
6014
6051
  @account_id = account_id == nil ? "" : account_id
6015
6052
  @account_last_name = account_last_name == nil ? "" : account_last_name
6016
6053
  @account_tags = account_tags == nil ? SDM::_porcelain_zero_value_tags() : account_tags
6054
+ @capture = capture == nil ? nil : capture
6017
6055
  @completed_at = completed_at == nil ? nil : completed_at
6018
6056
  @duration = duration == nil ? nil : duration
6019
6057
  @egress_node_id = egress_node_id == nil ? "" : egress_node_id
@@ -6042,6 +6080,74 @@ module SDM
6042
6080
  end
6043
6081
  end
6044
6082
 
6083
+ # A QueryCapture contains additional information about queries against SSH, Kubernetes, and RDP resources.
6084
+ class QueryCapture
6085
+ # The command executed on the client for a Kubernetes session.
6086
+ attr_accessor :client_command
6087
+ # The command executed over an SSH or Kubernetes session.
6088
+ attr_accessor :command
6089
+ # The target container of a Kubernetes operation.
6090
+ attr_accessor :container
6091
+ # The environment variables for an SSH or Kubernetes session.
6092
+ attr_accessor :env
6093
+ # The remote file name of an SCP operation.
6094
+ attr_accessor :file_name
6095
+ # The file size transferred for an SCP operation.
6096
+ attr_accessor :file_size
6097
+ # The height of the terminal or window for SSH, Kubernetes, and RDP interactive sessions.
6098
+ attr_accessor :height
6099
+ # The target pod of a Kubernetes operation.
6100
+ attr_accessor :pod
6101
+ # The HTTP request body of a Kubernetes operation.
6102
+ attr_accessor :request_body
6103
+ # The HTTP request method of a Kubernetes operation.
6104
+ attr_accessor :request_method
6105
+ # The HTTP request URI of a Kubernetes operation.
6106
+ attr_accessor :request_uri
6107
+ # The CaptureType of this query capture.
6108
+ attr_accessor :type
6109
+ # The width of the terminal or window for SSH, Kubernetes, and RDP interactive sessions.
6110
+ attr_accessor :width
6111
+
6112
+ def initialize(
6113
+ client_command: nil,
6114
+ command: nil,
6115
+ container: nil,
6116
+ env: nil,
6117
+ file_name: nil,
6118
+ file_size: nil,
6119
+ height: nil,
6120
+ pod: nil,
6121
+ request_body: nil,
6122
+ request_method: nil,
6123
+ request_uri: nil,
6124
+ type: nil,
6125
+ width: nil
6126
+ )
6127
+ @client_command = client_command == nil ? "" : client_command
6128
+ @command = command == nil ? "" : command
6129
+ @container = container == nil ? "" : container
6130
+ @env = env == nil ? {} : env
6131
+ @file_name = file_name == nil ? "" : file_name
6132
+ @file_size = file_size == nil ? 0 : file_size
6133
+ @height = height == nil ? 0 : height
6134
+ @pod = pod == nil ? "" : pod
6135
+ @request_body = request_body == nil ? "" : request_body
6136
+ @request_method = request_method == nil ? "" : request_method
6137
+ @request_uri = request_uri == nil ? "" : request_uri
6138
+ @type = type == nil ? "" : type
6139
+ @width = width == nil ? 0 : width
6140
+ end
6141
+
6142
+ def to_json(options = {})
6143
+ hash = {}
6144
+ self.instance_variables.each do |var|
6145
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
6146
+ end
6147
+ hash.to_json
6148
+ end
6149
+ end
6150
+
6045
6151
  class RDP
6046
6152
  # Bind interface
6047
6153
  attr_accessor :bind_interface
data/lib/strongdm.rb CHANGED
@@ -29,7 +29,7 @@ module SDM #:nodoc:
29
29
  DEFAULT_BASE_RETRY_DELAY = 0.0030 # 30 ms
30
30
  DEFAULT_MAX_RETRY_DELAY = 300 # 300 seconds
31
31
  API_VERSION = "2021-08-23"
32
- USER_AGENT = "strongdm-sdk-ruby/3.11.0"
32
+ USER_AGENT = "strongdm-sdk-ruby/3.13.0"
33
33
  private_constant :DEFAULT_MAX_RETRIES, :DEFAULT_BASE_RETRY_DELAY, :DEFAULT_MAX_RETRY_DELAY, :API_VERSION, :USER_AGENT
34
34
 
35
35
  # Creates a new strongDM API client.
data/lib/version CHANGED
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
  #
15
15
  module SDM
16
- VERSION = "3.11.0"
16
+ VERSION = "3.13.0"
17
17
  end
data/lib/version.rb CHANGED
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
  #
15
15
  module SDM
16
- VERSION = "3.11.0"
16
+ VERSION = "3.13.0"
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.11.0
4
+ version: 3.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - strongDM Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-14 00:00:00.000000000 Z
11
+ date: 2023-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -81,8 +81,8 @@ files:
81
81
  - "./.git/logs/HEAD"
82
82
  - "./.git/logs/refs/heads/master"
83
83
  - "./.git/logs/refs/remotes/origin/HEAD"
84
- - "./.git/objects/pack/pack-4eb0d24ffce2f2f85af8f38bad16b738c3ff5ae6.idx"
85
- - "./.git/objects/pack/pack-4eb0d24ffce2f2f85af8f38bad16b738c3ff5ae6.pack"
84
+ - "./.git/objects/pack/pack-11ba628f257738cc1325bbae55dc00023d1f0be4.idx"
85
+ - "./.git/objects/pack/pack-11ba628f257738cc1325bbae55dc00023d1f0be4.pack"
86
86
  - "./.git/packed-refs"
87
87
  - "./.git/refs/heads/master"
88
88
  - "./.git/refs/remotes/origin/HEAD"