$ cd scripts
$ ./create_cluster.sh
$ ./setup_openunison.sh
add port forwarding for ports 443, 10444, 10445. Make public and https.
Create initia-admin user:
- User & Auth Methods
- New
- API Key
- Name: init-admin, Click "Finish"
- copy access id and access key
Add init-admin to admin role:
- Access Roles
- admin
- Associate
- Choose /init-admin for Auth Method
Setup akeyless
$ akeyless
AKEYLESS-CLI, first use detected
For more info please visit: https://docs.akeyless.io/docs/cli
Enter Akeyless URL (Default: vault.akeyless.io)
Would you like to configure a profile? (Y/n) Y
Profile Name: (Default: default)
Access Type (enter for access_key):
1) access_key
2) aws_iam
3) azure_ad
4) saml
5) ldap
6) email/password
7) oidc
8) k8s
9) gcp
10) certificate
11) oci
1
Access ID: p-************
Access Key: ********************************************
The profile: default was successfully configured
Would you like to move 'akeyless' binary to: /home/codespace/.akeyless/bin/akeyless? (Y/n)
Please type your answer: n
Setup SSO with akeyless
$ cd scripts
$ ./setup_akeyless_sso.sh
If you see the error failed to create auth method: Desc: auth method creation failed, Error: Desc: Failed to create auth method. Status 400 Bad Request, Error: InvalidParam. Message: account id: acc-eml1vex0l1Tm, access id: p-vbkes1ww9i6uam. Desc: Failed to create access. Status 400 Bad Request, Error: InvalidAccessParams. Message: failed to load provider issuer
, the 443 port forwarder is not set to public
Setup Gateway
$ cd scripts
$ ./setup_akeyless_gateway.sh
Add port 10446 to portforward. Change to HTTPS, public.
Every 2.0s: kubectl get pods -n akeyless codespaces-9076fc: Tue Sep 10 14:21:16 2024
NAME READY STATUS RESTARTS AGE
gw-akeyless-api-gateway-7c8bcdb55-7wdxs 0/1 Running 0 2m
gw-akeyless-api-gateway-7c8bcdb55-z96bv 0/1 Running 0 2m
Once the gateways are running, login to the akeyless console, then:
- Users & Auth Methods
- openunison
- Add
https://githubspaceshost-10446.app.github.dev/gw/login-oidc
to Allowed Redirect URIs where githubspaceshost is the name of your github codespace
Setup Kubernetes Authentication
$ cd scripts
$ ./setup_k8s_auth_cp.sh