Skip to content

Drop secret sync#3825

Closed
danpawlik wants to merge 6 commits intoopenstack-k8s-operators:mainfrom
danpawlik:drop-secret-sync
Closed

Drop secret sync#3825
danpawlik wants to merge 6 commits intoopenstack-k8s-operators:mainfrom
danpawlik:drop-secret-sync

Conversation

@danpawlik
Copy link
Copy Markdown
Contributor

@danpawlik danpawlik commented Apr 1, 2026

Worth to try, if we can skip sync secrets with controller-0 to avoid potential leak.

post-action-for: #3794

Some variables are missing, especially related to the registry
credentials. That complicate the situation, where some keys
might not exists in reproducer file. Some of the variables
are jinja2 template, which are "translated" by Ansible.
Alternative way was to use yq command like:

    yq eval-all -P 'select(fileIndex == 0) * select(fileIndex == 1)' \
        /tmp/reproducer-variables.yml \
        /home/zuul/configs/zuul_vars.yaml > merged.yaml

The yq is available in latest version available for current python3
version installed on hypervisor. In that case, we can not use
the yq tool, but use a python script.

Co-authored-by: Claude (AI Assistant) claude@anthropic.com

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
Keep support for legacy workflow where controller host is created
and actions are done not on hypervisor directly, but on controller.

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
On executing nested Ansible, some variables like: 'cifmw_registry_token'
are not redirected, which is causing an issue in later tasks, which are
operating on those variables and if it is undefine, it raise an issue.
To satisfy nested Ansible execution, provide necessary variables.

Also include hypervisor name as it can be a missing variable, due
jobs already bootstrapped by ZIronic does not require to have that
variable, which in some tasks is necessary.

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
The pull_secret.json might contain authentication to
necessary registries for CI job, that are not available during the
bootstrap process using PreMetal (earlier ZIronic).
Let's move all the tasks for pre job execution after PreMetal
bootstrap.
That would make reproducer playbook easier to read.

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 1, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci bot commented Apr 1, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign valkyrie00 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

@softwarefactory-project-zuul
Copy link
Copy Markdown

This change depends on a change that failed to merge.

Change #3794 is needed.

@danpawlik
Copy link
Copy Markdown
Contributor Author

recheck

Worth to try, if we can skip sync secrets with controller-0 to
avoid potential leak.

Signed-off-by: Daniel Pawlik <dpawlik@redhat.com>
@danpawlik
Copy link
Copy Markdown
Contributor Author

can't go with that approach, due:

2026-04-02 06:37:34.452914 | controller |     - '      ''''cifmw_registry_token'''' is undefined. [{''''key'''': ''''{{ cifmw_registry_token.credentials.username'
2026-04-02 06:37:34.452918 | controller |     - '      }}'''', ''''value'''': ''''{{ cifmw_registry_token.credentials.password }}''''}]:
2026-04-02 06:37:34.452923 | controller |       ''''cifmw_registry_token'''''
2026-04-02 06:37:34.452928 | controller |     - '      is undefined. ''''cifmw_registry_token'''' is undefined'''

@danpawlik danpawlik closed this Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant