Skip to content

Conversation

Zenithar
Copy link
Contributor

@Zenithar Zenithar commented Feb 14, 2022

Context

Create Bundle from a HCLv2 descriptor.

# Bundle
annotations = {
    "secrets.elastic.co/leakSeverity" = "moderate"
}

# Packages
package "platform/security/databases/postgresql" {
    description = "Administrative access for database management."

    annotations = {
        "infosec.elastic.co/v1/SecretManagement#rotationPeriod" = "90"
        "infosec.elastic.co/v1/SecretManagement#generationDate" = "{{ now | isodate }}"
    }

    secrets = {
        "USER" = "admin-{{ randAlpha 8 }}"
        "PASSWORD" = "{{ strongPassword | b64enc }}"
    }
}
$ harp template --in bundle.hcl | harp from hcl 

@Zenithar Zenithar self-assigned this Feb 14, 2022
@Zenithar Zenithar merged commit ca46adf into main Feb 14, 2022
@Zenithar Zenithar deleted the feat_bundle_from_hcl branch February 14, 2022 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant