-
Notifications
You must be signed in to change notification settings - Fork 3
/
vault_ssh.tf
47 lines (43 loc) · 1.31 KB
/
vault_ssh.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
resource "vault_mount" "ssh_mount" {
provider = vault.app
path = "ssh-client-signer"
type = "ssh"
description = "SSH Mount"
}
resource "vault_ssh_secret_backend_ca" "ssh_backend" {
provider = vault.app
backend = vault_mount.ssh_mount.path
generate_signing_key = true
# public_key = file(var.path_to_public_key)
# private_key = file(var.path_to_private_key)
}
resource "vault_ssh_secret_backend_role" "ssh_role" {
provider = vault.app
name = "boundary-client"
backend = vault_mount.ssh_mount.path
key_type = "ca"
allow_host_certificates = true
allow_user_certificates = true
default_user = "ubuntu"
ttl = "2m0s"
default_extensions = {
permit-pty = ""
}
allowed_users = "*"
allowed_extensions = "*"
}
resource "vault_ssh_secret_backend_role" "guy" {
provider = vault.app
name = "boundary-client"
backend = vault_mount.ssh_mount.path
key_type = "ca"
allow_host_certificates = true
allow_user_certificates = true
default_user = "ubuntu"
ttl = "2m0s"
default_extensions = {
permit-pty = ""
}
allowed_users = "*"
allowed_extensions = "*"
}