strongdm 1.0.34 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (253) hide show
  1. checksums.yaml +4 -4
  2. data/.git/ORIG_HEAD +1 -1
  3. data/.git/config +0 -3
  4. data/.git/index +0 -0
  5. data/.git/logs/HEAD +3 -4
  6. data/.git/logs/refs/heads/master +2 -2
  7. data/.git/logs/refs/remotes/origin/HEAD +1 -1
  8. data/.git/objects/pack/pack-ae9c31d15ecb69c51d515e053295673b38840788.idx +0 -0
  9. data/.git/objects/pack/{pack-802051e74a1de9449b3bc69f695b0b5e55e448e5.pack → pack-ae9c31d15ecb69c51d515e053295673b38840788.pack} +0 -0
  10. data/.git/packed-refs +5 -2
  11. data/.git/refs/heads/master +1 -1
  12. data/.yardopts +9 -0
  13. data/README.md +18 -6
  14. data/lib/errors/errors.rb +1 -1
  15. data/lib/grpc/account_attachments_services_pb.rb +1 -1
  16. data/lib/grpc/accounts_services_pb.rb +2 -2
  17. data/lib/grpc/drivers_pb.rb +41 -0
  18. data/lib/grpc/nodes_services_pb.rb +1 -1
  19. data/lib/grpc/options_pb.rb +35 -41
  20. data/lib/grpc/plumbing.rb +1235 -982
  21. data/lib/grpc/resources_services_pb.rb +3 -1
  22. data/lib/grpc/role_attachments_services_pb.rb +10 -0
  23. data/lib/grpc/role_grants_services_pb.rb +10 -0
  24. data/lib/grpc/roles_services_pb.rb +4 -6
  25. data/lib/grpc/secret_store_types_pb.rb +17 -0
  26. data/lib/grpc/secret_stores_services_pb.rb +1 -1
  27. data/lib/models/porcelain.rb +1255 -2961
  28. data/lib/strongdm.rb +53 -16
  29. data/lib/svc.rb +163 -14
  30. data/lib/version +1 -1
  31. data/lib/version.rb +1 -1
  32. metadata +5 -224
  33. data/.git/FETCH_HEAD +0 -2
  34. data/.git/logs/refs/heads/development +0 -1
  35. data/.git/objects/pack/pack-802051e74a1de9449b3bc69f695b0b5e55e448e5.idx +0 -0
  36. data/.git/refs/heads/development +0 -1
  37. data/doc/LICENSE.html +0 -187
  38. data/doc/Object.html +0 -114
  39. data/doc/README_md.html +0 -146
  40. data/doc/SDM/AKS.html +0 -352
  41. data/doc/SDM/AKSBasicAuth.html +0 -337
  42. data/doc/SDM/AKSServiceAccount.html +0 -322
  43. data/doc/SDM/AKSServiceAccountUserImpersonation.html +0 -322
  44. data/doc/SDM/AKSUserImpersonation.html +0 -352
  45. data/doc/SDM/AWS.html +0 -337
  46. data/doc/SDM/AWSStore.html +0 -232
  47. data/doc/SDM/AccountAttachment.html +0 -219
  48. data/doc/SDM/AccountAttachmentCreateResponse.html +0 -219
  49. data/doc/SDM/AccountAttachmentDeleteResponse.html +0 -204
  50. data/doc/SDM/AccountAttachmentGetResponse.html +0 -219
  51. data/doc/SDM/AccountAttachments.html +0 -354
  52. data/doc/SDM/AccountCreateResponse.html +0 -234
  53. data/doc/SDM/AccountDeleteResponse.html +0 -204
  54. data/doc/SDM/AccountGetResponse.html +0 -219
  55. data/doc/SDM/AccountGrant.html +0 -249
  56. data/doc/SDM/AccountGrantCreateResponse.html +0 -219
  57. data/doc/SDM/AccountGrantDeleteResponse.html +0 -204
  58. data/doc/SDM/AccountGrantGetResponse.html +0 -219
  59. data/doc/SDM/AccountGrants.html +0 -354
  60. data/doc/SDM/AccountUpdateResponse.html +0 -219
  61. data/doc/SDM/Accounts.html +0 -409
  62. data/doc/SDM/AlreadyExistsError.html +0 -140
  63. data/doc/SDM/AmazonEKS.html +0 -397
  64. data/doc/SDM/AmazonEKSUserImpersonation.html +0 -397
  65. data/doc/SDM/AmazonES.html +0 -367
  66. data/doc/SDM/AmazonMQAMQP091.html +0 -352
  67. data/doc/SDM/Athena.html +0 -367
  68. data/doc/SDM/AuroraMysql.html +0 -352
  69. data/doc/SDM/AuroraPostgres.html +0 -367
  70. data/doc/SDM/AuthenticationError.html +0 -140
  71. data/doc/SDM/Azure.html +0 -307
  72. data/doc/SDM/AzureCertificate.html +0 -307
  73. data/doc/SDM/AzurePostgres.html +0 -367
  74. data/doc/SDM/AzureStore.html +0 -232
  75. data/doc/SDM/BadRequestError.html +0 -140
  76. data/doc/SDM/BigQuery.html +0 -337
  77. data/doc/SDM/Cassandra.html +0 -352
  78. data/doc/SDM/Citus.html +0 -367
  79. data/doc/SDM/Client.html +0 -443
  80. data/doc/SDM/Clustrix.html +0 -352
  81. data/doc/SDM/Cockroach.html +0 -367
  82. data/doc/SDM/ControlPanel.html +0 -248
  83. data/doc/SDM/ControlPanelGetSSHCAPublicKeyResponse.html +0 -219
  84. data/doc/SDM/ControlPanelVerifyJWTResponse.html +0 -219
  85. data/doc/SDM/CreateResponseMetadata.html +0 -169
  86. data/doc/SDM/DB2LUW.html +0 -352
  87. data/doc/SDM/DB2i.html +0 -352
  88. data/doc/SDM/DeadlineExceededError.html +0 -140
  89. data/doc/SDM/DeleteResponseMetadata.html +0 -169
  90. data/doc/SDM/DocumentDBHost.html +0 -352
  91. data/doc/SDM/DocumentDBReplicaSet.html +0 -367
  92. data/doc/SDM/Druid.html +0 -337
  93. data/doc/SDM/DynamoDB.html +0 -367
  94. data/doc/SDM/Elastic.html +0 -352
  95. data/doc/SDM/ElasticacheRedis.html +0 -337
  96. data/doc/SDM/GCP.html +0 -292
  97. data/doc/SDM/Gateway.html +0 -279
  98. data/doc/SDM/GetResponseMetadata.html +0 -169
  99. data/doc/SDM/GoogleGKE.html +0 -322
  100. data/doc/SDM/GoogleGKEUserImpersonation.html +0 -322
  101. data/doc/SDM/Greenplum.html +0 -367
  102. data/doc/SDM/HTTPAuth.html +0 -352
  103. data/doc/SDM/HTTPBasicAuth.html +0 -367
  104. data/doc/SDM/HTTPNoAuth.html +0 -337
  105. data/doc/SDM/InternalError.html +0 -140
  106. data/doc/SDM/Kubernetes.html +0 -352
  107. data/doc/SDM/KubernetesBasicAuth.html +0 -337
  108. data/doc/SDM/KubernetesServiceAccount.html +0 -322
  109. data/doc/SDM/KubernetesServiceAccountUserImpersonation.html +0 -322
  110. data/doc/SDM/KubernetesUserImpersonation.html +0 -352
  111. data/doc/SDM/Maria.html +0 -352
  112. data/doc/SDM/Memcached.html +0 -307
  113. data/doc/SDM/Memsql.html +0 -352
  114. data/doc/SDM/MongoHost.html +0 -367
  115. data/doc/SDM/MongoLegacyHost.html +0 -382
  116. data/doc/SDM/MongoLegacyReplicaset.html +0 -397
  117. data/doc/SDM/MongoReplicaSet.html +0 -397
  118. data/doc/SDM/MongoShardedCluster.html +0 -352
  119. data/doc/SDM/Mysql.html +0 -352
  120. data/doc/SDM/Neptune.html +0 -307
  121. data/doc/SDM/NeptuneIAM.html +0 -382
  122. data/doc/SDM/NodeCreateResponse.html +0 -234
  123. data/doc/SDM/NodeDeleteResponse.html +0 -204
  124. data/doc/SDM/NodeGetResponse.html +0 -219
  125. data/doc/SDM/NodeUpdateResponse.html +0 -219
  126. data/doc/SDM/Nodes.html +0 -409
  127. data/doc/SDM/NotFoundError.html +0 -140
  128. data/doc/SDM/Oracle.html +0 -367
  129. data/doc/SDM/PermissionError.html +0 -140
  130. data/doc/SDM/Plumbing.html +0 -16086
  131. data/doc/SDM/Postgres.html +0 -367
  132. data/doc/SDM/Presto.html +0 -367
  133. data/doc/SDM/RDP.html +0 -352
  134. data/doc/SDM/RPCError.html +0 -157
  135. data/doc/SDM/RabbitMQAMQP091.html +0 -352
  136. data/doc/SDM/RateLimitError.html +0 -157
  137. data/doc/SDM/RateLimitMetadata.html +0 -234
  138. data/doc/SDM/RawTCP.html +0 -307
  139. data/doc/SDM/Redis.html +0 -322
  140. data/doc/SDM/Redshift.html +0 -367
  141. data/doc/SDM/Relay.html +0 -249
  142. data/doc/SDM/ResourceCreateResponse.html +0 -219
  143. data/doc/SDM/ResourceDeleteResponse.html +0 -204
  144. data/doc/SDM/ResourceGetResponse.html +0 -219
  145. data/doc/SDM/ResourceUpdateResponse.html +0 -219
  146. data/doc/SDM/Resources.html +0 -456
  147. data/doc/SDM/Role.html +0 -249
  148. data/doc/SDM/RoleAttachment.html +0 -219
  149. data/doc/SDM/RoleAttachmentCreateResponse.html +0 -219
  150. data/doc/SDM/RoleAttachmentDeleteResponse.html +0 -204
  151. data/doc/SDM/RoleAttachmentGetResponse.html +0 -219
  152. data/doc/SDM/RoleAttachments.html +0 -354
  153. data/doc/SDM/RoleCreateResponse.html +0 -219
  154. data/doc/SDM/RoleDeleteResponse.html +0 -204
  155. data/doc/SDM/RoleGetResponse.html +0 -219
  156. data/doc/SDM/RoleGrant.html +0 -219
  157. data/doc/SDM/RoleGrantCreateResponse.html +0 -219
  158. data/doc/SDM/RoleGrantDeleteResponse.html +0 -204
  159. data/doc/SDM/RoleGrantGetResponse.html +0 -219
  160. data/doc/SDM/RoleGrants.html +0 -354
  161. data/doc/SDM/RoleUpdateResponse.html +0 -219
  162. data/doc/SDM/Roles.html +0 -403
  163. data/doc/SDM/SQLServer.html +0 -382
  164. data/doc/SDM/SSH.html +0 -352
  165. data/doc/SDM/SSHCert.html +0 -337
  166. data/doc/SDM/SSHCustomerKey.html +0 -352
  167. data/doc/SDM/SecretStoreCreateResponse.html +0 -219
  168. data/doc/SDM/SecretStoreDeleteResponse.html +0 -204
  169. data/doc/SDM/SecretStoreGetResponse.html +0 -219
  170. data/doc/SDM/SecretStoreUpdateResponse.html +0 -219
  171. data/doc/SDM/SecretStores.html +0 -403
  172. data/doc/SDM/Service.html +0 -234
  173. data/doc/SDM/SingleStore.html +0 -352
  174. data/doc/SDM/Snowflake.html +0 -352
  175. data/doc/SDM/Sybase.html +0 -337
  176. data/doc/SDM/SybaseIQ.html +0 -337
  177. data/doc/SDM/Tag.html +0 -202
  178. data/doc/SDM/Teradata.html +0 -337
  179. data/doc/SDM/UpdateResponseMetadata.html +0 -169
  180. data/doc/SDM/User.html +0 -264
  181. data/doc/SDM/VaultTLSStore.html +0 -292
  182. data/doc/SDM/VaultTokenStore.html +0 -247
  183. data/doc/SDM.html +0 -122
  184. data/doc/V1/AccountAttachments/Service.html +0 -107
  185. data/doc/V1/AccountAttachments.html +0 -100
  186. data/doc/V1/AccountGrants/Service.html +0 -107
  187. data/doc/V1/AccountGrants.html +0 -100
  188. data/doc/V1/Accounts/Service.html +0 -112
  189. data/doc/V1/Accounts.html +0 -100
  190. data/doc/V1/ControlPanel/Service.html +0 -107
  191. data/doc/V1/ControlPanel.html +0 -100
  192. data/doc/V1/Nodes/Service.html +0 -112
  193. data/doc/V1/Nodes.html +0 -100
  194. data/doc/V1/Resources/Service.html +0 -105
  195. data/doc/V1/Resources.html +0 -100
  196. data/doc/V1/RoleAttachments/Service.html +0 -107
  197. data/doc/V1/RoleAttachments.html +0 -100
  198. data/doc/V1/RoleGrants/Service.html +0 -107
  199. data/doc/V1/RoleGrants.html +0 -100
  200. data/doc/V1/Roles/Service.html +0 -107
  201. data/doc/V1/Roles.html +0 -100
  202. data/doc/V1/SecretStores/Service.html +0 -107
  203. data/doc/V1/SecretStores.html +0 -100
  204. data/doc/V1/Tags.html +0 -100
  205. data/doc/V1.html +0 -506
  206. data/doc/created.rid +0 -37
  207. data/doc/css/fonts.css +0 -167
  208. data/doc/css/rdoc.css +0 -639
  209. data/doc/examples/Gemfile.html +0 -89
  210. data/doc/fonts/Lato-Light.ttf +0 -0
  211. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  212. data/doc/fonts/Lato-Regular.ttf +0 -0
  213. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  214. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  215. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  216. data/doc/images/add.png +0 -0
  217. data/doc/images/arrow_up.png +0 -0
  218. data/doc/images/brick.png +0 -0
  219. data/doc/images/brick_link.png +0 -0
  220. data/doc/images/bug.png +0 -0
  221. data/doc/images/bullet_black.png +0 -0
  222. data/doc/images/bullet_toggle_minus.png +0 -0
  223. data/doc/images/bullet_toggle_plus.png +0 -0
  224. data/doc/images/date.png +0 -0
  225. data/doc/images/delete.png +0 -0
  226. data/doc/images/find.png +0 -0
  227. data/doc/images/loadingAnimation.gif +0 -0
  228. data/doc/images/macFFBgHack.png +0 -0
  229. data/doc/images/package.png +0 -0
  230. data/doc/images/page_green.png +0 -0
  231. data/doc/images/page_white_text.png +0 -0
  232. data/doc/images/page_white_width.png +0 -0
  233. data/doc/images/plugin.png +0 -0
  234. data/doc/images/ruby.png +0 -0
  235. data/doc/images/tag_blue.png +0 -0
  236. data/doc/images/tag_green.png +0 -0
  237. data/doc/images/transparent.png +0 -0
  238. data/doc/images/wrench.png +0 -0
  239. data/doc/images/wrench_orange.png +0 -0
  240. data/doc/images/zoom.png +0 -0
  241. data/doc/index.html +0 -257
  242. data/doc/js/darkfish.js +0 -84
  243. data/doc/js/navigation.js +0 -105
  244. data/doc/js/navigation.js.gz +0 -0
  245. data/doc/js/search.js +0 -110
  246. data/doc/js/search_index.js +0 -1
  247. data/doc/js/search_index.js.gz +0 -0
  248. data/doc/js/searcher.js +0 -229
  249. data/doc/js/searcher.js.gz +0 -0
  250. data/doc/lib/version.html +0 -92
  251. data/doc/table_of_contents.html +0 -4680
  252. data/examples/Gemfile +0 -3
  253. data/examples/listUsers.rb +0 -21
