mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-27 07:06:56 -05:00
initserver: add client verification
This commit is contained in:
parent
bffa5c580c
commit
3b6bc3b28f
39 changed files with 704 additions and 175 deletions
|
|
@ -24,6 +24,11 @@ provider "docker" {
|
|||
}
|
||||
}
|
||||
|
||||
resource "random_password" "initSecret" {
|
||||
length = 32
|
||||
special = true
|
||||
override_special = "_%@"
|
||||
}
|
||||
resource "docker_image" "qemu_metadata" {
|
||||
name = var.metadata_api_image
|
||||
keep_locally = true
|
||||
|
|
@ -39,6 +44,8 @@ resource "docker_container" "qemu_metadata" {
|
|||
"${var.name}-network",
|
||||
"--libvirt-uri",
|
||||
"${var.metadata_libvirt_uri}",
|
||||
"--initsecrethash",
|
||||
"${random_password.initSecret.bcrypt_hash}",
|
||||
]
|
||||
mounts {
|
||||
source = abspath(var.libvirt_socket_path)
|
||||
|
|
@ -47,6 +54,8 @@ resource "docker_container" "qemu_metadata" {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
module "control_plane" {
|
||||
source = "./modules/instance_group"
|
||||
role = "control-plane"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
output "ip" {
|
||||
value = module.control_plane.instance_ips[0]
|
||||
}
|
||||
|
||||
output "initSecret" {
|
||||
value = random_password.initSecret.result
|
||||
sensitive = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue