strongdm 1.0.14 → 1.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/doc/SDM/AKS.html +2 -2
  3. data/doc/SDM/AKSBasicAuth.html +2 -2
  4. data/doc/SDM/AKSServiceAccount.html +2 -2
  5. data/doc/SDM/AWS.html +373 -0
  6. data/doc/SDM/AWSStore.html +2 -2
  7. data/doc/SDM/AmazonEKS.html +2 -2
  8. data/doc/SDM/AmazonES.html +2 -2
  9. data/doc/SDM/AuroraMysql.html +2 -2
  10. data/doc/SDM/AuroraPostgres.html +2 -2
  11. data/doc/SDM/BigQuery.html +2 -2
  12. data/doc/SDM/Cassandra.html +2 -2
  13. data/doc/SDM/Citus.html +2 -2
  14. data/doc/SDM/Clustrix.html +2 -2
  15. data/doc/SDM/Cockroach.html +2 -2
  16. data/doc/SDM/DB2LUW.html +2 -2
  17. data/doc/SDM/DB2i.html +2 -2
  18. data/doc/SDM/Druid.html +2 -2
  19. data/doc/SDM/DynamoDB.html +2 -2
  20. data/doc/SDM/Elastic.html +2 -2
  21. data/doc/SDM/ElasticacheRedis.html +2 -2
  22. data/doc/SDM/Gateway.html +2 -2
  23. data/doc/SDM/GoogleGKE.html +2 -2
  24. data/doc/SDM/Greenplum.html +2 -2
  25. data/doc/SDM/HTTPAuth.html +2 -2
  26. data/doc/SDM/HTTPBasicAuth.html +2 -2
  27. data/doc/SDM/HTTPNoAuth.html +2 -2
  28. data/doc/SDM/Kubernetes.html +2 -2
  29. data/doc/SDM/KubernetesBasicAuth.html +2 -2
  30. data/doc/SDM/KubernetesServiceAccount.html +2 -2
  31. data/doc/SDM/Maria.html +2 -2
  32. data/doc/SDM/Memcached.html +2 -2
  33. data/doc/SDM/Memsql.html +2 -2
  34. data/doc/SDM/MongoHost.html +2 -2
  35. data/doc/SDM/MongoLegacyHost.html +2 -2
  36. data/doc/SDM/MongoLegacyReplicaset.html +2 -2
  37. data/doc/SDM/MongoReplicaSet.html +2 -2
  38. data/doc/SDM/Mysql.html +2 -2
  39. data/doc/SDM/NodeCreateResponse.html +2 -2
  40. data/doc/SDM/NodeDeleteResponse.html +2 -2
  41. data/doc/SDM/NodeGetResponse.html +2 -2
  42. data/doc/SDM/NodeUpdateResponse.html +2 -2
  43. data/doc/SDM/Oracle.html +2 -2
  44. data/doc/SDM/Plumbing.html +602 -420
  45. data/doc/SDM/Postgres.html +2 -2
  46. data/doc/SDM/Presto.html +2 -2
  47. data/doc/SDM/RDP.html +2 -2
  48. data/doc/SDM/Redis.html +2 -2
  49. data/doc/SDM/Redshift.html +2 -2
  50. data/doc/SDM/Relay.html +2 -2
  51. data/doc/SDM/ResourceCreateResponse.html +2 -2
  52. data/doc/SDM/ResourceDeleteResponse.html +2 -2
  53. data/doc/SDM/ResourceGetResponse.html +2 -2
  54. data/doc/SDM/ResourceUpdateResponse.html +2 -2
  55. data/doc/SDM/Role.html +2 -2
  56. data/doc/SDM/RoleAttachment.html +2 -2
  57. data/doc/SDM/RoleAttachmentCreateResponse.html +2 -2
  58. data/doc/SDM/RoleAttachmentDeleteResponse.html +2 -2
  59. data/doc/SDM/RoleAttachmentGetResponse.html +2 -2
  60. data/doc/SDM/RoleCreateResponse.html +2 -2
  61. data/doc/SDM/RoleDeleteResponse.html +2 -2
  62. data/doc/SDM/RoleGetResponse.html +2 -2
  63. data/doc/SDM/RoleGrant.html +2 -2
  64. data/doc/SDM/RoleGrantCreateResponse.html +2 -2
  65. data/doc/SDM/RoleGrantDeleteResponse.html +2 -2
  66. data/doc/SDM/RoleGrantGetResponse.html +2 -2
  67. data/doc/SDM/RoleUpdateResponse.html +2 -2
  68. data/doc/SDM/SQLServer.html +2 -2
  69. data/doc/SDM/SSH.html +2 -2
  70. data/doc/SDM/SSHCert.html +2 -2
  71. data/doc/SDM/SecretStoreCreateResponse.html +2 -2
  72. data/doc/SDM/SecretStoreDeleteResponse.html +2 -2
  73. data/doc/SDM/SecretStoreGetResponse.html +2 -2
  74. data/doc/SDM/SecretStoreUpdateResponse.html +2 -2
  75. data/doc/SDM/Snowflake.html +2 -2
  76. data/doc/SDM/Sybase.html +2 -2
  77. data/doc/SDM/SybaseIQ.html +2 -2
  78. data/doc/SDM/Teradata.html +2 -2
  79. data/doc/SDM/VaultTLSStore.html +2 -2
  80. data/doc/SDM/VaultTokenStore.html +2 -2
  81. data/doc/V1.html +60 -0
  82. data/doc/V1/DemoProvisioningRequests.html +113 -0
  83. data/doc/V1/DemoProvisioningRequests/Service.html +119 -0
  84. data/doc/created.rid +46 -43
  85. data/doc/index.html +6 -0
  86. data/doc/js/search_index.js +1 -1
  87. data/doc/js/search_index.js.gz +0 -0
  88. data/doc/lib/version.html +1 -1
  89. data/doc/table_of_contents.html +366 -321
  90. data/lib/grpc/demo_provisioning_requests_pb.rb +93 -0
  91. data/lib/grpc/demo_provisioning_requests_services_pb.rb +49 -0
  92. data/lib/grpc/drivers_pb.rb +13 -0
  93. data/lib/grpc/plumbing.rb +198 -140
  94. data/lib/grpc/secret_store_healths_pb.rb +3 -1
  95. data/lib/grpc/secret_store_types_pb.rb +60 -0
  96. data/lib/grpc/secret_stores_pb.rb +1 -33
  97. data/lib/models/porcelain.rb +204 -135
  98. data/lib/version +1 -1
  99. data/lib/version.rb +1 -1
  100. metadata +8 -2
