feat(terraform/vault): add RabbitMQ server role
And allow CI to emit it. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
b107091d50
commit
1f634346eb
2 changed files with 19 additions and 1 deletions
|
@ -63,7 +63,9 @@
|
|||
ci = {
|
||||
# This allows the CI to issue certificates for CI purposes.
|
||||
# It should be a relative path.
|
||||
"pki/issue/ci".capabilities = [ "read" "create" "update" ];
|
||||
"issue/ci".capabilities = [ "read" "create" "update" ];
|
||||
# CI is allowed to be a RabbitMQ server.
|
||||
"issue/rabbitmq-server".capabilities = [ "read" "create" "update" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -77,6 +79,17 @@
|
|||
allow_wildcard_certificates = false;
|
||||
ou = [ "Floral Systems Continuous Integration Systems" ];
|
||||
};
|
||||
|
||||
rabbitmq-server = {
|
||||
ttl = "7d";
|
||||
max_ttl = "45d";
|
||||
allowed_domains = [ "amqp.forkos.org" ];
|
||||
allow_bare_domains = true;
|
||||
allow_subdomains = false;
|
||||
allow_glob_domains = false;
|
||||
allow_wildcard_certificates = false;
|
||||
ou = [ "Floral Systems AMQP Systems" ];
|
||||
};
|
||||
};
|
||||
|
||||
# It's possible to continue the chain but we don't need that here.
|
||||
|
|
|
@ -30,6 +30,11 @@ in
|
|||
type = types.listOf types.str;
|
||||
};
|
||||
|
||||
allow_bare_domains = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
allow_subdomains = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
|
|
Loading…
Reference in a new issue