Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #161 adds stdin support for policy load #181

Merged

Conversation

infamousjoeg
Copy link
Owner

Fixes #161 by detecting if policy is being provided via stdin. If stdin is not detected, a file is assumed to be loaded. If file path is not present, error is returned.

Tested successfully using:

cybr conjur append-policy -b root << END_POLICY
- !host foo
END_POLICY

@infamousjoeg infamousjoeg added the enhancement New feature or request label Nov 23, 2022
@infamousjoeg infamousjoeg self-assigned this Nov 23, 2022
@infamousjoeg infamousjoeg linked an issue Nov 23, 2022 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Nov 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@infamousjoeg infamousjoeg merged commit 7a3c77a into v0.1.14-beta Nov 23, 2022
@infamousjoeg infamousjoeg deleted the 161-enable-cybr-conjur-policy-to-read-from-stdin branch November 23, 2022 18:19
infamousjoeg added a commit that referenced this pull request Jan 23, 2023
* Fixes #161 adds stdin support for policy load (#181)

* Fixes #161 adds stdin support for policy load

* resolve code smell

* Fixes #182 env vars, authn-iam, and authn all working (#184)

* fix authn strategy logic

* allow no value in field

* if no cert provided, don't create cert pool

* allow variable for IgnoreSSLVerify

* Add local tests

* Added better error handling when client not created

* Add --password/-p to cybr conjur logon (#186)

* Bump version to v0.1.14-beta & generate docs

* update binaries and notarize MacOS packages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable "cybr conjur *-policy..." to read from stdin
1 participant