Skip to content

Control stdio for process credentials output#261

Merged
monde merged 7 commits intomasterfrom
process_credentials_output
Jan 11, 2025
Merged

Control stdio for process credentials output#261
monde merged 7 commits intomasterfrom
process_credentials_output

Conversation

@monde
Copy link
Contributor

@monde monde commented Jan 9, 2025

See #247, when okta-aws-cli is in credential process format output we can't print to stderr as it will cause aws cli to fail when it exec's okta-aws-cli (docs for AWS CLI credential_process)

This PR introduces a logger interface for printing log messages. For example, the logger for credential process disables printing to STDERR. All logging goes through the interface rather than sprinkling fmt print functions throughout the codebase.

Also includes a small refactor for better idiomatic naming of constructor functions.

@monde monde merged commit e26279e into master Jan 11, 2025
4 checks passed
@monde monde mentioned this pull request Jan 31, 2025
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.

2 participants