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

🌱 E2E: Fix basic auth config #1556

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

lentzi90
Copy link
Member

What this PR does / why we need it:

The variables used for setting basic auth credentials were not exported, meaning that envsubst did not pick them up. This caused the auth config to have empty values.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@metal3-io-bot metal3-io-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Feb 14, 2024
The variables used for setting basic auth credentials were not exported,
meaning that envsubst did not pick them up. This caused the auth config
to have empty values.

Signed-off-by: Lennart Jern <lennart.jern@est.tech>
@lentzi90 lentzi90 force-pushed the lentzi90/e2e-basic-auth-fix branch from 3de3587 to 4458b11 Compare February 14, 2024 09:11
@lentzi90
Copy link
Member Author

/test metal3-bmo-e2e-test-pull

@lentzi90
Copy link
Member Author

/test-centos-e2e-integration-main

Copy link
Member

@tuminoid tuminoid left a comment

Choose a reason for hiding this comment

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

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 14, 2024
@maxrantil
Copy link

LGTM

@mquhuy
Copy link
Member

mquhuy commented Feb 14, 2024

lgtm

@kashifest
Copy link
Member

The variables used for setting basic auth credentials were not exported, meaning that envsubst did not pick them up. This caused the auth config to have empty values.

Shouldn't the test fail/complain in such case ?

@lentzi90
Copy link
Member Author

Shouldn't the test fail/complain in such case ?

My understanding is that empty auth config for Ironic is the same as disabling basic auth. That does not make the tests fail since everything still works, it is just insecure. BMO was all the time configured with credentials but those were not needed since Ironic didn't ask for any.

@kashifest
Copy link
Member

/approve

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kashifest, mboukhalfa

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 19, 2024
@metal3-io-bot metal3-io-bot merged commit 23786ed into metal3-io:main Feb 19, 2024
19 checks passed
@metal3-io-bot metal3-io-bot deleted the lentzi90/e2e-basic-auth-fix branch February 19, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants