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
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
- cert-manager automatically acquires/updates Let's Encrypt certificates and updates the
cert-secretSecret - Reloader detects Secret changes and triggers Deployment redeployment
- Init container starts, reads certificate from Secret, and calls cloud service API to update certificate
- Init container exits after completion
- Main container (placeholder) keeps running to ensure Deployment status is normal
Development
For development and testing, see DEVELOPMENT.md for detailed setup instructions.
CLI 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
Documentation
- CONTRIBUTING.md: Guidelines for contributing to the project
- DEVELOPMENT.md: Detailed development guide (code formatting, linting, testing, building)
- TROUBLESHOOTING.md: Common issues and debugging tips
- Helm Chart README: Detailed Kubernetes deployment guide
- testing-design-principles.mdc: Testing design and implementation principles
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cloud_cert_renewer-0.2.6b2.tar.gz.
File metadata
- Download URL: cloud_cert_renewer-0.2.6b2.tar.gz
- Upload date:
- Size: 213.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03116777483930cc57e5819238ce42cc65684596b50cd4d11040f59698d30a31
|
|
| MD5 |
86d330527c3540bbb723db5c50c5b2a2
|
|
| BLAKE2b-256 |
d85e53177f6e029963732eb6d20ccc33798a6b973fea80128eed5a05b6ec06ff
|
File details
Details for the file cloud_cert_renewer-0.2.6b2-py3-none-any.whl.
File metadata
- Download URL: cloud_cert_renewer-0.2.6b2-py3-none-any.whl
- Upload date:
- Size: 45.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4053d093fa360cd097b4b4e245e56a704f85378dbc78a6b9a2765c88e324c06c
|
|
| MD5 |
c8182206d8a3b5f32f05cb2804ccf609
|
|
| BLAKE2b-256 |
5896481887a9303931a45cc8441ce38f0c1ad8a91761ac7871a5fab4c2010d7a
|