@@ -42,10 +42,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
42
42
  add_message "v1.SecretStoreHealth" do
43
43
  optional :secret_store_id, :string, 1
44
44
  optional :node_id, :string, 2
45
- optional :detail, :string, 3
46
45
  optional :status, :string, 4
47
46
  optional :changed_at, :message, 6, "google.protobuf.Timestamp"
48
47
  optional :checked_at, :message, 7, "google.protobuf.Timestamp"
48
+ optional :error, :string, 8
49
+ optional :reachability, :string, 9
50
+ repeated :flags, :string, 10
49
51
  end
50
52
  end
51
53
  end
@@ -0,0 +1,60 @@
1
+ # Copyright 2020 StrongDM Inc
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
16
+ # source: secret_store_types.proto
17
+
18
+ require "google/protobuf"
19
+
20
+ require "options_pb"
21
+ require "tags_pb"
22
+ Google::Protobuf::DescriptorPool.generated_pool.build do
23
+ add_file("secret_store_types.proto", :syntax => :proto3) do
24
+ add_message "v1.SecretStore" do
25
+ oneof :secret_store do
26
+ optional :aws, :message, 3, "v1.AWSStore"
27
+ optional :vault_tls, :message, 1, "v1.VaultTLSStore"
28
+ optional :vault_token, :message, 2, "v1.VaultTokenStore"
29
+ end
30
+ end
31
+ add_message "v1.AWSStore" do
32
+ optional :id, :string, 1
33
+ optional :name, :string, 2
34
+ optional :region, :string, 3
35
+ optional :tags, :message, 4, "v1.Tags"
36
+ end
37
+ add_message "v1.VaultTLSStore" do
38
+ optional :id, :string, 1
39
+ optional :name, :string, 2
40
+ optional :server_address, :string, 3
41
+ optional :CA_cert_path, :string, 4
42
+ optional :client_cert_path, :string, 5
43
+ optional :client_key_path, :string, 6
44
+ optional :tags, :message, 7, "v1.Tags"
45
+ end
46
+ add_message "v1.VaultTokenStore" do
47
+ optional :id, :string, 1
48
+ optional :name, :string, 2
49
+ optional :server_address, :string, 3
50
+ optional :tags, :message, 4, "v1.Tags"
51
+ end
52
+ end
53
+ end
54
+
55
+ module V1
56
+ SecretStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SecretStore").msgclass
57
+ AWSStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AWSStore").msgclass
58
+ VaultTLSStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.VaultTLSStore").msgclass
59
+ VaultTokenStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.VaultTokenStore").msgclass
60
+ end
@@ -19,7 +19,7 @@ require "google/protobuf"
19
19
 
