cyberark / conjur-api-dotnet

.NET client for the CyberArk Conjur API
Apache License 2.0
15 stars 11 forks source link

us: Add policy entity and load support for V5 #20

Closed DvirCyberArk closed 6 years ago

DvirCyberArk commented 6 years ago

What does this pull request do? Introducing Conjur policy entity to SDK and allow to call load policy to Conjur Server over REST

What background context can you provide? none

Where should the reviewer start? Maybe manual testing can be a good way to start this review process (uploading .yml file)

How should this be manually tested? Create policy yml file convert it to stream and load it using Client to Conjur EE - check UI if policy loaded correctly in structure and functionality.

Link to build in Jenkins (if appropriate) https://jenkins.conjur.net/view/Conjur%205.x/job/cyberark--conjur-api-dotnet/

Questions:

sashaCher commented 6 years ago

Regarding policy size I think that SDK doesn't need to deal with policy size. SDK here is only wrapper for REST so a customer will receive a proper response from Conjur and will reduce policy size by himself.

sashaCher commented 6 years ago

Regarding policy timeout May be we need to add an additional call with timeout parameter. WDYT?

sashaCher commented 6 years ago

Are you supporting concurrency? No

Why no? The Client and Policy objects are both thread safe from concurrent policy loading point of view. The only issue is Conjur itself with policy version issue. So different policies can be loaded simultaneously. For the same policy, once we will have 409 response we can implement retry mechanism for loading.