-
Notifications
You must be signed in to change notification settings - Fork 119
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
🐛 Stop reading ironic and inspector HTPASSWD from environment variables #482
Conversation
34e94c3
to
ff83be6
Compare
ff83be6
to
dec0ba2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not following: who and where are the files populated now?
Some nits too.
dec0ba2
to
c39679b
Compare
The files are populated by cluster-baremetal-operator. I have a PR there which I will test alongside this one: openshift/cluster-baremetal-operator#408 |
That is not part of Metal3. Who is populating/creating files in Metal3? |
Good point. I will come up with a change for metal3 as well. |
This is going to break virtually all consumers: the files are not there when the container starts, we populate them. My earlier plan was to eventually start accepting a mounted secret instead of HTPASSWD variables. Then the consumers, such as CBO, will be able to fix the problem for themselves. Maybe you could go down the same path? It's harder to backport, of course, but nor is this change really backportable. It's also not the worst vulnerability you can imagine (the password is hashed), so I'm fine if we only fix it on the main branch and only for consumers that switch to mounting the secret. |
c39679b
to
d9779be
Compare
1ccc193
to
1466ea4
Compare
1466ea4
to
d8116dc
Compare
/hold |
d8116dc
to
edd256f
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dtantsur 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A tiny nit left.
Signed-off-by: Mahnoor Asghar <[email protected]>
edd256f
to
518dd33
Compare
/unhold |
/hold Has any integration jobs run here? I don't see any results, let me check with the folks. |
/test ? |
@mboukhalfa: The following commands are available to trigger required jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test metal3-centos-e2e-integration-test-main |
/hold cancel Looking good, please proceed with reviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
/cc @Rozzii
PTAL
/lgtm |
OCPBUGS-32169: [4.14] Add hybrid configuration for cachito
Security baselines such as CIS do not recommend using secrets as environment variables, but using files instead. Therefore, the IRONIC_HTPASSWD and INSPECTOR_HTPASSWD will now be populated from files instead of environment variables.