20
20
  require "options_pb"
21
21
  require "spec_pb"
22
- require "tags_pb"
22
+ require "secret_store_types_pb"
23
23
  Google::Protobuf::DescriptorPool.generated_pool.build do
24
24
  add_file("secret_stores.proto", :syntax => :proto3) do
25
25
  add_message "v1.SecretStoreCreateRequest" do
@@ -67,34 +67,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
67
67
  repeated :secret_stores, :message, 2, "v1.SecretStore"
68
68
  optional :rate_limit, :message, 3, "v1.RateLimitMetadata"
69
69
  end
70
- add_message "v1.SecretStore" do
71
- oneof :secret_store do
72
- optional :vault_tls, :message, 1, "v1.VaultTLSStore"
73
- optional :vault_token, :message, 2, "v1.VaultTokenStore"
74
- optional :aws, :message, 3, "v1.AWSStore"
75
- end
76
- end
77
- add_message "v1.VaultTokenStore" do
78
- optional :id, :string, 1
79
- optional :name, :string, 2
80
- optional :server_address, :string, 3
81
- optional :tags, :message, 4, "v1.Tags"
82
- end
83
- add_message "v1.VaultTLSStore" do
84
- optional :id, :string, 1
85
- optional :name, :string, 2
86
- optional :server_address, :string, 3
87
- optional :CA_cert_path, :string, 4
88
- optional :client_cert_path, :string, 5
89
- optional :client_key_path, :string, 6
90
- optional :tags, :message, 7, "v1.Tags"
91
- end
92
- add_message "v1.AWSStore" do
93
- optional :id, :string, 1
94
- optional :name, :string, 2
95
- optional :region, :string, 3
96
- optional :tags, :message, 4, "v1.Tags"
97
- end
98
70
  end
99
71
  end
100
72
 
@@ -109,8 +81,4 @@ module V1
109
81
  SecretStoreDeleteResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SecretStoreDeleteResponse").msgclass
110
82
  SecretStoreListRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SecretStoreListRequest").msgclass
111
83
  SecretStoreListResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SecretStoreListResponse").msgclass
112
- SecretStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SecretStore").msgclass
113
- VaultTokenStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.VaultTokenStore").msgclass
114
- VaultTLSStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.VaultTLSStore").msgclass
115
- AWSStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AWSStore").msgclass
116
84
  end
@@ -732,6 +732,75 @@ module SDM
732
732
  end
733
733
  end
734
734
 
735
+ class AWS
736
+ # Unique identifier of the Resource.
737
+ attr_accessor :id
738
+ # Unique human-readable name of the Resource.
739
+ attr_accessor :name
740
+ # True if the datasource is reachable and the credentials are valid.
741
+ attr_accessor :healthy
742
+ # Tags is a map of key, value pairs.
743
+ attr_accessor :tags
744
+ # ID of the secret store containing credentials for this resource, if any.
745
+ attr_accessor :secret_store_id
746
+
747
+ attr_accessor :access_key
748
+
749
+ attr_accessor :secret_access_key
750
+
751
+ attr_accessor :healthcheck_region
752
+
753
+ attr_accessor :role_arn
754
+
755
+ def initialize(
756
+ id: nil,
757
+ name: nil,
758
+ healthy: nil,
759
+ tags: nil,
760
+ secret_store_id: nil,
761
+ access_key: nil,
762
+ secret_access_key: nil,
763
+ healthcheck_region: nil,
764
+ role_arn: nil
765
+ )
766
+ if id != nil
767
+ @id = id
768
+ end
769
+ if name != nil
770
+ @name = name
771
+ end
772
+ if healthy != nil
773
+ @healthy = healthy
774
+ end
775
+ if tags != nil
776
+ @tags = tags
777
+ end
778
+ if secret_store_id != nil
779
+ @secret_store_id = secret_store_id
780
+ end
781
+ if access_key != nil
782
+ @access_key = access_key
783
+ end
784
+ if secret_access_key != nil
785
+ @secret_access_key = secret_access_key
786
+ end
787
+ if healthcheck_region != nil
788
+ @healthcheck_region = healthcheck_region
789
+ end
790
+ if role_arn != nil
791
+ @role_arn = role_arn
792
+ end
793
+ end
794
+
795
+ def to_json(options = {})
796
+ hash = {}
797
+ self.instance_variables.each do |var|
798
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
799
+ end
800
+ hash.to_json
801
+ end
802
+ end
803
+
735
804
  class BigQuery
