Simple deployment tool for certificates managed by CertWarden https://certwarden-deploy.adora.codes
Find a file
Adora Laura Kalb 5e0e263ff8
All checks were successful
ci/woodpecker/push/deploy-docs Pipeline was successful
use dev mail
2024-07-12 14:37:05 +02:00
.vscode add vscode debug config 2024-07-12 12:54:25 +02:00
.woodpecker add docs to repo 2024-07-12 13:04:33 +02:00
cmd/certwarden-deploy 0.1.0, add examples, add license 2024-07-03 11:56:04 +02:00
docs use dev mail 2024-07-12 14:37:05 +02:00
examples update example config file 2024-07-12 10:58:27 +02:00
internal bump version to 0.2.1 2024-07-12 11:18:50 +02:00
.gitignore 0.1.0, add examples, add license 2024-07-03 11:56:04 +02:00
CHANGELOG.md bump version to 0.2.1 2024-07-12 11:18:50 +02:00
CONTRIBUTING.md use dev mail 2024-07-12 14:37:05 +02:00
go.mod first mvp 2024-07-03 10:00:21 +02:00
go.sum first mvp 2024-07-03 10:00:21 +02:00
LICENSE 0.1.0, add examples, add license 2024-07-03 11:56:04 +02:00
main.go initial commit 2024-06-28 15:28:54 +02:00
MAINTAINERS.md use dev mail 2024-07-12 14:37:05 +02:00
README.md use dev mail 2024-07-12 14:37:05 +02:00

certwarden-deploy

status-badge Please don't upload to GitHub

This is a simple binary to deploy certificates from a CertWarden instance.

Quick Start

Installation of the required CertWarden instance is out of scope of this documentation. For detailed instructions regarding CertWarden, please visit it's documentation

To quickly get started with certwarden-deploy, just download the binary...

# this downloads certwarden-deploy version 0.1.1 
# to /usr/local/bin/certwarden-deploy
sudo wget https://code.lila.network/adoralaura/certwarden-deploy/releases/download/0.1.1/certwarden-deploy-0.1.1-linux-amd64 -O /usr/local/bin/certwarden-deploy

sudo chmod +x /usr/local/bin/certwarden-deploy

... fill out the config file...

vi /etc/certwarden-deploy/config.yaml
# Base URL of the CertWarden instance
# required
base_url: "https://certwarden.example.com"

# Set this to true if your CertWarden instance does not have a publicly trusted 
# TLS certificate (e.g. it has a self signed one)
# default is false
disable_certificate_validation: false

# define all managed certificates here
certificates:

    # name is a unique identifier that must start and end with an alphanumeric character, 
    # and can contain the following characters: a-zA-Z0-9._-
    # required
  - name: test-certificate.example.com

    # Contains the API-Key to fetch the certificate from the server
    # required

    api_key: examplekey_notvalid_hrzjGDDw8z

    # action to run when certificate was updated or --force is on
    action: "/usr/bin/systemd reload caddy"

    # path where to save the certificate
    # required
    file_path: "/path/to/test-certificate.example.com-cert.pem"

... and run it!

certwarden-deploy -v

Contributing

I use my own Forgejo Instance to manage issues and pull requests.

  • If you have a trivial fix or improvement, go ahead and create a pull request, addressing (with @...) the maintainer of this repository (see MAINTAINERS.md) in the description of the pull request.

  • If you plan to do something more involved, first please send me a mail.

What to contribute

The best way to help without speaking a lot of Go would be to share your configuration, alerts, dashboards, and recording rules. If you have something that works and is not in the repository, please pay it forward and share what works.

Changelog

You can find the Changelog here: Changelog

License

certwarden-deploy is available under the MIT license. See the LICENSE file for more info.