Skip to content

Conversation

@nastena1606
Copy link
Collaborator

@nastena1606 nastena1606 commented Nov 26, 2025

Documented TLS certificate and CA certificate validity durations in operator and cert-manager documentation. Added rules and limitations for customizing certificate durations.

nastena1606 and others added 6 commits November 21, 2025 15:54
…ss to S3 storage

dquote>
dquote> The PR also improves TLS section in docs

        modified:   docs/TLS.md
        modified:   docs/backups-restore-to-new-cluster.md
        modified:   docs/backups-storage.md
        modified:   docs/operator.md
        new file:   docs/tls-cert-manager.md
        new file:   docs/tls-disable.md
        new file:   docs/tls-manual.md
        new file:   docs/tls-update.md
        modified:   mkdocs-base.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…rations in operator and cert-manager documentation. Added rules and limitations for customizing certificate durations.

 modified:   docs/operator.md
        modified:   docs/tls-cert-manager.md
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR restructures the TLS/SSL documentation by splitting a monolithic TLS.md file into focused topic-based documents, improving discoverability and maintainability. The changes introduce comprehensive guidance on certificate management, including new content about custom certificate duration configuration and custom TLS verification for S3 backups.

Key changes:

  • Split TLS documentation into five focused documents covering cert-manager, manual certificate generation, certificate updates, and TLS disabling
  • Added documentation for custom certificate duration configuration (.spec.tls.certValidityDuration and .spec.tls.caValidityDuration)
  • Enhanced backup storage documentation with custom TLS/SSL certificate verification for S3-compatible storage

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
mkdocs-base.yml Updated navigation structure to organize TLS documentation as a nested section with five topic-based pages; removed unused configuration items
docs/tls-update.md New document describing certificate update procedures for both automatic (cert-manager) and manual certificates, with and without downtime
docs/tls-manual.md New document providing step-by-step guide for generating TLS certificates manually using cfssl tools
docs/tls-disable.md New document explaining how to deploy and manage clusters without TLS encryption
docs/tls-cert-manager.md New document covering cert-manager installation and configuration, including custom certificate duration settings
docs/operator.md Added documentation for new tls.certValidityDuration, tls.caValidityDuration, and S3 caBundle configuration options
docs/backups-storage.md Enhanced S3 storage configuration with custom TLS certificate verification instructions and reorganized content for clarity
docs/backups-restore-to-new-cluster.md Updated restore instructions to include custom TLS certificate configuration for S3 storage backups
docs/TLS.md Converted from comprehensive guide to overview page linking to newly separated topic documents

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

* a destination key. Take it from the output of the `kubectl get pxc-backup` command. The destination consists of the `s3://` prefix, the S3 bucket name
and the backup name.
* the necessary [storage configuration keys](backups-storage.md#configure-storage-for-backups), just like in the `deploy/cr.yaml` file of the source cluster.
* `verifyTLS` to verify the storage server TLS certificate
Copy link

Copilot AI Nov 26, 2025

Choose a reason for hiding this comment

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

Missing details on valid values for verifyTLS (likely true/false). The documentation should specify the expected value type and possible values.

Suggested change
* `verifyTLS` to verify the storage server TLS certificate
* `verifyTLS` (boolean, `true` or `false`) to specify whether to verify the storage server TLS certificate. Set to `true` to enable certificate verification, or `false` to disable it.

Copilot uses AI. Check for mistakes.
@nastena1606 nastena1606 changed the title K8 spxc 1494 doc tls cert duration K8SPXC- 1494 Documented custom duration setup for TLS and CA Nov 26, 2025
@it-percona it-percona temporarily deployed to K8SPXC-1494-Doc-TLS-cert-duration - percona-mysql-operator-pxc PR #271 November 26, 2025 16:18 — with Render Destroyed
@it-percona it-percona temporarily deployed to K8SPXC-1494-Doc-TLS-cert-duration - percona-mysql-operator-pxc PR #271 November 26, 2025 16:18 — with Render Destroyed
Comment on lines 93 to 95
kubectl get secret/ps-cluster1-ssl -o jsonpath='{.data.ca\.crt}' | base64 --decode > ca.pem.old
kubectl get secret/ps-cluster1-ssl -o jsonpath='{.data.tls\.crt}' | base64 --decode > tls.pem.old
kubectl get secret/ps-cluster1-ssl -o jsonpath='{.data.tls\.key}' | base64 --decode > tls.key.old
Copy link
Contributor

Choose a reason for hiding this comment

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

please remove ps- prefix from cmd examples

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed

docs/operator.md Outdated

### `tls.caValidityDuration`

Validity period for CA certificate. Minimum accepted duration is 730 hours (approximately 30 days).
Copy link

@valmiranogueira valmiranogueira Nov 28, 2025

Choose a reason for hiding this comment

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

Found out that the minimum duration must be greater than 730, exatcly 730 hours it will fail :(

Check the fix in https://github.com/percona/percona-xtradb-cluster-operator/pull/2272/files

@it-percona it-percona temporarily deployed to K8SPXC-1494-Doc-TLS-cert-duration - percona-mysql-operator-pxc PR #271 December 2, 2025 17:17 — with Render Destroyed
@nastena1606 nastena1606 merged commit c877023 into main Dec 2, 2025
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.

5 participants