strongdm 1.0.17 → 1.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/SDM/AKS.html +2 -2
- data/doc/SDM/AKSBasicAuth.html +2 -2
- data/doc/SDM/AKSServiceAccount.html +2 -2
- data/doc/SDM/AWS.html +2 -2
- data/doc/SDM/AWSStore.html +2 -2
- data/doc/SDM/AmazonEKS.html +2 -2
- data/doc/SDM/AmazonES.html +2 -2
- data/doc/SDM/Athena.html +2 -2
- data/doc/SDM/AuroraMysql.html +2 -2
- data/doc/SDM/AuroraPostgres.html +2 -2
- data/doc/SDM/BigQuery.html +2 -2
- data/doc/SDM/Cassandra.html +2 -2
- data/doc/SDM/Citus.html +2 -2
- data/doc/SDM/Clustrix.html +2 -2
- data/doc/SDM/Cockroach.html +2 -2
- data/doc/SDM/ControlPanel.html +62 -0
- data/doc/SDM/ControlPanelVerifyJWTResponse.html +267 -0
- data/doc/SDM/DB2LUW.html +2 -2
- data/doc/SDM/DB2i.html +2 -2
- data/doc/SDM/Druid.html +2 -2
- data/doc/SDM/DynamoDB.html +2 -2
- data/doc/SDM/Elastic.html +2 -2
- data/doc/SDM/ElasticacheRedis.html +2 -2
- data/doc/SDM/Gateway.html +2 -2
- data/doc/SDM/GoogleGKE.html +2 -2
- data/doc/SDM/Greenplum.html +2 -2
- data/doc/SDM/HTTPAuth.html +2 -2
- data/doc/SDM/HTTPBasicAuth.html +2 -2
- data/doc/SDM/HTTPNoAuth.html +2 -2
- data/doc/SDM/Kubernetes.html +2 -2
- data/doc/SDM/KubernetesBasicAuth.html +2 -2
- data/doc/SDM/KubernetesServiceAccount.html +2 -2
- data/doc/SDM/Maria.html +2 -2
- data/doc/SDM/Memcached.html +2 -2
- data/doc/SDM/Memsql.html +2 -2
- data/doc/SDM/MongoHost.html +2 -2
- data/doc/SDM/MongoLegacyHost.html +2 -2
- data/doc/SDM/MongoLegacyReplicaset.html +2 -2
- data/doc/SDM/MongoReplicaSet.html +2 -2
- data/doc/SDM/Mysql.html +2 -2
- data/doc/SDM/NodeCreateResponse.html +2 -2
- data/doc/SDM/NodeDeleteResponse.html +2 -2
- data/doc/SDM/NodeGetResponse.html +2 -2
- data/doc/SDM/NodeUpdateResponse.html +2 -2
- data/doc/SDM/Nodes.html +6 -6
- data/doc/SDM/Oracle.html +2 -2
- data/doc/SDM/Plumbing.html +586 -422
- data/doc/SDM/Postgres.html +2 -2
- data/doc/SDM/Presto.html +2 -2
- data/doc/SDM/RDP.html +2 -2
- data/doc/SDM/Redis.html +2 -2
- data/doc/SDM/Redshift.html +2 -2
- data/doc/SDM/Relay.html +2 -2
- data/doc/SDM/ResourceCreateResponse.html +2 -2
- data/doc/SDM/ResourceDeleteResponse.html +2 -2
- data/doc/SDM/ResourceGetResponse.html +2 -2
- data/doc/SDM/ResourceUpdateResponse.html +2 -2
- data/doc/SDM/Resources.html +7 -7
- data/doc/SDM/Role.html +2 -2
- data/doc/SDM/RoleAttachment.html +2 -2
- data/doc/SDM/RoleAttachmentCreateResponse.html +2 -2
- data/doc/SDM/RoleAttachmentDeleteResponse.html +2 -2
- data/doc/SDM/RoleAttachmentGetResponse.html +2 -2
- data/doc/SDM/RoleAttachments.html +5 -5
- data/doc/SDM/RoleCreateResponse.html +2 -2
- data/doc/SDM/RoleDeleteResponse.html +2 -2
- data/doc/SDM/RoleGetResponse.html +2 -2
- data/doc/SDM/RoleGrant.html +2 -2
- data/doc/SDM/RoleGrantCreateResponse.html +2 -2
- data/doc/SDM/RoleGrantDeleteResponse.html +2 -2
- data/doc/SDM/RoleGrantGetResponse.html +2 -2
- data/doc/SDM/RoleGrants.html +5 -5
- data/doc/SDM/RoleUpdateResponse.html +2 -2
- data/doc/SDM/Roles.html +6 -6
- data/doc/SDM/SQLServer.html +2 -2
- data/doc/SDM/SSH.html +2 -2
- data/doc/SDM/SSHCert.html +2 -2
- data/doc/SDM/SecretStoreCreateResponse.html +2 -2
- data/doc/SDM/SecretStoreDeleteResponse.html +2 -2
- data/doc/SDM/SecretStoreGetResponse.html +2 -2
- data/doc/SDM/SecretStoreUpdateResponse.html +2 -2
- data/doc/SDM/SecretStores.html +6 -6
- data/doc/SDM/Snowflake.html +2 -2
- data/doc/SDM/Sybase.html +2 -2
- data/doc/SDM/SybaseIQ.html +2 -2
- data/doc/SDM/Teradata.html +2 -2
- data/doc/SDM/VaultTLSStore.html +2 -2
- data/doc/SDM/VaultTokenStore.html +2 -2
- data/doc/V1.html +60 -0
- data/doc/V1/PermissionGrants.html +113 -0
- data/doc/V1/PermissionGrants/Service.html +119 -0
- data/doc/V1/Permissions/Service.html +119 -0
- data/doc/created.rid +51 -52
- data/doc/index.html +6 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search_index.js +1 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/lib/version.html +1 -1
- data/doc/strongdm_gemspec.html +1 -1
- data/doc/table_of_contents.html +556 -506
- data/lib/grpc/account_attachments_services_pb.rb +4 -4
- data/lib/grpc/account_grants_services_pb.rb +4 -4
- data/lib/grpc/accounts_services_pb.rb +5 -5
- data/lib/grpc/control_panel_pb.rb +11 -0
- data/lib/grpc/control_panel_services_pb.rb +3 -1
- data/lib/grpc/nodes_services_pb.rb +5 -5
- data/lib/grpc/options_pb.rb +5 -1
- data/lib/grpc/plumbing.rb +38 -1
- data/lib/grpc/resources_services_pb.rb +6 -6
- data/lib/grpc/role_attachments_services_pb.rb +4 -4
- data/lib/grpc/role_grants_services_pb.rb +4 -4
- data/lib/grpc/roles_services_pb.rb +5 -5
- data/lib/grpc/secret_stores_services_pb.rb +5 -5
- data/lib/grpc/spec_pb.rb +1 -0
- data/lib/models/porcelain.rb +34 -0
- data/lib/svc.rb +30 -0
- data/lib/version +1 -1
- data/lib/version.rb +1 -1
- metadata +6 -4
- data/lib/grpc/demo_provisioning_requests_pb.rb +0 -93
- data/lib/grpc/demo_provisioning_requests_services_pb.rb +0 -49
@@ -29,13 +29,13 @@ module V1
|
|
29
29
|
self.service_name = "v1.AccountAttachments"
|
30
30
|
|
31
31
|
# Create registers a new AccountAttachment.
|
32
|
-
rpc :Create,
|
32
|
+
rpc :Create, AccountAttachmentCreateRequest, AccountAttachmentCreateResponse
|
33
33
|
# Get reads one AccountAttachment by ID.
|
34
|
-
rpc :Get,
|
34
|
+
rpc :Get, AccountAttachmentGetRequest, AccountAttachmentGetResponse
|
35
35
|
# Delete removes a AccountAttachment by ID.
|
36
|
-
rpc :Delete,
|
36
|
+
rpc :Delete, AccountAttachmentDeleteRequest, AccountAttachmentDeleteResponse
|
37
37
|
# List gets a list of AccountAttachments matching a given set of criteria.
|
38
|
-
rpc :List,
|
38
|
+
rpc :List, AccountAttachmentListRequest, AccountAttachmentListResponse
|
39
39
|
end
|
40
40
|
|
41
41
|
Stub = Service.rpc_stub_class
|
@@ -29,13 +29,13 @@ module V1
|
|
29
29
|
self.service_name = "v1.AccountGrants"
|
30
30
|
|
31
31
|
# Create registers a new AccountGrant.
|
32
|
-
rpc :Create,
|
32
|
+
rpc :Create, AccountGrantCreateRequest, AccountGrantCreateResponse
|
33
33
|
# Get reads one AccountGrant by ID.
|
34
|
-
rpc :Get,
|
34
|
+
rpc :Get, AccountGrantGetRequest, AccountGrantGetResponse
|
35
35
|
# Delete removes a AccountGrant by ID.
|
36
|
-
rpc :Delete,
|
36
|
+
rpc :Delete, AccountGrantDeleteRequest, AccountGrantDeleteResponse
|
37
37
|
# List gets a list of AccountGrants matching a given set of criteria.
|
38
|
-
rpc :List,
|
38
|
+
rpc :List, AccountGrantListRequest, AccountGrantListResponse
|
39
39
|
end
|
40
40
|
|
41
41
|
Stub = Service.rpc_stub_class
|
@@ -31,15 +31,15 @@ module V1
|
|
31
31
|
self.service_name = "v1.Accounts"
|
32
32
|
|
33
33
|
# Create registers a new Account.
|
34
|
-
rpc :Create,
|
34
|
+
rpc :Create, AccountCreateRequest, AccountCreateResponse
|
35
35
|
# Get reads one Account by ID.
|
36
|
-
rpc :Get,
|
36
|
+
rpc :Get, AccountGetRequest, AccountGetResponse
|
37
37
|
# Update patches a Account by ID.
|
38
|
-
rpc :Update,
|
38
|
+
rpc :Update, AccountUpdateRequest, AccountUpdateResponse
|
39
39
|
# Delete removes a Account by ID.
|
40
|
-
rpc :Delete,
|
40
|
+
rpc :Delete, AccountDeleteRequest, AccountDeleteResponse
|
41
41
|
# List gets a list of Accounts matching a given set of criteria.
|
42
|
-
rpc :List,
|
42
|
+
rpc :List, AccountListRequest, AccountListResponse
|
43
43
|
end
|
44
44
|
|
45
45
|
Stub = Service.rpc_stub_class
|
@@ -29,10 +29,21 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
29
29
|
optional :public_key, :string, 2
|
30
30
|
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
31
31
|
end
|
32
|
+
add_message "v1.ControlPanelVerifyJWTRequest" do
|
33
|
+
optional :meta, :message, 1, "v1.GetRequestMetadata"
|
34
|
+
optional :token, :string, 2
|
35
|
+
end
|
36
|
+
add_message "v1.ControlPanelVerifyJWTResponse" do
|
37
|
+
optional :meta, :message, 1, "v1.GetResponseMetadata"
|
38
|
+
optional :valid, :bool, 2
|
39
|
+
optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
|
40
|
+
end
|
32
41
|
end
|
33
42
|
end
|
34
43
|
|
35
44
|
module V1
|
36
45
|
ControlPanelGetSSHCAPublicKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetSSHCAPublicKeyRequest").msgclass
|
37
46
|
ControlPanelGetSSHCAPublicKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelGetSSHCAPublicKeyResponse").msgclass
|
47
|
+
ControlPanelVerifyJWTRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelVerifyJWTRequest").msgclass
|
48
|
+
ControlPanelVerifyJWTResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.ControlPanelVerifyJWTResponse").msgclass
|
38
49
|
end
|
@@ -29,7 +29,9 @@ module V1
|
|
29
29
|
self.service_name = "v1.ControlPanel"
|
30
30
|
|
31
31
|
# GetSSHCAPublicKey retrieves the SSH CA public key.
|
32
|
-
rpc :GetSSHCAPublicKey,
|
32
|
+
rpc :GetSSHCAPublicKey, ControlPanelGetSSHCAPublicKeyRequest, ControlPanelGetSSHCAPublicKeyResponse
|
33
|
+
# VerifyJWT reports whether the given JWT token (x-sdm-token) is valid.
|
34
|
+
rpc :VerifyJWT, ControlPanelVerifyJWTRequest, ControlPanelVerifyJWTResponse
|
33
35
|
end
|
34
36
|
|
35
37
|
Stub = Service.rpc_stub_class
|
@@ -31,15 +31,15 @@ module V1
|
|
31
31
|
self.service_name = "v1.Nodes"
|
32
32
|
|
33
33
|
# Create registers a new Node.
|
34
|
-
rpc :Create,
|
34
|
+
rpc :Create, NodeCreateRequest, NodeCreateResponse
|
35
35
|
# Get reads one Node by ID.
|
36
|
-
rpc :Get,
|
36
|
+
rpc :Get, NodeGetRequest, NodeGetResponse
|
37
37
|
# Update patches a Node by ID.
|
38
|
-
rpc :Update,
|
38
|
+
rpc :Update, NodeUpdateRequest, NodeUpdateResponse
|
39
39
|
# Delete removes a Node by ID.
|
40
|
-
rpc :Delete,
|
40
|
+
rpc :Delete, NodeDeleteRequest, NodeDeleteResponse
|
41
41
|
# List gets a list of Nodes matching a given set of criteria.
|
42
|
-
rpc :List,
|
42
|
+
rpc :List, NodeListRequest, NodeListResponse
|
43
43
|
end
|
44
44
|
|
45
45
|
Stub = Service.rpc_stub_class
|
data/lib/grpc/options_pb.rb
CHANGED
@@ -23,6 +23,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
23
|
optional :method, :string, 1941300
|
24
24
|
optional :url, :string, 1941301
|
25
25
|
end
|
26
|
+
add_message "v1.FileOptions" do
|
27
|
+
optional :private_sdk, :bool, 1941700
|
28
|
+
end
|
26
29
|
add_message "v1.FieldOptions" do
|
27
30
|
optional :name, :string, 1941300
|
28
31
|
optional :sql_nullable, :bool, 1941301
|
@@ -31,7 +34,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
31
34
|
optional :required, :bool, 1941304
|
32
35
|
optional :id_type, :string, 1941305
|
33
36
|
optional :sdk_only, :bool, 1941306
|
34
|
-
optional :
|
37
|
+
optional :terraform_computed, :string, 1941307
|
35
38
|
optional :force_new, :bool, 1941308
|
36
39
|
optional :write_only, :bool, 1941309
|
37
40
|
optional :sensitive, :bool, 1941310
|
@@ -80,6 +83,7 @@ end
|
|
80
83
|
|
81
84
|
module V1
|
82
85
|
MethodOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.MethodOptions").msgclass
|
86
|
+
FileOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.FileOptions").msgclass
|
83
87
|
FieldOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.FieldOptions").msgclass
|
84
88
|
MessageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.MessageOptions").msgclass
|
85
89
|
CustomPorcelainMessageOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.CustomPorcelainMessageOptions").msgclass
|
data/lib/grpc/plumbing.rb
CHANGED
@@ -25,7 +25,6 @@ require_relative "./account_attachments_pb"
|
|
25
25
|
require_relative "./account_grants_pb"
|
26
26
|
require_relative "./accounts_pb"
|
27
27
|
require_relative "./control_panel_pb"
|
28
|
-
require_relative "./demo_provisioning_requests_pb"
|
29
28
|
require_relative "./drivers_pb"
|
30
29
|
require_relative "./nodes_pb"
|
31
30
|
require_relative "./resources_pb"
|
@@ -918,6 +917,44 @@ module SDM
|
|
918
917
|
end
|
919
918
|
items
|
920
919
|
end
|
920
|
+
def self.convert_control_panel_verify_jwt_response_to_porcelain(plumbing)
|
921
|
+
if plumbing == nil
|
922
|
+
return nil
|
923
|
+
end
|
924
|
+
porcelain = ControlPanelVerifyJWTResponse.new()
|
925
|
+
porcelain.meta = convert_get_response_metadata_to_porcelain(plumbing.meta)
|
926
|
+
porcelain.valid = (plumbing.valid)
|
927
|
+
porcelain.rate_limit = convert_rate_limit_metadata_to_porcelain(plumbing.rate_limit)
|
928
|
+
porcelain
|
929
|
+
end
|
930
|
+
|
931
|
+
def self.convert_control_panel_verify_jwt_response_to_plumbing(porcelain)
|
932
|
+
if porcelain == nil
|
933
|
+
return nil
|
934
|
+
end
|
935
|
+
plumbing = V1::ControlPanelVerifyJWTResponse.new()
|
936
|
+
plumbing.meta = convert_get_response_metadata_to_plumbing(porcelain.meta) unless porcelain.meta == nil
|
937
|
+
plumbing.valid = (porcelain.valid) unless porcelain.valid == nil
|
938
|
+
plumbing.rate_limit = convert_rate_limit_metadata_to_plumbing(porcelain.rate_limit) unless porcelain.rate_limit == nil
|
939
|
+
plumbing
|
940
|
+
end
|
941
|
+
def self.convert_repeated_control_panel_verify_jwt_response_to_plumbing(porcelains)
|
942
|
+
items = Array.new
|
943
|
+
porcelains.each do |porcelain|
|
944
|
+
plumbing = convert_control_panel_verify_jwt_response_to_plumbing(porcelain)
|
945
|
+
items.append(plumbing)
|
946
|
+
end
|
947
|
+
items
|
948
|
+
end
|
949
|
+
|
950
|
+
def self.convert_repeated_control_panel_verify_jwt_response_to_porcelain(plumbings)
|
951
|
+
items = Array.new
|
952
|
+
plumbings.each do |plumbing|
|
953
|
+
porcelain = convert_control_panel_verify_jwt_response_to_porcelain(plumbing)
|
954
|
+
items.append(porcelain)
|
955
|
+
end
|
956
|
+
items
|
957
|
+
end
|
921
958
|
def self.convert_resource_to_plumbing(porcelain)
|
922
959
|
if porcelain == nil
|
923
960
|
return nil
|
@@ -28,17 +28,17 @@ module V1
|
|
28
28
|
self.service_name = "v1.Resources"
|
29
29
|
|
30
30
|
# EnumerateTags gets a list of the filter matching tags.
|
31
|
-
rpc :EnumerateTags,
|
31
|
+
rpc :EnumerateTags, EnumerateTagsRequest, EnumerateTagsResponse
|
32
32
|
# Create registers a new Resource.
|
33
|
-
rpc :Create,
|
33
|
+
rpc :Create, ResourceCreateRequest, ResourceCreateResponse
|
34
34
|
# Get reads one Resource by ID.
|
35
|
-
rpc :Get,
|
35
|
+
rpc :Get, ResourceGetRequest, ResourceGetResponse
|
36
36
|
# Update patches a Resource by ID.
|
37
|
-
rpc :Update,
|
37
|
+
rpc :Update, ResourceUpdateRequest, ResourceUpdateResponse
|
38
38
|
# Delete removes a Resource by ID.
|
39
|
-
rpc :Delete,
|
39
|
+
rpc :Delete, ResourceDeleteRequest, ResourceDeleteResponse
|
40
40
|
# List gets a list of Resources matching a given set of criteria.
|
41
|
-
rpc :List,
|
41
|
+
rpc :List, ResourceListRequest, ResourceListResponse
|
42
42
|
end
|
43
43
|
|
44
44
|
Stub = Service.rpc_stub_class
|
@@ -32,13 +32,13 @@ module V1
|
|
32
32
|
self.service_name = "v1.RoleAttachments"
|
33
33
|
|
34
34
|
# Create registers a new RoleAttachment.
|
35
|
-
rpc :Create,
|
35
|
+
rpc :Create, RoleAttachmentCreateRequest, RoleAttachmentCreateResponse
|
36
36
|
# Get reads one RoleAttachment by ID.
|
37
|
-
rpc :Get,
|
37
|
+
rpc :Get, RoleAttachmentGetRequest, RoleAttachmentGetResponse
|
38
38
|
# Delete removes a RoleAttachment by ID.
|
39
|
-
rpc :Delete,
|
39
|
+
rpc :Delete, RoleAttachmentDeleteRequest, RoleAttachmentDeleteResponse
|
40
40
|
# List gets a list of RoleAttachments matching a given set of criteria.
|
41
|
-
rpc :List,
|
41
|
+
rpc :List, RoleAttachmentListRequest, RoleAttachmentListResponse
|
42
42
|
end
|
43
43
|
|
44
44
|
Stub = Service.rpc_stub_class
|
@@ -32,13 +32,13 @@ module V1
|
|
32
32
|
self.service_name = "v1.RoleGrants"
|
33
33
|
|
34
34
|
# Create registers a new RoleGrant.
|
35
|
-
rpc :Create,
|
35
|
+
rpc :Create, RoleGrantCreateRequest, RoleGrantCreateResponse
|
36
36
|
# Get reads one RoleGrant by ID.
|
37
|
-
rpc :Get,
|
37
|
+
rpc :Get, RoleGrantGetRequest, RoleGrantGetResponse
|
38
38
|
# Delete removes a RoleGrant by ID.
|
39
|
-
rpc :Delete,
|
39
|
+
rpc :Delete, RoleGrantDeleteRequest, RoleGrantDeleteResponse
|
40
40
|
# List gets a list of RoleGrants matching a given set of criteria.
|
41
|
-
rpc :List,
|
41
|
+
rpc :List, RoleGrantListRequest, RoleGrantListResponse
|
42
42
|
end
|
43
43
|
|
44
44
|
Stub = Service.rpc_stub_class
|
@@ -33,15 +33,15 @@ module V1
|
|
33
33
|
self.service_name = "v1.Roles"
|
34
34
|
|
35
35
|
# Create registers a new Role.
|
36
|
-
rpc :Create,
|
36
|
+
rpc :Create, RoleCreateRequest, RoleCreateResponse
|
37
37
|
# Get reads one Role by ID.
|
38
|
-
rpc :Get,
|
38
|
+
rpc :Get, RoleGetRequest, RoleGetResponse
|
39
39
|
# Update patches a Role by ID.
|
40
|
-
rpc :Update,
|
40
|
+
rpc :Update, RoleUpdateRequest, RoleUpdateResponse
|
41
41
|
# Delete removes a Role by ID.
|
42
|
-
rpc :Delete,
|
42
|
+
rpc :Delete, RoleDeleteRequest, RoleDeleteResponse
|
43
43
|
# List gets a list of Roles matching a given set of criteria.
|
44
|
-
rpc :List,
|
44
|
+
rpc :List, RoleListRequest, RoleListResponse
|
45
45
|
end
|
46
46
|
|
47
47
|
Stub = Service.rpc_stub_class
|
@@ -28,15 +28,15 @@ module V1
|
|
28
28
|
self.unmarshal_class_method = :decode
|
29
29
|
self.service_name = "v1.SecretStores"
|
30
30
|
|
31
|
-
rpc :Create,
|
31
|
+
rpc :Create, SecretStoreCreateRequest, SecretStoreCreateResponse
|
32
32
|
# Get reads one SecretStore by ID.
|
33
|
-
rpc :Get,
|
33
|
+
rpc :Get, SecretStoreGetRequest, SecretStoreGetResponse
|
34
34
|
# Update patches a SecretStore by ID.
|
35
|
-
rpc :Update,
|
35
|
+
rpc :Update, SecretStoreUpdateRequest, SecretStoreUpdateResponse
|
36
36
|
# Delete removes a SecretStore by ID.
|
37
|
-
rpc :Delete,
|
37
|
+
rpc :Delete, SecretStoreDeleteRequest, SecretStoreDeleteResponse
|
38
38
|
# List gets a list of SecretStores matching a given set of criteria.
|
39
|
-
rpc :List,
|
39
|
+
rpc :List, SecretStoreListRequest, SecretStoreListResponse
|
40
40
|
end
|
41
41
|
|
42
42
|
Stub = Service.rpc_stub_class
|
data/lib/grpc/spec_pb.rb
CHANGED
@@ -58,6 +58,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
58
58
|
optional :cursor, :string, 1
|
59
59
|
optional :page, :int32, 2
|
60
60
|
optional :limit, :int32, 3
|
61
|
+
optional :order_by, :string, 4
|
61
62
|
end
|
62
63
|
add_message "v1.ListResponseMetadata" do
|
63
64
|
optional :next_cursor, :string, 1
|
data/lib/models/porcelain.rb
CHANGED
@@ -683,6 +683,40 @@ module SDM
|
|
683
683
|
end
|
684
684
|
end
|
685
685
|
|
686
|
+
# ControlPanelVerifyJWTResponse reports whether x-sdm-token is valid.
|
687
|
+
class ControlPanelVerifyJWTResponse
|
688
|
+
# Reserved for future use.
|
689
|
+
attr_accessor :meta
|
690
|
+
# Reports if the given token is valid.
|
691
|
+
attr_accessor :valid
|
692
|
+
# Rate limit information.
|
693
|
+
attr_accessor :rate_limit
|
694
|
+
|
695
|
+
def initialize(
|
696
|
+
meta: nil,
|
697
|
+
valid: nil,
|
698
|
+
rate_limit: nil
|
699
|
+
)
|
700
|
+
if meta != nil
|
701
|
+
@meta = meta
|
702
|
+
end
|
703
|
+
if valid != nil
|
704
|
+
@valid = valid
|
705
|
+
end
|
706
|
+
if rate_limit != nil
|
707
|
+
@rate_limit = rate_limit
|
708
|
+
end
|
709
|
+
end
|
710
|
+
|
711
|
+
def to_json(options = {})
|
712
|
+
hash = {}
|
713
|
+
self.instance_variables.each do |var|
|
714
|
+
hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
|
715
|
+
end
|
716
|
+
hash.to_json
|
717
|
+
end
|
718
|
+
end
|
719
|
+
|
686
720
|
class Athena
|
687
721
|
# Unique identifier of the Resource.
|
688
722
|
attr_accessor :id
|
data/lib/svc.rb
CHANGED
@@ -529,6 +529,36 @@ module SDM
|
|
529
529
|
resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
|
530
530
|
resp
|
531
531
|
end
|
532
|
+
|
533
|
+
# VerifyJWT reports whether the given JWT token (x-sdm-token) is valid.
|
534
|
+
def verify_jwt(
|
535
|
+
token,
|
536
|
+
deadline: nil
|
537
|
+
)
|
538
|
+
req = V1::ControlPanelVerifyJWTRequest.new()
|
539
|
+
|
540
|
+
req.token = (token)
|
541
|
+
tries = 0
|
542
|
+
plumbing_response = nil
|
543
|
+
loop do
|
544
|
+
begin
|
545
|
+
plumbing_response = @stub.verify_jwt(req, metadata: @parent.get_metadata("ControlPanel.VerifyJWT", req), deadline: deadline)
|
546
|
+
rescue => exception
|
547
|
+
if (@parent.shouldRetry(tries, exception))
|
548
|
+
tries + +@parent.jitterSleep(tries)
|
549
|
+
next
|
550
|
+
end
|
551
|
+
raise Plumbing::convert_error_to_porcelain(exception)
|
552
|
+
end
|
553
|
+
break
|
554
|
+
end
|
555
|
+
|
556
|
+
resp = ControlPanelVerifyJWTResponse.new()
|
557
|
+
resp.meta = Plumbing::convert_get_response_metadata_to_porcelain(plumbing_response.meta)
|
558
|
+
resp.valid = (plumbing_response.valid)
|
559
|
+
resp.rate_limit = Plumbing::convert_rate_limit_metadata_to_porcelain(plumbing_response.rate_limit)
|
560
|
+
resp
|
561
|
+
end
|
532
562
|
end
|
533
563
|
|
534
564
|
# Nodes make up the strongDM network, and allow your users to connect securely to your resources. There are two types of nodes:
|
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: 1.0.
|
4
|
+
version: 1.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- strongDM Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- doc/SDM/Cockroach.html
|
126
126
|
- doc/SDM/ControlPanel.html
|
127
127
|
- doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html
|
128
|
+
- doc/SDM/ControlPanelVerifyJWTResponse.html
|
128
129
|
- doc/SDM/CreateResponseMetadata.html
|
129
130
|
- doc/SDM/DB2LUW.html
|
130
131
|
- doc/SDM/DB2i.html
|
@@ -230,6 +231,9 @@ files:
|
|
230
231
|
- doc/V1/DemoProvisioningRequests/Service.html
|
231
232
|
- doc/V1/Nodes.html
|
232
233
|
- doc/V1/Nodes/Service.html
|
234
|
+
- doc/V1/PermissionGrants.html
|
235
|
+
- doc/V1/PermissionGrants/Service.html
|
236
|
+
- doc/V1/Permissions/Service.html
|
233
237
|
- doc/V1/Resources.html
|
234
238
|
- doc/V1/Resources/Service.html
|
235
239
|
- doc/V1/RoleAttachments.html
|
@@ -306,8 +310,6 @@ files:
|
|
306
310
|
- lib/grpc/accounts_services_pb.rb
|
307
311
|
- lib/grpc/control_panel_pb.rb
|
308
312
|
- lib/grpc/control_panel_services_pb.rb
|
309
|
-
- lib/grpc/demo_provisioning_requests_pb.rb
|
310
|
-
- lib/grpc/demo_provisioning_requests_services_pb.rb
|
311
313
|
- lib/grpc/drivers_pb.rb
|
312
314
|
- lib/grpc/nodes_pb.rb
|
313
315
|
- lib/grpc/nodes_services_pb.rb
|