certbot-dns-oraclecloud
A Certbot authenticator for completing DNS-01 challenges in public Oracle Cloud Infrastructure (OCI) DNS zones.
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.
Metadata
Release files for certbot-dns-oraclecloud 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| certbot_dns_oraclecloud-1.0.1.tar.gz | 162.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| certbot_dns_oraclecloud-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 173.7 kB
Release files / certbot_dns_oraclecloud-1.0.1.tar.gz
| Download URL | certbot_dns_oraclecloud-1.0.1.tar.gz |
|---|---|
| Size | 162.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78dd1895dac3249707afddc10e5ee7a6cbae3820e2413344d72678bc99af70d1
|
|
BLAKE2b-256 checksum How to use checksums |
51dd21cf5ff2cefed7040d5f588601bcab35a1b1ca90590dc6de896f7e210dcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency logRelease files / certbot_dns_oraclecloud-1.0.1-py3-none-any.whl
| Download URL | certbot_dns_oraclecloud-1.0.1-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
954b968133ef0c23b1b790a75c9bc615cf61a685a3926d889c103d694cd9aa2b
|
|
BLAKE2b-256 checksum How to use checksums |
68d69ceb6e29b7faae719885b0e67440554c489f86e002449e1e483878684805
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 12, 2026.
Transparency log