Skip to main content

Automated HTTPS certificate renewal tool for cloud services, supporting CDN and Load Balancer (multi-cloud support, currently supports Alibaba Cloud)

Project description

Cloud Certificate Renewer

Automated HTTPS certificate renewal tool for cloud services, supporting CDN and Load Balancer products. Currently supports Alibaba Cloud, with architecture designed for multi-cloud extension.

Table of Contents

Features

  • Automatic certificate renewal for cloud CDN services (currently supports Alibaba Cloud)
  • Automatic certificate renewal for cloud Load Balancer services (currently supports Alibaba Cloud SLB)
  • Certificate validation (domain matching, expiration checking)
  • Support for wildcard domain certificates
  • CLI support with arguments (--dry-run, --verbose, --version)
  • Multiple authentication methods:
    • Access Key authentication
    • STS (Security Token Service) temporary credentials
    • IAM Role authentication
    • OIDC (RRSA) authentication for Kubernetes
    • Service Account authentication
    • Environment variable authentication
  • Configuration via environment variables or Kubernetes Secrets
  • Comprehensive error handling and logging
  • Helm Chart deployment support
  • Integration with cert-manager and Reloader
  • Automated release workflow with multi-architecture Docker images, Helm Charts, and PyPI packages

Installation

Using pip (PyPI)

You can install the tool directly from PyPI:

pip install cloud-cert-renewer

After installation, you can run the tool using the cloud-cert-renewer command:

# View help
cloud-cert-renewer --help

# Run in dry-run mode
cloud-cert-renewer --dry-run --verbose

# Run with environment variables
export SERVICE_TYPE=cdn
export CLOUD_ACCESS_KEY_ID=your_key
...
cloud-cert-renewer

Kubernetes Deployment

Prerequisites

Required:

  • Kubernetes cluster

Recommended:

  • cert-manager (for automatic certificate acquisition and renewal)
  • Reloader (for monitoring certificate Secret changes and automatically triggering Deployment redeployment)

Deployment

# 1. Create Secret (using generic naming, recommended)
kubectl create secret generic cloud-credentials \
  --from-literal=access-key-id=YOUR_KEY \
  --from-literal=access-key-secret=YOUR_SECRET

# Or use legacy naming (backward compatible)
# kubectl create secret generic alibaba-cloud-credentials \
#   --from-literal=access-key-id=YOUR_KEY \
#   --from-literal=access-key-secret=YOUR_SECRET

# 2. Deploy using Helm
helm install cloud-cert-renewer ./helm/cloud-cert-renewer \
  --set serviceType=cdn \
  --set cdn.domainName=your-domain.com

For detailed deployment instructions and troubleshooting, see:

How It Works

  1. cert-manager automatically acquires/updates Let's Encrypt certificates and updates the cert-secret Secret
  2. Reloader detects Secret changes and triggers Deployment redeployment
  3. Init container starts, reads certificate from Secret, and calls cloud service API to update certificate
  4. Init container exits after completion
  5. Main container (placeholder) keeps running to ensure Deployment status is normal

Development

For development and testing, see DEVELOPMENT.md for detailed setup instructions.

Documentation

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines, including the language policy.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloud_cert_renewer-0.2.0rc1.tar.gz (185.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cloud_cert_renewer-0.2.0rc1-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file cloud_cert_renewer-0.2.0rc1.tar.gz.

File metadata

  • Download URL: cloud_cert_renewer-0.2.0rc1.tar.gz
  • Upload date:
  • Size: 185.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for cloud_cert_renewer-0.2.0rc1.tar.gz
Algorithm Hash digest
SHA256 e81eb20a6aff99d5d4eca6a8ec2265d347f72b9b793ecaf17e1adbea3644ce6d
MD5 9e5865a5290ec8c4bb4d3dd249a39d87
BLAKE2b-256 43a422ccf8cf44651ff1baf4407324b282346edf10a3b12d6513181812108758

See more details on using hashes here.

File details

Details for the file cloud_cert_renewer-0.2.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for cloud_cert_renewer-0.2.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f11d5c34c9cf70be5441089e106c562a89c4256e59930f9205d42dd4fc9161
MD5 0364776ca83d207433a770041f0375ef
BLAKE2b-256 db636416e951ed50172085ec49ce5aa2462747874daf7a8c2a87f6d377b486b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page