736
805
  # Unique identifier of the Resource.
737
806
  attr_accessor :id
@@ -5324,6 +5393,141 @@ module SDM
5324
5393
  end
5325
5394
  end
5326
5395
 
5396
+ class AWSStore
5397
+ # Unique identifier of the SecretStore.
5398
+ attr_accessor :id
5399
+ # Unique human-readable name of the SecretStore.
5400
+ attr_accessor :name
5401
+
5402
+ attr_accessor :region
5403
+ # Tags is a map of key, value pairs.
5404
+ attr_accessor :tags
5405
+
5406
+ def initialize(
5407
+ id: nil,
5408
+ name: nil,
5409
+ region: nil,
5410
+ tags: nil
5411
+ )
5412
+ if id != nil
5413
+ @id = id
5414
+ end
5415
+ if name != nil
5416
+ @name = name
5417
+ end
5418
+ if region != nil
5419
+ @region = region
5420
+ end
5421
+ if tags != nil
5422
+ @tags = tags
5423
+ end
5424
+ end
5425
+
5426
+ def to_json(options = {})
5427
+ hash = {}
5428
+ self.instance_variables.each do |var|
5429
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5430
+ end
5431
+ hash.to_json
5432
+ end
5433
+ end
5434
+
5435
+ class VaultTLSStore
5436
+ # Unique identifier of the SecretStore.
5437
+ attr_accessor :id
5438
+ # Unique human-readable name of the SecretStore.
5439
+ attr_accessor :name
5440
+
5441
+ attr_accessor :server_address
5442
+
5443
+ attr_accessor :ca_cert_path
5444
+
5445
+ attr_accessor :client_cert_path
5446
+
5447
+ attr_accessor :client_key_path
5448
+ # Tags is a map of key, value pairs.
5449
+ attr_accessor :tags
5450
+
5451
+ def initialize(
5452
+ id: nil,
5453
+ name: nil,
5454
+ server_address: nil,
5455
+ ca_cert_path: nil,
5456
+ client_cert_path: nil,
5457
+ client_key_path: nil,
5458
+ tags: nil
5459
+ )
5460
+ if id != nil
5461
+ @id = id
5462
+ end
5463
+ if name != nil
5464
+ @name = name
5465
+ end
5466
+ if server_address != nil
5467
+ @server_address = server_address
5468
+ end
5469
+ if ca_cert_path != nil
5470
+ @ca_cert_path = ca_cert_path
5471
+ end
5472
+ if client_cert_path != nil
5473
+ @client_cert_path = client_cert_path
5474
+ end
5475
+ if client_key_path != nil
5476
+ @client_key_path = client_key_path
5477
+ end
5478
+ if tags != nil
5479
+ @tags = tags
5480
+ end
5481
+ end
5482
+
5483
+ def to_json(options = {})
5484
+ hash = {}
5485
+ self.instance_variables.each do |var|
5486
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5487
+ end
5488
+ hash.to_json
5489
+ end
5490
+ end
5491
+
5492
+ class VaultTokenStore
5493
+ # Unique identifier of the SecretStore.
5494
+ attr_accessor :id
5495
+ # Unique human-readable name of the SecretStore.
5496
+ attr_accessor :name
5497
+
5498
+ attr_accessor :server_address
5499
+ # Tags is a map of key, value pairs.
5500
+ attr_accessor :tags
5501
+
5502
+ def initialize(
5503
+ id: nil,
5504
+ name: nil,
5505
+ server_address: nil,
5506
+ tags: nil
5507
+ )
5508
+ if id != nil
5509
+ @id = id
5510
+ end
5511
+ if name != nil
5512
+ @name = name
5513
+ end
5514
+ if server_address != nil
5515
+ @server_address = server_address
5516
+ end
5517
+ if tags != nil
5518
+ @tags = tags
5519
+ end
5520
+ end
5521
+
5522
+ def to_json(options = {})
5523
+ hash = {}
5524
+ self.instance_variables.each do |var|
5525
+ hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5526
+ end
5527
+ hash.to_json
5528
+ end
5529
+ end
5530
+
5327
5531
  # SecretStoreCreateResponse reports how the SecretStores were created in the system.
