Skip to content

Refresh all the CAs - #679

Draft
evgeni wants to merge 3 commits into
masterfrom
never-break
Draft

Refresh all the CAs#679
evgeni wants to merge 3 commits into
masterfrom
never-break

Conversation

@evgeni

@evgeni evgeni commented Jul 20, 2026

Copy link
Copy Markdown
Member

Why are you introducing these changes? (Problem description, related links)

What are the changes introduced in this pull request?

How to test this pull request

Steps to reproduce:

Checklist

  • Tests added/updated (if applicable)
  • Documentation updated (if applicable)

@evgeni

evgeni commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

This includes #671 for reasons to build ontop of the changes there

./foremanctl certificate-bundle proxy.example.com \
--certificate-source=${{ matrix.certificate_source }} \
${{ matrix.certificate_source == 'custom_server' && '--certificate-server-certificate /root/custom-certificates/certs/proxy.example.com.crt --certificate-server-key /root/custom-certificates/private/proxy.example.com.key' || '' }}
- name: Refresh CA to ensure it doesn't break the bundle

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't understand what this is testing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The naïve idea was:

  • deploy foreman
  • create bundle for a proxy
  • renew ca
  • see that the previously created bundle still works (assuming the certificate has new expiration dates, but otherwise was not changed)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does the bundle get re-created? Or just testing that the certs in the bundle before renewal continue to work?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No recreation, "old bundle still works" is basically the test

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