Skip to content

[hooks] Add Barbican secret-store migrate live test hook - #4147

Draft
vakwetu wants to merge 2 commits into
openstack-k8s-operators:mainfrom
vakwetu:feature/OSPRH-35280-secret-store-migrate
Draft

[hooks] Add Barbican secret-store migrate live test hook#4147
vakwetu wants to merge 2 commits into
openstack-k8s-operators:mainfrom
vakwetu:feature/OSPRH-35280-secret-store-migrate

Conversation

@vakwetu

@vakwetu vakwetu commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a pre_tests hook that live-migrates a Barbican secret between SimpleCrypto and PKCS#11 and asserts the backend in MariaDB.
  • Covers OSC round-trip, barbican-secret-migrate round-trip, dry-run, and metadata-only 409.
  • Playbooks live under hooks/playbooks/barbican-secret-store-migrate/ so they do not clutter hooks/playbooks/.

Prerequisite: the control plane must enable both stores (simple_crypto and pkcs11). Current Luna/Proteccio jobs only enable pkcs11; that is a follow-up in the component job / testproject.

Test plan

  • pre-commit run --all-files (ansible-lint)
  • commit-message body + Signed-off-by
  • Live run via testproject parenting the Luna component job (not in this PR)

Related-Issue: #OSPRH-35280
Related: OSPRH-35261, OSPRH-35331, RHOSSTRAT-1435

Assisted-by: Cursor Grok 4.6

Tempest cannot prove a secret changed backends. This hook creates a
secret on the global default store, migrates it with OSC and
barbican-secret-migrate, and checks MariaDB for the expected plugin.

Related-Issue: #OSPRH-35280

Assisted-by: Cursor Grok 4.6 <noreply@cursor.com>
Signed-off-by: Ade Lee <alee@redhat.com>
@openshift-ci

openshift-ci Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

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

openshift-ci Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

[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 eshulman2 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

Drop --os-key-manager-api-version 1.3 (OSC only knows major version 1),
pass --os-project-id for v3token, and pin the test payload with set_fact.

Related-Issue: #OSPRH-35280

Assisted-by: Cursor Grok 4.6 <noreply@cursor.com>
Signed-off-by: Ade Lee <alee@redhat.com>
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