5328
5532
  class SecretStoreCreateResponse
5329
5533
  # Reserved for future use.
@@ -5454,139 +5658,4 @@ module SDM
5454
5658
  hash.to_json
5455
5659
  end
5456
5660
  end
5457
-
5458
- class VaultTokenStore
5459
- # Unique identifier of the SecretStore.
5460
- attr_accessor :id
5461
- # Unique human-readable name of the SecretStore.
5462
- attr_accessor :name
5463
-
5464
- attr_accessor :server_address
5465
- # Tags is a map of key, value pairs.
5466
- attr_accessor :tags
5467
-
5468
- def initialize(
5469
- id: nil,
5470
- name: nil,
5471
- server_address: nil,
5472
- tags: nil
5473
- )
5474
- if id != nil
5475
- @id = id
5476
- end
5477
- if name != nil
5478
- @name = name
5479
- end
5480
- if server_address != nil
5481
- @server_address = server_address
5482
- end
5483
- if tags != nil
5484
- @tags = tags
5485
- end
5486
- end
5487
-
5488
- def to_json(options = {})
5489
- hash = {}
5490
- self.instance_variables.each do |var|
5491
- hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5492
- end
5493
- hash.to_json
5494
- end
5495
- end
5496
-
5497
- class VaultTLSStore
5498
- # Unique identifier of the SecretStore.
5499
- attr_accessor :id
5500
- # Unique human-readable name of the SecretStore.
5501
- attr_accessor :name
5502
-
5503
- attr_accessor :server_address
5504
-
5505
- attr_accessor :ca_cert_path
5506
-
5507
- attr_accessor :client_cert_path
5508
-
5509
- attr_accessor :client_key_path
5510
- # Tags is a map of key, value pairs.
5511
- attr_accessor :tags
5512
-
5513
- def initialize(
5514
- id: nil,
5515
- name: nil,
5516
- server_address: nil,
5517
- ca_cert_path: nil,
5518
- client_cert_path: nil,
5519
- client_key_path: nil,
5520
- tags: nil
5521
- )
5522
- if id != nil
5523
- @id = id
5524
- end
5525
- if name != nil
5526
- @name = name
5527
- end
5528
- if server_address != nil
5529
- @server_address = server_address
5530
- end
5531
- if ca_cert_path != nil
5532
- @ca_cert_path = ca_cert_path
5533
- end
5534
- if client_cert_path != nil
5535
- @client_cert_path = client_cert_path
5536
- end
5537
- if client_key_path != nil
5538
- @client_key_path = client_key_path
5539
- end
5540
- if tags != nil
5541
- @tags = tags
5542
- end
5543
- end
5544
-
5545
- def to_json(options = {})
5546
- hash = {}
5547
- self.instance_variables.each do |var|
5548
- hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5549
- end
5550
- hash.to_json
5551
- end
5552
- end
5553
-
5554
- class AWSStore
5555
- # Unique identifier of the SecretStore.
5556
- attr_accessor :id
5557
- # Unique human-readable name of the SecretStore.
5558
- attr_accessor :name
5559
-
5560
- attr_accessor :region
5561
- # Tags is a map of key, value pairs.
5562
- attr_accessor :tags
5563
-
5564
- def initialize(
5565
- id: nil,
5566
- name: nil,
5567
- region: nil,
5568
- tags: nil
5569
- )
5570
- if id != nil
5571
- @id = id
5572
- end
5573
- if name != nil
5574
- @name = name
5575
- end
5576
- if region != nil
5577
- @region = region
5578
- end
5579
- if tags != nil
5580
- @tags = tags
5581
- end
5582
- end
5583
-
5584
- def to_json(options = {})
5585
- hash = {}
5586
- self.instance_variables.each do |var|
5587
- hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
5588
- end
5589
- hash.to_json
5590
- end
5591
- end
5592
5661
  end