exit_after_auth = true

vault {
  address = "https://bao.lab.example:8200"
  ca_cert = "./tls/ca.pem"

  retry {
    num_retries = 3
  }
}

auto_auth {
  method "approle" {
    mount_path = "auth/approle"
    exit_on_err = true

    config = {
      role_id_file_path                  = "./.runtime/role-id"
      secret_id_file_path                = "./.runtime/secret-id"
      remove_secret_id_file_after_reading = true
    }
  }
}

template_config {
  exit_on_retry_failure = true
}

template {
  source               = "./templates/app.json.ctmpl"
  destination          = "./.runtime/app.json"
  perms                = "0600"
  backup               = false
  create_dest_dirs     = false
  error_on_missing_key = true
}
