fix: adding crontab for AzureLinux in custom clouds to ensure custom CAs are getting refreshed daily#7785
Merged
fix: adding crontab for AzureLinux in custom clouds to ensure custom CAs are getting refreshed daily#7785
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR ensures that on Mariner/AzureLinux nodes in AKS custom clouds, custom CA certificates are refreshed automatically on a daily basis, similar to existing behavior on Ubuntu.
Changes:
- In
init-aks-custom-cloud-mariner.sh, add anactionmode flag and a cron job that runs the script daily withca-refresh, performing only the certificate refresh path and skipping subsequent repo initialization. - In
init-aks-custom-cloud-operation-requests-mariner.sh, add the sameactionhandling and cron job around the operation-requests-based CA retrieval and update logic.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| parts/linux/cloud-init/artifacts/init-aks-custom-cloud-mariner.sh | Adds a guarded daily root crontab entry that re-runs the script in ca-refresh mode to recopy Azure CA certs and run /usr/bin/update-ca-trust, mirroring the existing Ubuntu behavior. |
| parts/linux/cloud-init/artifacts/init-aks-custom-cloud-operation-requests-mariner.sh | Adds the same ca-refresh mode and cron scheduling around the operation-requests-based certificate retrieval and trust store update for Mariner/AzureLinux in non-stack custom clouds. |
parts/linux/cloud-init/artifacts/init-aks-custom-cloud-operation-requests-mariner.sh
Show resolved
Hide resolved
cameronmeissner
approved these changes
Feb 4, 2026
mxj220
pushed a commit
that referenced
this pull request
Feb 5, 2026
…CAs are getting refreshed daily (#7785)
mxj220
pushed a commit
that referenced
this pull request
Feb 5, 2026
…CAs are getting refreshed daily (#7785)
mxj220
pushed a commit
that referenced
this pull request
Feb 5, 2026
…CAs are getting refreshed daily (#7785)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
adding crontab for AzureLinux in custom clouds to custom CAs are refreshed daily
Which issue(s) this PR fixes:
Fixes #