strongdm 6.1.0 → 6.2.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 +4 -4
- data/.git/ORIG_HEAD +1 -1
- data/.git/index +0 -0
- data/.git/logs/HEAD +3 -3
- data/.git/logs/refs/heads/master +2 -2
- data/.git/logs/refs/remotes/origin/HEAD +1 -1
- data/.git/objects/pack/{pack-1eb117e99f99e1a2d936240c13da2e6b129c9f98.idx → pack-45fa207a3d0179fe1f56d06d8ca8a845a0890268.idx} +0 -0
- data/.git/objects/pack/{pack-1eb117e99f99e1a2d936240c13da2e6b129c9f98.pack → pack-45fa207a3d0179fe1f56d06d8ca8a845a0890268.pack} +0 -0
- data/.git/packed-refs +3 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/control_panel_pb.rb +10 -0
- data/lib/grpc/control_panel_services_pb.rb +2 -0
- data/lib/grpc/plumbing.rb +38 -0
- data/lib/grpc/queries_pb.rb +3 -0
- data/lib/models/porcelain.rb +30 -0
- data/lib/strongdm.rb +1 -1
- data/lib/svc.rb +28 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41136fdea763bda58de6d8846bce65ec2e700850f33d13271ca646ef16890a14
|
|
4
|
+
data.tar.gz: 30af83a297fe686d262739547d78bb686fbcc5daff7db0ee572b5d232b1cdfcb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a1e3add56e1f3349fbc5f2374073df61cbd2298b8627c76172c38dc9e9e16d9ef804c81c4222c4de6d1e4766f4c8726847b5b8efdc50c3b0d2c1025b80cda1e
|
|
7
|
+
data.tar.gz: 9e86115d9d4a0197944b92abfd5d2f4273b3f0e79b8c8bd47e9f3df7779fcfd604a46803921805bea417a849a7af0deed26d69521a857a454adf16b8ae210399
|
data/.git/ORIG_HEAD
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
296fd9e80fd98a5dd3dcaaccde49e33ea5578967
|
data/.git/index
CHANGED
|
Binary file
|
data/.git/logs/HEAD
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
0000000000000000000000000000000000000000 296fd9e80fd98a5dd3dcaaccde49e33ea5578967 sdmrelease <support@strongdm.com> 1705443555 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
|
2
|
+
296fd9e80fd98a5dd3dcaaccde49e33ea5578967 296fd9e80fd98a5dd3dcaaccde49e33ea5578967 sdmrelease <support@strongdm.com> 1705443555 +0000 checkout: moving from master to master
|
|
3
|
+
296fd9e80fd98a5dd3dcaaccde49e33ea5578967 d8f6c24d93d0cf5e48ccc7bf7a5ead950a7b0614 sdmrelease <support@strongdm.com> 1705443555 +0000 merge origin/development: Fast-forward
|
data/.git/logs/refs/heads/master
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000
|
|
2
|
-
|
|
1
|
+
0000000000000000000000000000000000000000 296fd9e80fd98a5dd3dcaaccde49e33ea5578967 sdmrelease <support@strongdm.com> 1705443555 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
|
2
|
+
296fd9e80fd98a5dd3dcaaccde49e33ea5578967 d8f6c24d93d0cf5e48ccc7bf7a5ead950a7b0614 sdmrelease <support@strongdm.com> 1705443555 +0000 merge origin/development: Fast-forward
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000
|
|
1
|
+
0000000000000000000000000000000000000000 296fd9e80fd98a5dd3dcaaccde49e33ea5578967 sdmrelease <support@strongdm.com> 1705443555 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
|
Binary file
|
|
Binary file
|
data/.git/packed-refs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pack-refs with: peeled fully-peeled sorted
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
d8f6c24d93d0cf5e48ccc7bf7a5ead950a7b0614 refs/remotes/origin/development
|
|
3
|
+
296fd9e80fd98a5dd3dcaaccde49e33ea5578967 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
|
|
@@ -90,3 +90,4 @@ dc6870bd4816d314f5a02818b7ab8823f622abc7 refs/tags/v5.0.2
|
|
|
90
90
|
d31341d9d50304c3bb6cd397e023906494a0ff21 refs/tags/v5.0.5
|
|
91
91
|
b724d5bc9ad45c3fbfa394653415d4b7a97ae071 refs/tags/v6.0.0
|
|
92
92
|
da1cd910d138b56624af0d2fa2d92d8acec5edca refs/tags/v6.0.1
|
|
93
|
+
296fd9e80fd98a5dd3dcaaccde49e33ea5578967 refs/tags/v6.1.0
|
data/.git/refs/heads/master
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d8f6c24d93d0cf5e48ccc7bf7a5ead950a7b0614
|
|
@@ -30,6 +30,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
30
30
|
optional :public_key, :string, 2
|
|
31
31
|
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
|
32
32
|
end
|
|
33
|
+
add_message "v1.ControlPanelGetRDPCAPublicKeyRequest" do
|
|
34
|
+
optional :meta, :message, 1, "v1.GetRequestMetadata"
|
|
35
|
+
end
|
|
36
|
+
add_message "v1.ControlPanelGetRDPCAPublicKeyResponse" do
|
|
37
|
+
optional :meta, :message, 1, "v1.GetResponseMetadata"
|
|
38
|
+
optional :public_key, :string, 2
|
|
39
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
|
40
|
+
end
|
|
33
41
|
add_message "v1.ControlPanelVerifyJWTRequest" do
|
|
34
42
|
optional :meta, :message, 1, "v1.GetRequestMetadata"
|
|
35
43
|
optional :token, :string, 2
|
|
@@ -45,6 +53,8 @@ end
|
|
|
45
53
|
module V1
|
|
46
54
|
ControlPanelGetSSHCAPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetSSHCAPublicKeyRequest").msgclass
|
|
47
55
|
ControlPanelGetSSHCAPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetSSHCAPublicKeyResponse").msgclass
|
|
56
|
+
ControlPanelGetRDPCAPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetRDPCAPublicKeyRequest").msgclass
|
|
57
|
+
ControlPanelGetRDPCAPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetRDPCAPublicKeyResponse").msgclass
|
|
48
58
|
ControlPanelVerifyJWTRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelVerifyJWTRequest").msgclass
|
|
49
59
|
ControlPanelVerifyJWTResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelVerifyJWTResponse").msgclass
|
|
50
60
|
end
|
|
@@ -30,6 +30,8 @@ module V1
|
|
|
30
30
|
|
|
31
31
|
# GetSSHCAPublicKey retrieves the SSH CA public key.
|
|
32
32
|
rpc :GetSSHCAPublicKey, ::V1::ControlPanelGetSSHCAPublicKeyRequest, ::V1::ControlPanelGetSSHCAPublicKeyResponse
|
|
33
|
+
# GetRDPCAPublicKey retrieves the RDP CA public key.
|
|
34
|
+
rpc :GetRDPCAPublicKey, ::V1::ControlPanelGetRDPCAPublicKeyRequest, ::V1::ControlPanelGetRDPCAPublicKeyResponse
|
|
33
35
|
# VerifyJWT reports whether the given JWT token (x-sdm-token) is valid.
|
|
34
36
|
rpc :VerifyJWT, ::V1::ControlPanelVerifyJWTRequest, ::V1::ControlPanelVerifyJWTResponse
|
|
35
37
|
end
|
data/lib/grpc/plumbing.rb
CHANGED
|
@@ -3199,6 +3199,44 @@ module SDM
|
|
|
3199
3199
|
end
|
|
3200
3200
|
items
|
|
3201
3201
|
end
|
|
3202
|
+
def self.convert_control_panel_get_rdpca_public_key_response_to_porcelain(plumbing)
|
|
3203
|
+
if plumbing == nil
|
|
3204
|
+
return nil
|
|
3205
|
+
end
|
|
3206
|
+
porcelain = ControlPanelGetRDPCAPublicKeyResponse.new()
|
|
3207
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
|
3208
|
+
porcelain.public_key = (plumbing.public_key)
|
|
3209
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
|
3210
|
+
porcelain
|
|
3211
|
+
end
|
|
3212
|
+
|
|
3213
|
+
def self.convert_control_panel_get_rdpca_public_key_response_to_plumbing(porcelain)
|
|
3214
|
+
if porcelain == nil
|
|
3215
|
+
return nil
|
|
3216
|
+
end
|
|
3217
|
+
plumbing = V1::ControlPanelGetRDPCAPublicKeyResponse.new()
|
|
3218
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta)
|
|
3219
|
+
plumbing.public_key = (porcelain.public_key)
|
|
3220
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit)
|
|
3221
|
+
plumbing
|
|
3222
|
+
end
|
|
3223
|
+
def self.convert_repeated_control_panel_get_rdpca_public_key_response_to_plumbing(porcelains)
|
|
3224
|
+
items = Array.new
|
|
3225
|
+
porcelains.each do |porcelain|
|
|
3226
|
+
plumbing = convert_control_panel_get_rdpca_public_key_response_to_plumbing(porcelain)
|
|
3227
|
+
items.append(plumbing)
|
|
3228
|
+
end
|
|
3229
|
+
items
|
|
3230
|
+
end
|
|
3231
|
+
|
|
3232
|
+
def self.convert_repeated_control_panel_get_rdpca_public_key_response_to_porcelain(plumbings)
|
|
3233
|
+
items = Array.new
|
|
3234
|
+
plumbings.each do |plumbing|
|
|
3235
|
+
porcelain = convert_control_panel_get_rdpca_public_key_response_to_porcelain(plumbing)
|
|
3236
|
+
items.append(porcelain)
|
|
3237
|
+
end
|
|
3238
|
+
items
|
|
3239
|
+
end
|
|
3202
3240
|
def self.convert_control_panel_get_sshca_public_key_response_to_porcelain(plumbing)
|
|
3203
3241
|
if plumbing == nil
|
|
3204
3242
|
return nil
|
data/lib/grpc/queries_pb.rb
CHANGED
|
@@ -60,6 +60,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
60
60
|
optional :completed_at, :message, 23, "google.protobuf.Timestamp"
|
|
61
61
|
optional :capture, :message, 24, "v1.QueryCapture"
|
|
62
62
|
optional :source_ip, :string, 25
|
|
63
|
+
optional :authentication_id, :string, 26
|
|
64
|
+
optional :target, :string, 27
|
|
65
|
+
optional :authzJson, :string, 28
|
|
63
66
|
end
|
|
64
67
|
add_message "v1.QueryCapture" do
|
|
65
68
|
optional :width, :int32, 1
|
data/lib/models/porcelain.rb
CHANGED
|
@@ -3177,6 +3177,36 @@ module SDM
|
|
|
3177
3177
|
end
|
|
3178
3178
|
end
|
|
3179
3179
|
|
|
3180
|
+
# ControlPanelGetRDPCAPublicKeyResponse represents a request for an
|
|
3181
|
+
# organization's RDP Certificate Authority public key.
|
|
3182
|
+
class ControlPanelGetRDPCAPublicKeyResponse
|
|
3183
|
+
# Reserved for future use.
|
|
3184
|
+
attr_accessor :meta
|
|
3185
|
+
# The public key of the SSH Certificate Authority, in OpenSSH RSA public
|
|
3186
|
+
# key format.
|
|
3187
|
+
attr_accessor :public_key
|
|
3188
|
+
# Rate limit information.
|
|
3189
|
+
attr_accessor :rate_limit
|
|
3190
|
+
|
|
3191
|
+
def initialize(
|
|
3192
|
+
meta: nil,
|
|
3193
|
+
public_key: nil,
|
|
3194
|
+
rate_limit: nil
|
|
3195
|
+
)
|
|
3196
|
+
@meta = meta == nil ? nil : meta
|
|
3197
|
+
@public_key = public_key == nil ? "" : public_key
|
|
3198
|
+
@rate_limit = rate_limit == nil ? nil : rate_limit
|
|
3199
|
+
end
|
|
3200
|
+
|
|
3201
|
+
def to_json(options = {})
|
|
3202
|
+
hash = {}
|
|
3203
|
+
self.instance_variables.each do |var|
|
|
3204
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
|
3205
|
+
end
|
|
3206
|
+
hash.to_json
|
|
3207
|
+
end
|
|
3208
|
+
end
|
|
3209
|
+
|
|
3180
3210
|
# ControlPanelGetSSHCAPublicKeyResponse represents a request for an
|
|
3181
3211
|
# organization's SSH Certificate Authority public key.
|
|
3182
3212
|
class ControlPanelGetSSHCAPublicKeyResponse
|
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/6.
|
|
32
|
+
USER_AGENT = "strongdm-sdk-ruby/6.2.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/svc.rb
CHANGED
|
@@ -1306,6 +1306,34 @@ module SDM #:nodoc:
|
|
|
1306
1306
|
resp
|
|
1307
1307
|
end
|
|
1308
1308
|
|
|
1309
|
+
# GetRDPCAPublicKey retrieves the RDP CA public key.
|
|
1310
|
+
def get_rdpca_public_key(
|
|
1311
|
+
deadline: nil
|
|
1312
|
+
)
|
|
1313
|
+
req = V1::ControlPanelGetRDPCAPublicKeyRequest.new()
|
|
1314
|
+
|
|
1315
|
+
tries = 0
|
|
1316
|
+
plumbing_response = nil
|
|
1317
|
+
loop do
|
|
1318
|
+
begin
|
|
1319
|
+
plumbing_response = @stub.get_rdpca_public_key(req, metadata: @parent.get_metadata("ControlPanel.GetRDPCAPublicKey", req), deadline: deadline)
|
|
1320
|
+
rescue => exception
|
|
1321
|
+
if (@parent.shouldRetry(tries, exception))
|
|
1322
|
+
tries + +@parent.jitterSleep(tries)
|
|
1323
|
+
next
|
|
1324
|
+
end
|
|
1325
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
|
1326
|
+
end
|
|
1327
|
+
break
|
|
1328
|
+
end
|
|
1329
|
+
|
|
1330
|
+
resp = ControlPanelGetRDPCAPublicKeyResponse.new()
|
|
1331
|
+
resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
|
|
1332
|
+
resp.public_key = (plumbing_response.public_key)
|
|
1333
|
+
resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
|
|
1334
|
+
resp
|
|
1335
|
+
end
|
|
1336
|
+
|
|
1309
1337
|
# VerifyJWT reports whether the given JWT token (x-sdm-token) is valid.
|
|
1310
1338
|
def verify_jwt(
|
|
1311
1339
|
token,
|
data/lib/version
CHANGED
data/lib/version.rb
CHANGED
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: 6.
|
|
4
|
+
version: 6.2.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: 2024-01-
|
|
11
|
+
date: 2024-01-16 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-
|
|
85
|
-
- "./.git/objects/pack/pack-
|
|
84
|
+
- "./.git/objects/pack/pack-45fa207a3d0179fe1f56d06d8ca8a845a0890268.idx"
|
|
85
|
+
- "./.git/objects/pack/pack-45fa207a3d0179fe1f56d06d8ca8a845a0890268.pack"
|
|
86
86
|
- "./.git/packed-refs"
|
|
87
87
|
- "./.git/refs/heads/master"
|
|
88
88
|
- "./.git/refs/remotes/origin/HEAD"
|