Create Access Keys

Create Access Keys Using the UI

  1. Log into the Zenko UI using previously provisioned credentials (refer to Create an Account).

  2. Click Accounts on the top menu.

    ../../_images/account_banner.PNG
  3. Click + Create Access key.

    ../../_images/accounts-page.PNG
  4. Click -> Continue on the Create Root user Access keys screen.

    ../../_images/root_user_access_keys_dialog.PNG
  5. Click the copy button to save the Secret Access key ID. Make sure to save it in a secure location.

    ../../_images/close_button.PNG
  6. Click Close after saving the Secret Access key ID.

Create Access Keys Using the Command Line

  1. Set the Admin Access key ID and Secret Access key ID as environment variables.

    VAULT_CONTAINER
    VAULT_CONTAINER=$(kubectl --kubeconfig=/etc/kubernetes/admin.conf -n zenko get pods -l
    app.kubernetes.io/name=connector-vault -o jsonpath='{.items[0].metadata.name}')
    
    ADMIN_ACCESS_KEY_ID
    ADMIN_ACCESS_KEY_ID=$(kubectl --kubeconfig=/etc/kubernetes/admin.conf
    get secret artesca-data-management-vault-admin-creds.v1 -n zenko -o jsonpath='{.data.accessKey}' | base64 -d)
    
    ADMIN_SECRET_ACCESS_KEY
    ADMIN_SECRET_ACCESS_KEY=$(kubectl --kubeconfig=/etc/kubernetes/admin.conf
    get secret artesca-data-management-vault-admin-creds.v1 -n zenko -o jsonpath='{.data.secretKey}' | base64 -d)
    
  2. Generate the Account Access key.

    Note

    In the following example, account name is account1 and email is account1@scality.local.

    kubectl --kubeconfig=/etc/kubernetes/admin.conf -n zenko exec $VAULT_CONTAINER -- bash -c
    "ADMIN_ACCESS_KEY_ID=${ADMIN_ACCESS_KEY_ID} ADMIN_SECRET_ACCESS_KEY=${ADMIN_SECRET_ACCESS_KEY}
    /vault/node_modules/vaultclient/bin/vaultclient generate-account-access-key --name=account1 --host 127.0.0.1  --port 8600"