@@ -20,6 +20,8 @@ require "resources_pb"
20
20
 
21
21
  module V1
22
22
  module Resources
23
+ # Resources are databases, servers, clusters, websites, or clouds that strongDM
24
+ # delegates access to.
23
25
  class Service
24
26
  include ::GRPC::GenericService
25
27
 
@@ -33,7 +35,7 @@ module V1
33
35
  rpc :Create, ::V1::ResourceCreateRequest, ::V1::ResourceCreateResponse
34
36
  # Get reads one Resource by ID.
35
37
  rpc :Get, ::V1::ResourceGetRequest, ::V1::ResourceGetResponse
36
- # Update patches a Resource by ID.
38
+ # Update replaces all the fields of a Resource by ID.
37
39
  rpc :Update, ::V1::ResourceUpdateRequest, ::V1::ResourceUpdateResponse
38
40
  # Delete removes a Resource by ID.
39
41
  rpc :Delete, ::V1::ResourceDeleteRequest, ::V1::ResourceDeleteResponse
@@ -24,6 +24,8 @@ module V1
24
24
  # that make up those composite roles. When a composite role is attached to another
25
25
  # role, the permissions granted to members of the composite role are augmented to
26
26
  # include the permissions granted to members of the attached role.
27
+ #
28
+ # Deprecated: use multi-role via AccountAttachments instead.
27
29
  class Service
