strongdm 6.3.1 → 6.4.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-a7478d78e4c6471c95cbeb49374ac04dffb1510e.idx → pack-217887fd9a99d59bd0c57215ebc44ac0b1f0764e.idx} +0 -0
- data/.git/objects/pack/{pack-a7478d78e4c6471c95cbeb49374ac04dffb1510e.pack → pack-217887fd9a99d59bd0c57215ebc44ac0b1f0764e.pack} +0 -0
- data/.git/packed-refs +3 -2
- data/.git/refs/heads/master +1 -1
- data/lib/grpc/drivers_pb.rb +18 -0
- data/lib/grpc/plumbing.rb +66 -0
- data/lib/models/porcelain.rb +71 -0
- data/lib/strongdm.rb +1 -1
- data/lib/svc.rb +1 -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: bc5a040bf80506dcca8430f017e6a7dcb67d0fe0093b0f81c999500a59209d70
|
|
4
|
+
data.tar.gz: 7c734774bacbf86d7abc2a1d50010788eacc9b052c0a74b17e4c881bca8caa1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0450da4a3e7483ad87595b75485abceab47c82a4ef299ffb024c77aba1dfb0e6ed26324ce5d0a789dd9173b75b1f644bcf069ed7cb712859464d6208dd121c9c
|
|
7
|
+
data.tar.gz: 3de312182f7540523b97b7220a19583c571b97c87f52af10dd60930c96c5cb73ffc80b79d81fa94d4a534666bb7e7fbdda08b89e899f7546a24b8c1cfceb679e
|
data/.git/ORIG_HEAD
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
3ca1e977d66e0fb0232024c33a223a789453031c
|
data/.git/index
CHANGED
|
Binary file
|
data/.git/logs/HEAD
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
0000000000000000000000000000000000000000 3ca1e977d66e0fb0232024c33a223a789453031c sdmrelease <support@strongdm.com> 1707503462 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
|
2
|
+
3ca1e977d66e0fb0232024c33a223a789453031c 3ca1e977d66e0fb0232024c33a223a789453031c sdmrelease <support@strongdm.com> 1707503462 +0000 checkout: moving from master to master
|
|
3
|
+
3ca1e977d66e0fb0232024c33a223a789453031c e015e0386c2f0b99314bb46ae71631afdbcf4ed0 sdmrelease <support@strongdm.com> 1707503462 +0000 merge origin/development: Fast-forward
|
data/.git/logs/refs/heads/master
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000
|
|
2
|
-
|
|
1
|
+
0000000000000000000000000000000000000000 3ca1e977d66e0fb0232024c33a223a789453031c sdmrelease <support@strongdm.com> 1707503462 +0000 clone: from github.com:strongdm/strongdm-sdk-ruby.git
|
|
2
|
+
3ca1e977d66e0fb0232024c33a223a789453031c e015e0386c2f0b99314bb46ae71631afdbcf4ed0 sdmrelease <support@strongdm.com> 1707503462 +0000 merge origin/development: Fast-forward
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000
|
|
1
|
+
0000000000000000000000000000000000000000 3ca1e977d66e0fb0232024c33a223a789453031c sdmrelease <support@strongdm.com> 1707503462 +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
|
+
e015e0386c2f0b99314bb46ae71631afdbcf4ed0 refs/remotes/origin/development
|
|
3
|
+
3ca1e977d66e0fb0232024c33a223a789453031c 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
|
|
@@ -94,3 +94,4 @@ da1cd910d138b56624af0d2fa2d92d8acec5edca refs/tags/v6.0.1
|
|
|
94
94
|
d8f6c24d93d0cf5e48ccc7bf7a5ead950a7b0614 refs/tags/v6.2.0
|
|
95
95
|
f4af6ebad8174f8e5aeec63536db9290597a3982 refs/tags/v6.2.1
|
|
96
96
|
59ba0e6392d2e7f5f4c053e663766157c9a9b149 refs/tags/v6.3.0
|
|
97
|
+
3ca1e977d66e0fb0232024c33a223a789453031c refs/tags/v6.3.1
|
data/.git/refs/heads/master
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e015e0386c2f0b99314bb46ae71631afdbcf4ed0
|
data/lib/grpc/drivers_pb.rb
CHANGED
|
@@ -89,6 +89,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
89
89
|
optional :postgres, :message, 1300, "v1.Postgres"
|
|
90
90
|
optional :presto, :message, 1400, "v1.Presto"
|
|
91
91
|
optional :rdp, :message, 1500, "v1.RDP"
|
|
92
|
+
optional :rdp_cert, :message, 1501, "v1.RDPCert"
|
|
92
93
|
optional :rds_postgres_iam, :message, 1310, "v1.RDSPostgresIAM"
|
|
93
94
|
optional :rabbit_mqamqp_091, :message, 2500, "v1.RabbitMQAMQP091"
|
|
94
95
|
optional :raw_tcp, :message, 2600, "v1.RawTCP"
|
|
@@ -1216,6 +1217,22 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
|
1216
1217
|
optional :port_override, :int32, 4
|
|
1217
1218
|
optional :username, :string, 2
|
|
1218
1219
|
end
|
|
1220
|
+
add_message "v1.RDPCert" do
|
|
1221
|
+
optional :id, :string, 32768
|
|
1222
|
+
optional :name, :string, 32769
|
|
1223
|
+
optional :healthy, :bool, 32770
|
|
1224
|
+
optional :tags, :message, 32771, "v1.Tags"
|
|
1225
|
+
optional :secret_store_id, :string, 32772
|
|
1226
|
+
optional :egress_filter, :string, 32773
|
|
1227
|
+
optional :bind_interface, :string, 32774
|
|
1228
|
+
optional :subdomain, :string, 32775
|
|
1229
|
+
optional :hostname, :string, 1
|
|
1230
|
+
optional :port, :int32, 4
|
|
1231
|
+
optional :port_override, :int32, 3
|
|
1232
|
+
optional :remote_identity_group_id, :string, 5
|
|
1233
|
+
optional :remote_identity_healthcheck_username, :string, 6
|
|
1234
|
+
optional :username, :string, 2
|
|
1235
|
+
end
|
|
1219
1236
|
add_message "v1.RDSPostgresIAM" do
|
|
1220
1237
|
optional :id, :string, 32768
|
|
1221
1238
|
optional :name, :string, 32769
|
|
@@ -1589,6 +1606,7 @@ module V1
|
|
|
1589
1606
|
Postgres = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Postgres").msgclass
|
|
1590
1607
|
Presto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.Presto").msgclass
|
|
1591
1608
|
RDP = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RDP").msgclass
|
|
1609
|
+
RDPCert = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RDPCert").msgclass
|
|
1592
1610
|
RDSPostgresIAM = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RDSPostgresIAM").msgclass
|
|
1593
1611
|
RabbitMQAMQP091 = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RabbitMQAMQP091").msgclass
|
|
1594
1612
|
RawTCP = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.RawTCP").msgclass
|
data/lib/grpc/plumbing.rb
CHANGED
|
@@ -7069,6 +7069,66 @@ module SDM
|
|
|
7069
7069
|
end
|
|
7070
7070
|
items
|
|
7071
7071
|
end
|
|
7072
|
+
def self.convert_rdp_cert_to_porcelain(plumbing)
|
|
7073
|
+
if plumbing == nil
|
|
7074
|
+
return nil
|
|
7075
|
+
end
|
|
7076
|
+
porcelain = RDPCert.new()
|
|
7077
|
+
porcelain.bind_interface = (plumbing.bind_interface)
|
|
7078
|
+
porcelain.egress_filter = (plumbing.egress_filter)
|
|
7079
|
+
porcelain.healthy = (plumbing.healthy)
|
|
7080
|
+
porcelain.hostname = (plumbing.hostname)
|
|
7081
|
+
porcelain.id = (plumbing.id)
|
|
7082
|
+
porcelain.name = (plumbing.name)
|
|
7083
|
+
porcelain.port = (plumbing.port)
|
|
7084
|
+
porcelain.port_override = (plumbing.port_override)
|
|
7085
|
+
porcelain.remote_identity_group_id = (plumbing.remote_identity_group_id)
|
|
7086
|
+
porcelain.remote_identity_healthcheck_username = (plumbing.remote_identity_healthcheck_username)
|
|
7087
|
+
porcelain.secret_store_id = (plumbing.secret_store_id)
|
|
7088
|
+
porcelain.subdomain = (plumbing.subdomain)
|
|
7089
|
+
porcelain.tags = convert_tags_to_porcelain(plumbing.tags)
|
|
7090
|
+
porcelain.username = (plumbing.username)
|
|
7091
|
+
porcelain
|
|
7092
|
+
end
|
|
7093
|
+
|
|
7094
|
+
def self.convert_rdp_cert_to_plumbing(porcelain)
|
|
7095
|
+
if porcelain == nil
|
|
7096
|
+
return nil
|
|
7097
|
+
end
|
|
7098
|
+
plumbing = V1::RDPCert.new()
|
|
7099
|
+
plumbing.bind_interface = (porcelain.bind_interface)
|
|
7100
|
+
plumbing.egress_filter = (porcelain.egress_filter)
|
|
7101
|
+
plumbing.healthy = (porcelain.healthy)
|
|
7102
|
+
plumbing.hostname = (porcelain.hostname)
|
|
7103
|
+
plumbing.id = (porcelain.id)
|
|
7104
|
+
plumbing.name = (porcelain.name)
|
|
7105
|
+
plumbing.port = (porcelain.port)
|
|
7106
|
+
plumbing.port_override = (porcelain.port_override)
|
|
7107
|
+
plumbing.remote_identity_group_id = (porcelain.remote_identity_group_id)
|
|
7108
|
+
plumbing.remote_identity_healthcheck_username = (porcelain.remote_identity_healthcheck_username)
|
|
7109
|
+
plumbing.secret_store_id = (porcelain.secret_store_id)
|
|
7110
|
+
plumbing.subdomain = (porcelain.subdomain)
|
|
7111
|
+
plumbing.tags = convert_tags_to_plumbing(porcelain.tags)
|
|
7112
|
+
plumbing.username = (porcelain.username)
|
|
7113
|
+
plumbing
|
|
7114
|
+
end
|
|
7115
|
+
def self.convert_repeated_rdp_cert_to_plumbing(porcelains)
|
|
7116
|
+
items = Array.new
|
|
7117
|
+
porcelains.each do |porcelain|
|
|
7118
|
+
plumbing = convert_rdp_cert_to_plumbing(porcelain)
|
|
7119
|
+
items.append(plumbing)
|
|
7120
|
+
end
|
|
7121
|
+
items
|
|
7122
|
+
end
|
|
7123
|
+
|
|
7124
|
+
def self.convert_repeated_rdp_cert_to_porcelain(plumbings)
|
|
7125
|
+
items = Array.new
|
|
7126
|
+
plumbings.each do |plumbing|
|
|
7127
|
+
porcelain = convert_rdp_cert_to_porcelain(plumbing)
|
|
7128
|
+
items.append(porcelain)
|
|
7129
|
+
end
|
|
7130
|
+
items
|
|
7131
|
+
end
|
|
7072
7132
|
def self.convert_rds_postgres_iam_to_porcelain(plumbing)
|
|
7073
7133
|
if plumbing == nil
|
|
7074
7134
|
return nil
|
|
@@ -8127,6 +8187,9 @@ module SDM
|
|
|
8127
8187
|
if porcelain.instance_of? RDP
|
|
8128
8188
|
plumbing.rdp = convert_rdp_to_plumbing(porcelain)
|
|
8129
8189
|
end
|
|
8190
|
+
if porcelain.instance_of? RDPCert
|
|
8191
|
+
plumbing.rdp_cert = convert_rdp_cert_to_plumbing(porcelain)
|
|
8192
|
+
end
|
|
8130
8193
|
if porcelain.instance_of? RDSPostgresIAM
|
|
8131
8194
|
plumbing.rds_postgres_iam = convert_rds_postgres_iam_to_plumbing(porcelain)
|
|
8132
8195
|
end
|
|
@@ -8383,6 +8446,9 @@ module SDM
|
|
|
8383
8446
|
if plumbing.rdp != nil
|
|
8384
8447
|
return convert_rdp_to_porcelain(plumbing.rdp)
|
|
8385
8448
|
end
|
|
8449
|
+
if plumbing.rdp_cert != nil
|
|
8450
|
+
return convert_rdp_cert_to_porcelain(plumbing.rdp_cert)
|
|
8451
|
+
end
|
|
8386
8452
|
if plumbing.rds_postgres_iam != nil
|
|
8387
8453
|
return convert_rds_postgres_iam_to_porcelain(plumbing.rds_postgres_iam)
|
|
8388
8454
|
end
|
data/lib/models/porcelain.rb
CHANGED
|
@@ -7238,6 +7238,77 @@ module SDM
|
|
|
7238
7238
|
end
|
|
7239
7239
|
end
|
|
7240
7240
|
|
|
7241
|
+
class RDPCert
|
|
7242
|
+
# The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided.
|
|
7243
|
+
attr_accessor :bind_interface
|
|
7244
|
+
# A filter applied to the routing logic to pin datasource to nodes.
|
|
7245
|
+
attr_accessor :egress_filter
|
|
7246
|
+
# True if the datasource is reachable and the credentials are valid.
|
|
7247
|
+
attr_accessor :healthy
|
|
7248
|
+
# The host to dial to initiate a connection from the egress node to this resource.
|
|
7249
|
+
attr_accessor :hostname
|
|
7250
|
+
# Unique identifier of the Resource.
|
|
7251
|
+
attr_accessor :id
|
|
7252
|
+
# Unique human-readable name of the Resource.
|
|
7253
|
+
attr_accessor :name
|
|
7254
|
+
# The port to dial to initiate a connection from the egress node to this resource.
|
|
7255
|
+
attr_accessor :port
|
|
7256
|
+
# The local port used by clients to connect to this resource.
|
|
7257
|
+
attr_accessor :port_override
|
|
7258
|
+
# The ID of the remote identity group to use for remote identity connections.
|
|
7259
|
+
attr_accessor :remote_identity_group_id
|
|
7260
|
+
# The username to use for healthchecks, when clients otherwise connect with their own remote identity username.
|
|
7261
|
+
attr_accessor :remote_identity_healthcheck_username
|
|
7262
|
+
# ID of the secret store containing credentials for this resource, if any.
|
|
7263
|
+
attr_accessor :secret_store_id
|
|
7264
|
+
# Subdomain is the local DNS address. (e.g. app-prod1 turns into app-prod1.your-org-name.sdm.network)
|
|
7265
|
+
attr_accessor :subdomain
|
|
7266
|
+
# Tags is a map of key, value pairs.
|
|
7267
|
+
attr_accessor :tags
|
|
7268
|
+
# The username to authenticate with.
|
|
7269
|
+
attr_accessor :username
|
|
7270
|
+
|
|
7271
|
+
def initialize(
|
|
7272
|
+
bind_interface: nil,
|
|
7273
|
+
egress_filter: nil,
|
|
7274
|
+
healthy: nil,
|
|
7275
|
+
hostname: nil,
|
|
7276
|
+
id: nil,
|
|
7277
|
+
name: nil,
|
|
7278
|
+
port: nil,
|
|
7279
|
+
port_override: nil,
|
|
7280
|
+
remote_identity_group_id: nil,
|
|
7281
|
+
remote_identity_healthcheck_username: nil,
|
|
7282
|
+
secret_store_id: nil,
|
|
7283
|
+
subdomain: nil,
|
|
7284
|
+
tags: nil,
|
|
7285
|
+
username: nil
|
|
7286
|
+
)
|
|
7287
|
+
@bind_interface = bind_interface == nil ? "" : bind_interface
|
|
7288
|
+
@egress_filter = egress_filter == nil ? "" : egress_filter
|
|
7289
|
+
@healthy = healthy == nil ? false : healthy
|
|
7290
|
+
@hostname = hostname == nil ? "" : hostname
|
|
7291
|
+
@id = id == nil ? "" : id
|
|
7292
|
+
@name = name == nil ? "" : name
|
|
7293
|
+
@port = port == nil ? 0 : port
|
|
7294
|
+
@port_override = port_override == nil ? 0 : port_override
|
|
7295
|
+
@remote_identity_group_id = remote_identity_group_id == nil ? "" : remote_identity_group_id
|
|
7296
|
+
@remote_identity_healthcheck_username = remote_identity_healthcheck_username == nil ? "" : remote_identity_healthcheck_username
|
|
7297
|
+
@secret_store_id = secret_store_id == nil ? "" : secret_store_id
|
|
7298
|
+
@subdomain = subdomain == nil ? "" : subdomain
|
|
7299
|
+
@tags = tags == nil ? SDM::_porcelain_zero_value_tags() : tags
|
|
7300
|
+
@username = username == nil ? "" : username
|
|
7301
|
+
end
|
|
7302
|
+
|
|
7303
|
+
def to_json(options = {})
|
|
7304
|
+
hash = {}
|
|
7305
|
+
self.instance_variables.each do |var|
|
|
7306
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
|
7307
|
+
end
|
|
7308
|
+
hash.to_json
|
|
7309
|
+
end
|
|
7310
|
+
end
|
|
7311
|
+
|
|
7241
7312
|
class RDSPostgresIAM
|
|
7242
7313
|
# The bind interface is the IP address to which the port override of a resource is bound (for example, 127.0.0.1). It is automatically generated if not provided.
|
|
7243
7314
|
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/6.
|
|
32
|
+
USER_AGENT = "strongdm-sdk-ruby/6.4.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
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.4.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-
|
|
11
|
+
date: 2024-02-09 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-217887fd9a99d59bd0c57215ebc44ac0b1f0764e.idx"
|
|
85
|
+
- "./.git/objects/pack/pack-217887fd9a99d59bd0c57215ebc44ac0b1f0764e.pack"
|
|
86
86
|
- "./.git/packed-refs"
|
|
87
87
|
- "./.git/refs/heads/master"
|
|
88
88
|
- "./.git/refs/remotes/origin/HEAD"
|