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

[auth] Improve whoami #1693

Merged
merged 5 commits into from
Jan 2, 2024
Merged

[auth] Improve whoami #1693

merged 5 commits into from
Jan 2, 2024

Conversation

mikeland73
Copy link
Contributor

Summary

TSIA

How was it tested?

@mikeland73 mikeland73 requested review from savil and ipince December 22, 2023 20:04
@@ -119,15 +120,14 @@ func handleError(stderr *bytes.Buffer, err error) error {
return errors.WithStack(err)
}

func DefaultEnvsec(stderr io.Writer, workingDir string) *envsec.Envsec {
func DefaultEnvsec(stderr io.Writer) *envsec.Envsec {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Given that most uses of this function are setting WorkingDir, I feel we should preserve the parameter. Otherwise, its very easy to overlook or forget it needs to be set.

Can we pass in an empty-value for the "WhoAmI" use-case?

@mikeland73 mikeland73 requested a review from savil January 2, 2024 16:39
@mikeland73 mikeland73 merged commit 4e95590 into main Jan 2, 2024
24 checks passed
@mikeland73 mikeland73 deleted the landau/improve-whoami branch January 2, 2024 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants