-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref: get constant handles on more letsencryptCertMaterial
- probable typoed dead asset removed: xxxxx-full.pem.key (non-sensical) - shortcut cp cert.pem /etc/ssl/certs/agix-converter.iohk.io-cert.pem - instead of: re-acquire rather anti-atomically over the vault-agent REFACTORING: proven to have no effect via diff-against-bitte-commit ENV-DIFF: according to the above two items, also replacing implicit globs through explicit identifiers.
- Loading branch information
Showing
8 changed files
with
76 additions
and
63 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
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,29 @@ | ||
{ config, ... }: { | ||
_module.args = { | ||
pkiFiles = { | ||
caCertFile = "/etc/ssl/certs/ca.pem"; | ||
certChainFile = "/etc/ssl/certs/full.pem"; | ||
certFile = "/etc/ssl/certs/cert.pem"; | ||
keyFile = "/etc/ssl/certs/cert-key.pem"; | ||
}; | ||
|
||
letsencryptCertMaterial = { | ||
certFile = "/etc/ssl/certs/${config.cluster.domain}-cert.pem"; | ||
certChainFile = "/etc/ssl/certs/${config.cluster.domain}-full.pem"; | ||
keyFile = "/etc/ssl/certs/${config.cluster.domain}-key.pem"; | ||
}; | ||
|
||
hashiTokens = { | ||
vaultd-consul-json = "/etc/vault.d/consul-token.json"; | ||
nomadd-consul-json = "/etc/nomad.d/consul-token.json"; | ||
consuld-json = "/etc/consul.d/tokens.json"; | ||
|
||
vault = "/run/keys/vault-token"; | ||
consul-default = "/run/keys/consul-default-token"; | ||
consul-nomad = "/run/keys/consul-nomad-token"; | ||
consul-vault-srv = "vault-consul-token"; | ||
nomad-snapshot = "/run/keys/nomad-snapshot-token"; | ||
nomad-autoscaler = "/run/keys/nomad-autoscaler-token"; | ||
}; | ||
}; | ||
} |
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,17 @@ | ||
{ lib, config, ... }: let | ||
failedAssertions = | ||
map (x: x.message) (lib.filter (x: !x.assertion) config.assertions); | ||
validateConfig = if failedAssertions != [ ] then | ||
throw '' | ||
Failed assertions: | ||
${builtins.concatStringsSep "\n" | ||
(map (x: "- ${x}") failedAssertions)}'' | ||
else | ||
lib.showWarnings config.warnings; | ||
in { | ||
options.showWarningsAndAssertions = lib.mkOption { | ||
type = with lib.types; bool; | ||
default = validateConfig true; | ||
}; | ||
} |
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
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
17 changes: 6 additions & 11 deletions
17
profiles/vault/secrets-provisioning/letsencrypt-ingress.nix
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