Skip to content

gregalia/cert-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cert-tracker

codecov

SSL/TLS certificate monitoring tool that continuously tracks certificate details for specified hostnames.

Run Locally

Prerequisites

  • Docker
  • Dual-stack internet connection
    • Not required, but you'll see errors in the logs

Before we run the app, let's see if we have IPv6 connectivity:

ping6 2606:4700:4700::1111

Create an IPv6 docker network and test:1

docker network create --ipv6 --subnet=2001:db8:1::/64 ipv6net
docker run --rm --publish=80:80 --network=ipv6net --name=whoami --detach traefik/whoami
curl 'http://[::1]'
docker stop whoami

You should see IPv6 addresses in the output:

[...]
IP: 2001:db8:1::2
IP: fe80::9c72:3aff:feae:5520
[...]

Run the application with the IPv6 network:

cd app
docker buildx build --tag=cert-tracker .
docker run --network=ipv6net cert-tracker

Run on AWS

You can deploy the application and infrastructure independently.

Run CDK Deployment Locally

Build AWS infrastructure:

cd infra
docker buildx build --tag=cdk --target=cdk-run .

Before running a CDK app in an AWS account, you must bootstrap the CDK into that AWS account.2

Once that's complete, you need to run the CDK app in the context of an authenticated AWS session.

To do that with environment variables:

aws configure export-credentials --format env-no-export >.env
docker run --interactive --tty --env-file=.env cdk <subcommand>

Show the CloudFormation Template to deploy with cdk synth; deploy it with cdk deploy; remove it with cdk destroy.3

Footnotes

  1. https://docs.docker.com/engine/daemon/ipv6

  2. https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html

  3. https://docs.aws.amazon.com/cdk/v2/guide/ref-cli-cmd.html

About

Learn to do DevOpsy things with Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published