cyberark-conjur-cli icon indicating copy to clipboard operation
cyberark-conjur-cli copied to clipboard

Client should not depend on .conjurrc file

Open mbenita-Cyberark opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

When initializing a Client we can inject the url, account and root_ca file as parameters. if not exists it will take it from the conjurrc file placed in the root directory. This is not a desired behaviour as it could lead to different behaviours on different envs without the developer knowing about.

Describe the solution you would like

developer should also state thos three params in the client constructor. It will be better if we will expose another library called Conjur.Models which will expose our ConjurrcData object so the user could pass this instead of 3 parameters that will make his code ugly and hard to maintain

Describe alternatives you have considered

Additional context

Add any other context information about the feature request here.

mbenita-Cyberark avatar Apr 07 '21 14:04 mbenita-Cyberark