Skip to content

Conversation

@technowhizz
Copy link
Contributor

No description provided.

If vault is not unsealed, the task used to fail with
`role not found or permission denied` which is confusing for users. This
commit adds a check to ensure vault is unsealed before attempting to
generate the certificate.
@technowhizz technowhizz self-assigned this Jan 9, 2026
@technowhizz technowhizz requested a review from a team as a code owner January 9, 2026 18:23
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces fixes related to Pulp TLS configuration. It correctly updates a kayobe command in the documentation from reconfigure to deploy. More importantly, it enhances the Ansible playbook for Pulp certificate generation by adding a check to ensure OpenBao is unsealed before proceeding. This is a great improvement for robustness and user experience, as it provides a clear failure message if OpenBao is sealed. I've added one suggestion to make this new check even more robust.

Comment on lines +21 to +23
ansible.builtin.uri:
url: "{{ openbao_api_addr }}/v1/sys/seal-status"
return_content: true
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

To make this task more robust, it's good practice to explicitly check for a successful HTTP status code. This ensures that the playbook fails with a clear error if the OpenBao API is available but returns an unexpected status (e.g., a server error), rather than failing at the next task with a less obvious message.

      ansible.builtin.uri:
        url: "{{ openbao_api_addr }}/v1/sys/seal-status"
        return_content: true
        status_code: 200

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