feat(ssh_locker): implement ssh locker helper scripts and configuration for Duo API integration

This commit is contained in:
2025-05-22 22:55:27 +02:00
parent f6be1d5dbe
commit 071b4eea9e
13 changed files with 360 additions and 3 deletions
@@ -0,0 +1,14 @@
locals {
config = {
"clientId" : var.duo_client_id
"clientSecret" : var.duo_client_secret
"apiHost" : var.duo_api_host
"redirectUri" : var.redirect_uri
"accessToken" : var.access_token
"socketPath" : "/app/socket"
"tlsCert" : var.tls_enabled ? "/etc/ssl/certs/private/tls.crt" : ""
"tlsKey" : var.tls_enabled ? "/etc/ssl/certs/private/tls.key" : ""
}
config_json = jsonencode(local.config)
config_checksum = sha256(local.config_json)
}