Skip to content

feat(agent): split legacy username/password login into its own file - #1

Closed
roeezis wants to merge 1 commit into
split/01-jwtsourcefrom
split/02-identity-refactor
Closed

feat(agent): split legacy username/password login into its own file#1
roeezis wants to merge 1 commit into
split/01-jwtsourcefrom
split/02-identity-refactor

Conversation

@roeezis

@roeezis roeezis commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Summary

Part 2 of the SMS/Conjur JWT authentication series (split out of jetstack#817). Stacked on #1 (jetstack#818, split/01-jwtsource).

identity.go mixed shared client/token-cache plumbing with the CyberArk Identity username/password (UP) login flow. Moves the UP-specific code into username_password.go so the shared plumbing stays easy to find once a second login mechanism (Conjur JWT) is added alongside it.

No behavior change — pure extraction, plus unexporting ActionAnswer and exporting the mock's success credentials for other packages' tests.

Test plan

  • go build ./...
  • go test ./internal/cyberark/identity/...

identity.go mixed the shared client/token-cache plumbing with the
CyberArk Identity username/password (UP) login flow. Move the UP-specific
code into username_password.go so the shared plumbing stays easy to find
once a second login mechanism (Conjur JWT) is added alongside it.

No behavior change — pure extraction, plus unexporting ActionAnswer and
exporting the mock's success credentials for other packages' tests.
@roeezis

roeezis commented Aug 23, 2026

Copy link
Copy Markdown
Owner Author

Wrong venue — reopening this as a PR against jetstack/jetstack-secure master instead, so it's reviewable by upstream maintainers.

@roeezis roeezis closed this Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant