Skip to main content

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.

CI Python 3.10+ License: UPL-1.0

[!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

  1. Configure an OCI API-key profile with permission to read public DNS zones and manage their records.

  2. Install Certbot with the plugin and verify discovery:

    uv tool install --with certbot-dns-oraclecloud certbot
    certbot plugins --text | grep dns-oraclecloud
    
  3. 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


Download files

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

Source Distribution

certbot_dns_oraclecloud-1.0.1.tar.gz (162.7 kB view details)

Uploaded Source

Built Distribution

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

certbot_dns_oraclecloud-1.0.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

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

Hashes for certbot_dns_oraclecloud-1.0.1.tar.gz
Algorithm Hash digest
SHA256 78dd1895dac3249707afddc10e5ee7a6cbae3820e2413344d72678bc99af70d1
MD5 d728ca89269ee4a9eb326d44491cf73c
BLAKE2b-256 51dd21cf5ff2cefed7040d5f588601bcab35a1b1ca90590dc6de896f7e210dcc

See more details on using hashes here.

Provenance

The following attestation bundles were made for certbot_dns_oraclecloud-1.0.1.tar.gz:

Publisher: ci.yml on Djelibeybi/certbot-dns-oraclecloud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file certbot_dns_oraclecloud-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_oraclecloud-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 954b968133ef0c23b1b790a75c9bc615cf61a685a3926d889c103d694cd9aa2b
MD5 e413184daae6556be10ca95c943259ba
BLAKE2b-256 68d69ceb6e29b7faae719885b0e67440554c489f86e002449e1e483878684805

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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