Certbot DNS authenticator for Oracle Cloud Infrastructure DNS
Project description
certbot-dns-oraclecloud
A Certbot authenticator for completing DNS-01 challenges in public Oracle Cloud Infrastructure (OCI) DNS zones.
[!WARNING] This project is alpha software. Test issuance and renewal in a non-production environment before relying on it for production certificates.
The plugin supports API-key, instance-principal, and resource-principal authentication. It discovers the most-specific matching public OCI DNS zone, adds the exact TXT value required by Certbot, and removes only that value during cleanup. Private DNS zones are intentionally unsupported because they cannot satisfy public ACME validation.
This project is not a drop-in replacement for certbot-dns-oci; its configuration and command-line contract are intentionally different.
Installation
Python 3.10 or newer is required. Install Certbot and the plugin together with uv:
uv tool install --with certbot-dns-oraclecloud certbot
Confirm that Certbot can discover the authenticator:
certbot plugins --text | grep dns-oraclecloud
Quick start
-
Configure an OCI API-key profile with permission to read public DNS zones and manage their records.
-
Install Certbot with the plugin and verify discovery:
uv tool install --with certbot-dns-oraclecloud certbot certbot plugins --text | grep dns-oraclecloud
-
Request a certificate using that profile:
certbot certonly --authenticator dns-oraclecloud \ --dns-oraclecloud-auth-type api_key \ --dns-oraclecloud-credentials ~/.oci/config \ --dns-oraclecloud-profile CERTBOT \ --dns-oraclecloud-propagation-seconds 60 \ -d example.com
Usage
API-key authentication
api_key is the default authentication mode. The credentials file defaults to ~/.oci/config, and the profile defaults to DEFAULT:
certbot certonly --authenticator dns-oraclecloud \
--dns-oraclecloud-auth-type api_key \
--dns-oraclecloud-credentials ~/.oci/config \
--dns-oraclecloud-profile CERTBOT \
-d example.com
Instance-principal authentication
Run Certbot on an OCI compute instance whose dynamic group has the required DNS permissions. The authenticator reads the configured credentials and profile values before selecting this mode, but the instance-principal client factory does not use them:
certbot certonly --authenticator dns-oraclecloud \
--dns-oraclecloud-auth-type instance_principal \
-d example.com
Resource-principal authentication
Run Certbot in an OCI resource environment that supplies a resource-principal signer:
certbot certonly --authenticator dns-oraclecloud \
--dns-oraclecloud-auth-type resource_principal \
-d example.com
Authentication selection is explicit. A failed principal mode does not fall back to another principal or to an API key.
Plugin options
| Option | Default | Purpose |
|---|---|---|
--dns-oraclecloud-auth-type |
api_key |
Select api_key, instance_principal, or resource_principal. |
--dns-oraclecloud-credentials |
~/.oci/config |
OCI SDK configuration file used by API-key authentication. |
--dns-oraclecloud-profile |
DEFAULT |
Profile in the OCI SDK configuration file used by API-key authentication. |
--dns-oraclecloud-propagation-seconds |
60 |
Time Certbot waits for public DNS propagation. |
Documentation
The project documentation covers installation, authentication, least-privilege OCI IAM policies, development, and releases.
Contributing
See CONTRIBUTING.md for guidelines.
Security issues should be reported privately as described in SECURITY.md.
License
This project is licensed under the Universal Permissive License 1.0.
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 certbot_dns_oraclecloud-1.0.1.tar.gz.
File metadata
- Download URL: certbot_dns_oraclecloud-1.0.1.tar.gz
- Upload date:
- Size: 162.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78dd1895dac3249707afddc10e5ee7a6cbae3820e2413344d72678bc99af70d1
|
|
| MD5 |
d728ca89269ee4a9eb326d44491cf73c
|
|
| BLAKE2b-256 |
51dd21cf5ff2cefed7040d5f588601bcab35a1b1ca90590dc6de896f7e210dcc
|
Provenance
The following attestation bundles were made for certbot_dns_oraclecloud-1.0.1.tar.gz:
Publisher:
ci.yml on Djelibeybi/certbot-dns-oraclecloud
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
certbot_dns_oraclecloud-1.0.1.tar.gz -
Subject digest:
78dd1895dac3249707afddc10e5ee7a6cbae3820e2413344d72678bc99af70d1 - Sigstore transparency entry: 2148559033
- Sigstore integration time:
-
Permalink:
Djelibeybi/certbot-dns-oraclecloud@ce76b15e93ca601b293da93e4921d53cd2e932f0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Djelibeybi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@ce76b15e93ca601b293da93e4921d53cd2e932f0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file certbot_dns_oraclecloud-1.0.1-py3-none-any.whl.
File metadata
- Download URL: certbot_dns_oraclecloud-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
954b968133ef0c23b1b790a75c9bc615cf61a685a3926d889c103d694cd9aa2b
|
|
| MD5 |
e413184daae6556be10ca95c943259ba
|
|
| BLAKE2b-256 |
68d69ceb6e29b7faae719885b0e67440554c489f86e002449e1e483878684805
|
Provenance
The following attestation bundles were made for certbot_dns_oraclecloud-1.0.1-py3-none-any.whl:
Publisher:
ci.yml on Djelibeybi/certbot-dns-oraclecloud
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
certbot_dns_oraclecloud-1.0.1-py3-none-any.whl -
Subject digest:
954b968133ef0c23b1b790a75c9bc615cf61a685a3926d889c103d694cd9aa2b - Sigstore transparency entry: 2148559456
- Sigstore integration time:
-
Permalink:
Djelibeybi/certbot-dns-oraclecloud@ce76b15e93ca601b293da93e4921d53cd2e932f0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Djelibeybi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@ce76b15e93ca601b293da93e4921d53cd2e932f0 -
Trigger Event:
push
-
Statement type: