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

Fixing --enableAuth param when tested locally #4211

Merged
merged 8 commits into from
Jan 7, 2025

Conversation

aishwaryabh
Copy link
Contributor

@aishwaryabh aishwaryabh commented Dec 11, 2024

Issue describing the changes in this PR

When testing core tools locally, the --enableAuth param allows users to enable authorization. There was a bug introduced in this authorization handler
where the auth will always be bypassed regardless of the parameter. This PR fixes the issue by only setting up the authorization handler if the --enableAuth param is not set. I've also added test coverage for the --enableAuth parameter.

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

@aishwaryabh aishwaryabh requested a review from a team as a code owner December 11, 2024 19:53
liliankasem
liliankasem previously approved these changes Dec 11, 2024
fabiocav
fabiocav previously approved these changes Dec 11, 2024
@aishwaryabh aishwaryabh dismissed stale reviews from fabiocav and liliankasem via b3bc8a1 December 12, 2024 19:10
jviau
jviau previously approved these changes Dec 17, 2024
liliankasem
liliankasem previously approved these changes Dec 17, 2024
@aishwaryabh aishwaryabh dismissed stale reviews from liliankasem and jviau via 084cded January 2, 2025 20:48
@aishwaryabh aishwaryabh merged commit 208362c into main Jan 7, 2025
10 checks passed
@aishwaryabh aishwaryabh deleted the aibhandari/fix-enable-auth-param branch January 7, 2025 21:46
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.

4 participants