Skip to content

External Key Manager Configuration w. HashiCorp Vault and Cloud Volumes ONTAP on AWS

Notifications You must be signed in to change notification settings

lomar92/netapp-vault-kmip

Repository files navigation

External Key Manager Configuration

This Terraform code deploys an instance of HashiCorp Vault and Cloud Volumes ONTAP on AWS. With this code, you can quickly and easily deploy an External Key Management Server with KMIP Secrets Engine and a running Instance of NetApp's Cloud Volumes ONTAP for encrypted volumes and aggregates in AWS.

1. Requirements

2. Preparation

Download or Fork KMIP Project

git clone https://github.com/lomar92/netapp-vault-kmip
cd vault-netapp-kmip

Prepare Terraform Variables

touch terraform.tfvars
aws_region = "your-region";
vpc_cidr_block = "10.0.0.0/16";
subnet_cidr_block = "10.0.1.0/24";
ssh_key_name = "name_of_your_key_in_aws";
vault_version = "1.12.3+ent";
vault_license = "ENTERPRISE_LICENSE";
private_key_path = "PATH_TO_PRIVATE_KEY";
cloudmanager_refresh_token = "YOUR_BLUEXP_TOKEN";
cloudmanager_sa_secret_key = "Service_Account_Secret_Key";
cloudmanager_sa_client_id = "Service_Account_Client_ID";

Initiliaze your Working Directory

terraform init

Review the planned infrastructure changes and confirm them or just run Terraform apply!

terraform apply --auto--aprove

Now go for a Coffe and wait for 30minutes until your deployment is finished.

Initiliaze and Start Vault

vault operator init -key-threshold=1 -key-shares=1 -format=json > vault.txt
vault operator unseal $(jq -r '.unseal_keys_b64[0]' vault.txt)

Check your Vault License Key after Initialization

vault license get
Key                          Value
---                          -----
expiration_time              2023-11-04T23:59:59.999Z
features                     [HSM Performance Replication DR Replication MFA Sentinel Seal Wrapping Control Groups Performance Standby Namespaces KMIP Entropy Augmentation Transform Secrets Engine Lease Count Quotas Key Management Secrets Engine Automated Snapshots Key Management Transparent Data Encryption]
license_id                   41c90XXX-3b62-656e-84e5-25a193591XXX
performance_standby_count    9999
start_time                   2022-11-04T00:00:00Z
termination_time             2023-11-04T23:59:59.999Z

Deployed Ressources

  • AWS VPC with Networking and required Ports
  • Jump Host, that acts also as a client machine for mounting encrypted volume from Cloud Volumes ONTAP
  • HashiCorp Vault Instance - Single Node Instance
  • Cloud Volumes ONTAP on AWS

Outputs:

  • Public IP Vault Server
  • Ubuntu Public IP (client)
  • Vault KMIP Server Private IP

3. HashiCorp Vault & KMIP Setup Documentation

Follow this KMIP Setup Instructions on Medium

About

External Key Manager Configuration w. HashiCorp Vault and Cloud Volumes ONTAP on AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published