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

Control stdio for process credentials output #261

Merged
merged 7 commits into from
Jan 11, 2025

Conversation

monde
Copy link
Collaborator

@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
5 checks passed
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