Skip to content

Instantly share code, notes, and snippets.

@kalinon
Created May 18, 2020 18:34
Show Gist options
  • Save kalinon/e2e1dd4372d83f8168c54e506a538525 to your computer and use it in GitHub Desktop.
Save kalinon/e2e1dd4372d83f8168c54e506a538525 to your computer and use it in GitHub Desktop.
medium-335312a6349a-02
#!/usr/bin/env bash
MINIOCLUSTER="myminio"
VAULT_ID="vault"
VAULT_SECRET="F210D489-60B7-46CC-816E-1F8ED823C4FC"
# Create the vault bucket
mc mb ${MINIOCLUSTER}/vault
# Create the vault policy
mc admin policy add ${MINIOCLUSTER} vaultACL vault.json
# Create the vault user and set its permissions to the ACL
mc admin user add ${MINIOCLUSTER} ${VAULT_ID} ${VAULT_SECRET}
mc admin policy set ${MINIOCLUSTER} vaultACL user=${VAULT_ID}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment