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.0.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.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_oraclecloud-1.0.0.tar.gz.

File metadata

  • Download URL: certbot_dns_oraclecloud-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 14cc721a59d4e0d4d372aa2e7f9cdf64ec495a0f405cc02624228bad2f5eaf82
MD5 d3efe9b14d934f32532ed7591ff984f8
BLAKE2b-256 eff5074d07fe649d5948b8ee5e987d6bc7c11822338815b0ad60f7f89cbbfd65

See more details on using hashes here.

Provenance

The following attestation bundles were made for certbot_dns_oraclecloud-1.0.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_oraclecloud-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5f10f6f7229bc020410b576844b108bcc4ef65781e4903076de0ac0567a85e4
MD5 68c61171a8b1724f09b954e17c9d9250
BLAKE2b-256 f15adcd2ac98eb7171e9636b0b937aa28b56c2cbaee47124c713833838fd3351

See more details on using hashes here.

Provenance

The following attestation bundles were made for certbot_dns_oraclecloud-1.0.0-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