-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
49 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ARG BASE_IMG=glaux/vault-ssh-renew:latest | ||
FROM ${BASE_IMG} | ||
ENV MAX_JITTER_SECONDS=600 | ||
RUN apk add --no-cache tini | ||
ADD scripts/vault-ssh-renew-periodic / | ||
ADD scripts/vault-ssh-renew-periodic.crontab /etc/cron.d/vault-ssh-renew-periodic | ||
RUN crontab /etc/cron.d/vault-ssh-renew-periodic | ||
ENTRYPOINT ["/sbin/tini", "--"] | ||
CMD ["/usr/sbin/crond", "-f"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
vault-ssh-renew (0.2.0a6-1) unstable; urgency=medium | ||
|
||
* Allow multiple principals | ||
* Allow specifying the Vault token in a file | ||
|
||
-- Niels Grewe <[email protected]> Mon, 27 Jul 2020 11:12:00 +0200 | ||
|
||
vault-ssh-renew (0.2.0a5-1) unstable; urgency=medium | ||
|
||
* Install systemd service | ||
|
||
-- Niels Grewe <[email protected]> Sat, 26 Jul 2020 16:10:00 +0200 | ||
-- Niels Grewe <[email protected]> Sun, 26 Jul 2020 16:10:00 +0200 | ||
|
||
vault-ssh-renew (0.2.0a4-1) unstable; urgency=medium | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api" | |
|
||
[tool.poetry] | ||
name = "vault-ssh-renew" | ||
version = "0.2.0-alpha.5" | ||
version = "0.2.0-alpha.6" | ||
description = "Vault SSH Host Key Renewal Tool" | ||
authors = ["Niels Grewe <[email protected]>"] | ||
license = "MIT" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh -eu | ||
|
||
JITTER=$((RANDOM % ${MAX_JITTER_SECONDS})) | ||
sleep ${JITTER} | ||
/venv/bin/vault-ssh-renew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 0 * * * /vault-ssh-renew-periodic > /proc/$(cat /run/crond.pid)/fd/1 2>/proc/$(cat /run/crond.pid)/fd/2 |