28
30
  include ::GRPC::GenericService
29
31
 
@@ -32,12 +34,20 @@ module V1
32
34
  self.service_name = "v1.RoleAttachments"
33
35
 
34
36
  # Create registers a new RoleAttachment.
37
+ #
38
+ # Deprecated: use multi-role via AccountAttachments instead.
35
39
  rpc :Create, ::V1::RoleAttachmentCreateRequest, ::V1::RoleAttachmentCreateResponse
36
40
  # Get reads one RoleAttachment by ID.
41
+ #
42
+ # Deprecated: use multi-role via AccountAttachments instead.
37
43
  rpc :Get, ::V1::RoleAttachmentGetRequest, ::V1::RoleAttachmentGetResponse
38
44
  # Delete removes a RoleAttachment by ID.
45
+ #
46
+ # Deprecated: use multi-role via AccountAttachments instead.
39
47
  rpc :Delete, ::V1::RoleAttachmentDeleteRequest, ::V1::RoleAttachmentDeleteResponse
40
48
  # List gets a list of RoleAttachments matching a given set of criteria.
49
+ #
50
+ # Deprecated: use multi-role via AccountAttachments instead.
41
51
  rpc :List, ::V1::RoleAttachmentListRequest, ::V1::RoleAttachmentListResponse
42
52
  end
43
53
 
@@ -24,6 +24,8 @@ module V1
24
24
  # that make up those composite roles. When a composite role is attached to another
25
25
  # role, the permissions granted to members of the composite role are augmented to
26
26
  # include the permissions granted to members of the attached role.
27
+ #
28
+ # Deprecated: use Role access rules instead.
27
29
  class Service
28
30
  include ::GRPC::GenericService
29
31
 
@@ -32,12 +34,20 @@ module V1
32
34
  self.service_name = "v1.RoleGrants"
33
35
 
34
36
  # Create registers a new RoleGrant.
37
+ #
38
+ # Deprecated: use Role access rules instead.
35
39
  rpc :Create, ::V1::RoleGrantCreateRequest, ::V1::RoleGrantCreateResponse
36
40
  # Get reads one RoleGrant by ID.
41
+ #
42
+ # Deprecated: use Role access rules instead.
37
43
  rpc :Get, ::V1::RoleGrantGetRequest, ::V1::RoleGrantGetResponse
38
44
  # Delete removes a RoleGrant by ID.
45
+ #
46
+ # Deprecated: use Role access rules instead.
39
47
  rpc :Delete, ::V1::RoleGrantDeleteRequest, ::V1::RoleGrantDeleteResponse
40
48
  # List gets a list of RoleGrants matching a given set of criteria.
