Skip to content

Instantly share code, notes, and snippets.

View lucymhdavies's full-sized avatar
🍓
Strawb System

Lucy Davinhart || Strawb System lucymhdavies

🍓
Strawb System
View GitHub Profile
@lucymhdavies
lucymhdavies / README.md
Last active July 7, 2021 12:01
Dynamic Terraform for Vault PKI Roles

Terraform plan to create this example looks like:

  # vault_pki_secret_backend_role.pki_roles["pki/inter/davnet.lmhd.me.yaml"] will be created
  + resource "vault_pki_secret_backend_role" "pki_roles" {
      + allow_any_name                     = false
      + allow_bare_domains                 = false
      + allow_glob_domains                 = false
      + allow_ip_sans                      = true
      + allow_localhost                    = false
@lucymhdavies
lucymhdavies / policy attributes
Created August 7, 2022 13:35
HashiCorp Vault Sentinel policy to limit Userpass auth to my home network
$ vault read sys/policies/egp/restrict-userpass-cidr
Key Value
--- -----
enforcement_level hard-mandatory
name restrict-userpass-cidr
paths [auth/userpass/*]
policy ...