Skip to content

Replace hardcoded bare-metal root password with CHANGEME placeholder - #793

Open
Dyrkon wants to merge 1 commit into
openstack-k8s-operators:mainfrom
Dyrkon:security/remove-hardcoded-credentials
Open

Replace hardcoded bare-metal root password with CHANGEME placeholder#793
Dyrkon wants to merge 1 commit into
openstack-k8s-operators:mainfrom
Dyrkon:security/remove-hardcoded-credentials

Conversation

@Dyrkon

@Dyrkon Dyrkon commented Aug 3, 2026

Copy link
Copy Markdown

Removed hardcoded redhat password (CWE-798) from 18 values.yaml files and converted to .env file pattern following bmo01 approach. Operators must now set a secure password in baremetalset-password.env before deployment. Updated 10 deployment docs to document the new requirement.

Closes: OSPRH-33539

@Dyrkon Dyrkon self-assigned this Aug 3, 2026
@openshift-ci
openshift-ci Bot requested review from abays and fultonj August 3, 2026 07:27
@openshift-ci

openshift-ci Bot commented Aug 3, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Dyrkon
Once this PR has been reviewed and has the lgtm label, please assign abays for approval. For more information see the Code Review Process.

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

Details 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

@Dyrkon
Dyrkon force-pushed the security/remove-hardcoded-credentials branch from 4e39cc4 to b113e2c Compare August 3, 2026 07:40
@Dyrkon
Dyrkon requested a review from mrkisaolamb August 3, 2026 08:02

@mrkisaolamb mrkisaolamb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We are missing changes in examples/dt/nfv/nfv-ovs-dpdk-sriov-hci/dataplane-pre-ceph.md , examples/dt/nfv/nfv-ovs-dpdk-sriov-2nodesets/dataplane.md and examples/dt/perfscale/scalelab/dataplane.md ?

Comment thread examples/va/nvidia-mdev/edpm-pre.md Outdated
cd architecture/examples/va/nvidia-mdev/edpm
```

Modify the [baremetalset-password.env](../../../dt/nova/nova04delta/edpm/nodeset/baremetalset-password.env) with a secure root password for bare-metal provisioning:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

is this wrong link?

cd examples/dt/nfv/nfv-ovs-dpdk-sriov-networker
```

Modify the [baremetalset-password.env](../../../va/nfv/ovs-dpdk-sriov/edpm/nodeset/baremetalset-password.env) and [baremetalset-password.env](../../../va/nfv/ovs-dpdk-sriov/edpm/networker-nodeset/baremetalset-password.env) with a secure root password for bare-metal provisioning:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this should be ../../../../ I think

cd architecture/examples/dt/nova/nova01alpha/edpm/
```

Modify the [baremetalset-password.env](../../../dt/nova/nova01alpha/edpm/nodeset/baremetalset-password.env) with a secure root password for bare-metal provisioning:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this should be ../../../../ I think

cd architecture/examples/dt/nova/nova02beta/edpm/
```

Modify the [baremetalset-password.env](../../../dt/nova/nova02beta/edpm/nodeset/baremetalset-password.env) and [baremetalset-password.env](../../../dt/nova/nova02beta/edpm/nodeset2/baremetalset-password.env) with a secure root password for bare-metal provisioning:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this should be ../../../../ I think

@@ -9,7 +9,6 @@ metadata:
config.kubernetes.io/local-config: "true"
data:
# Mapped in dt/nova/nova04delta/edpm/nodeset/kustomization.yaml to baremetalset-password-secret.data.NodeRootPassword

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

comment also should be removed?

@Dyrkon
Dyrkon force-pushed the security/remove-hardcoded-credentials branch from b113e2c to bd2ed1e Compare August 4, 2026 10:18
Removed hardcoded redhat password (CWE-798) from 18 values.yaml files
and converted to .env file pattern following bmo01 approach. Operators
must now set a secure password in baremetalset-password.env before
deployment. Updated 10 deployment docs to document the new requirement.

Closes: OSPRH-33539

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@Dyrkon
Dyrkon force-pushed the security/remove-hardcoded-credentials branch from bd2ed1e to 02587c2 Compare August 4, 2026 10:20
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