49
+ #
50
+ # Deprecated: use Role access rules instead.
41
51
  rpc :List, ::V1::RoleGrantListRequest, ::V1::RoleGrantListResponse
42
52
  end
43
53
 
@@ -20,11 +20,9 @@ require "roles_pb"
20
20
 
21
21
  module V1
22
22
  module Roles
23
- # Roles are tools for controlling user access to resources. Each Role holds a
24
- # list of resources which they grant access to. Composite roles are a special
25
- # type of Role which have no resource associations of their own, but instead
26
- # grant access to the combined resources associated with a set of child roles.
27
- # Each user can be a member of one Role or composite role.
23
+ # A Role has a list of access rules which determine which Resources the members
24
+ # of the Role have access to. An Account can be a member of multiple Roles via
25
+ # AccountAttachments.
28
26
  class Service
29
27
  include ::GRPC::GenericService
30
28
 
@@ -36,7 +34,7 @@ module V1
36
34
  rpc :Create, ::V1::RoleCreateRequest, ::V1::RoleCreateResponse
37
35
  # Get reads one Role by ID.
38
36
  rpc :Get, ::V1::RoleGetRequest, ::V1::RoleGetResponse
39
- # Update patches a Role by ID.
37
+ # Update replaces all the fields of a Role by ID.
40
38
  rpc :Update, ::V1::RoleUpdateRequest, ::V1::RoleUpdateResponse
41
39
  # Delete removes a Role by ID.
42
40
  rpc :Delete, ::V1::RoleDeleteRequest, ::V1::RoleDeleteResponse
@@ -25,6 +25,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
25
25
  oneof :secret_store do
26
26
  optional :aws, :message, 3, "v1.AWSStore"
27
27
  optional :azure, :message, 101, "v1.AzureStore"
28
+ optional :gcp, :message, 201, "v1.GCPStore"
29
+ optional :vault_app_role, :message, 4, "v1.VaultAppRoleStore"
28
30
  optional :vault_tls, :message, 1, "v1.VaultTLSStore"
29
31
  optional :vault_token, :message, 2, "v1.VaultTokenStore"
30
32
  end
@@ -41,6 +43,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
41
43
  optional :vault_uri, :string, 3
42
44
  optional :tags, :message, 32771, "v1.Tags"
43
45
  end
46
+ add_message "v1.GCPStore" do
47
+ optional :id, :string, 1
48
+ optional :name, :string, 2
49
+ optional :projectID, :string, 3
50
+ optional :tags, :message, 32771, "v1.Tags"
51
+ end
52
+ add_message "v1.VaultAppRoleStore" do
53
+ optional :id, :string, 1
54
+ optional :name, :string, 2
55
+ optional :namespace, :string, 5
56
+ optional :server_address, :string, 3
57
+ optional :tags, :message, 8, "v1.Tags"
58
+ end
44
59
  add_message "v1.VaultTLSStore" do
45
60
  optional :id, :string, 1
46
61
  optional :name, :string, 2
@@ -65,6 +80,8 @@ module V1
65
80
  SecretStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.SecretStore").msgclass
66
81
  AWSStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AWSStore").msgclass
67
82
  AzureStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.AzureStore").msgclass
83
+ GCPStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.GCPStore").msgclass
84
+ VaultAppRoleStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.VaultAppRoleStore").msgclass
68
85
  VaultTLSStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.VaultTLSStore").msgclass
69
86
  VaultTokenStore = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("v1.VaultTokenStore").msgclass
70
87
  end
@@ -31,7 +31,7 @@ module V1
31
31
  rpc :Create, ::V1::SecretStoreCreateRequest, ::V1::SecretStoreCreateResponse
32
32
  # Get reads one SecretStore by ID.
33
33
  rpc :Get, ::V1::SecretStoreGetRequest, ::V1::SecretStoreGetResponse
34
- # Update patches a SecretStore by ID.
34
+ # Update replaces all the fields of a SecretStore by ID.
35
35
  rpc :Update, ::V1::SecretStoreUpdateRequest, ::V1::SecretStoreUpdateResponse
36
36
  # Delete removes a SecretStore by ID.
37
37
  rpc :Delete, ::V1::SecretStoreDeleteRequest, ::V1::SecretStoreDeleteResponse