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

Update API to enable OIDC, Keychain, etc #108

Merged
merged 2 commits into from
Mar 23, 2023
Merged

Update API to enable OIDC, Keychain, etc #108

merged 2 commits into from
Mar 23, 2023

Conversation

szh
Copy link
Contributor

@szh szh commented Jan 26, 2023

Desired Outcome

Update conjur-api-go dependency to enable OIDC authentication and other new features in v0.11.0.

This fixes #54 by adding native platform keystore support.

Remove support for Conjur v4 (fixes #72)

Implemented Changes

  • Simply updated the conjur-api-go dependency to the latest version (v0.11.0)
  • Remove all support for Conjur v4
  • Updated documentation accordingly

Connected Issue/Story

Resolves #54 and #72

CyberArk internal issue ID: N/A

Changelog

  • The CHANGELOG has been updated, or
  • This PR does not include user-facing changes and doesn't require a
    CHANGELOG update

Test coverage

  • This PR includes new unit and integration tests to go with the code
    changes, or
  • The changes in this PR do not require tests

Documentation

  • Docs (e.g. READMEs) were updated in this PR
  • A follow-up issue to update official docs has been filed here: [insert issue ID]
  • This PR does not require updating any documentation

Behavior

  • This PR changes product behavior and has been reviewed by a PO, or
  • These changes are part of a larger initiative that will be reviewed later, or
  • No behavior was changed with this PR

Security

  • Security architect has reviewed the changes in this PR,
  • These changes are part of a larger initiative with a separate security review, or
  • There are no security aspects to these changes

@szh szh self-assigned this Jan 26, 2023
@szh szh force-pushed the udpate-api branch 6 times, most recently from be8197e to 27049e1 Compare March 10, 2023 17:50
@szh szh changed the title Update api Update API to enable OIDC, Keychain, etc Mar 10, 2023
@szh szh marked this pull request as ready for review March 15, 2023 21:03
@szh szh requested a review from a team as a code owner March 15, 2023 21:03
Copy link
Contributor

@doodlesbykumbi doodlesbykumbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments

Comment on lines +11 to +13
go install github.com/jstemmer/go-junit-report@latest && \
go install github.com/axw/gocov/gocov@latest && \
go install github.com/AlekSi/gocov-xml@latest && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wary of using @latest and potentially unintended consequences. How about we pin to specific versions instead ?

Copy link
Contributor Author

@szh szh Mar 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this is only for the test image, I think it might be worth the tradeoff to use latest (which is what we were doing before this change with go get -u). Otherwise we'll end up having to update this on a regular basis to keep up with security disclosures.

bin/functions.sh Outdated Show resolved Hide resolved
@@ -165,7 +165,7 @@ echo $token
_, stderr, err := RunCommand(PackageName, variableIdentifier)

assert.Error(t, err)
assert.Contains(t, stderr.String(), "not found in account")
assert.Contains(t, stderr.String(), "CONJ00076E Variable cucumber:variable:non-existent-variable is empty or not found")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a fly by comment. One of the reasons I like error contains is that it simplifies asserting on errors

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do that as well but here we're specifically testing that the error message gets written to stderr.

### Security
- Update golang.org/x/sys to v0.1.0 for CVE-2022-29526 (not vulnerable)
[cyberark/summon-conjur#110](https://github.com/cyberark/summon-conjur/pull/110)

### Removed
- Removed support for Conjur v4
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In doing this we're moving to test summon-conjur against Conjur OSS, with the understanding that the interface for enterprise is identical ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. @jvanderhoof can you confirm this is a safe assumption?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's true! 😄. Enterprise adds health and info, but nothing to the primary API.

Copy link
Contributor

@doodlesbykumbi doodlesbykumbi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@szh szh merged commit ef2507f into main Mar 23, 2023
@szh szh deleted the udpate-api branch March 23, 2023 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants