Vault

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

Update Token Vault di Cakra

Cara download vault cli dari web:


1) Klik link di bawah ini untuk men-download vault:
https://releases.hashicorp.com/vault/1.6.0-rc/vault_1.6.0-rc_windows_amd64.zip
2) Extract zip-nya dan masuk ke folder vault yang berisi file aplikasi vault
3) tahan control-shift-klik kanan di luar file vault kemudian pilih open Powershell
windows here

Username and password for vault in Cakra


username: cakra
password: Y2FrcmEuc3Zj

Urutan command generate token vault di PowerShell:


1) cd vault_1.6.0-rc_windows_amd64
2) ./vault
3) $env:VAULT_ADDR = 'https://vault.service.consul.corp.bankbtpn.co.id:8200'
4) gci Env:VAULT_ADDR
5) ./vault login -method=userpass username=cakra
pass: Y2FrcmEuc3Zj

Future Vault requests will automatically use this token.

Key Value
--- -----
token s.70r6Ysuwko1cRgecga2ddwrJ
token_accessor DZrFnKBjqENpkDugKfFKgAf6
token_duration 768h
token_renewable true
token_policies ["cakra" "default"]
identity_policies []
policies ["cakra" "default"]
token_meta_username cakra

Untuk cek tanggal kadaluarsa vault:


1) Jalankan command './vault token lookup <token vault yang sudah di-generate>'
2) Tanggal kadaluarsa ada pada key 'expire_time'

Key Value
--- -----
accessor DZrFnKBjqENpkDugKfFKgAf6
creation_time 1638245272
creation_ttl 768h
display_name userpass-cakra
entity_id 33b02a0c-1543-c886-96ee-067909c90cb7
expire_time 2022-01-01T11:07:52.860026434+07:00
explicit_max_ttl 0s
id s.70r6Ysuwko1cRgecga2ddwrJ
issue_time 2021-11-30T11:07:52.860048722+07:00
meta map[username:cakra]
num_uses 0
orphan true
path auth/userpass/login/cakra
policies [cakra default]
renewable true
ttl 767h42m56s
type service

Urutan update token vault di OCP ms-1 dan ms-2:


1) Buka https://console-openshift-console.apps.ms-1.corp.bankbtpn.co.id (untuk ms-
1) dan
https://console-openshift-console.apps.ms-2.corp.bankbtpn.co.id (untuk ms-2)
2) Klik Project -> cari 'cakra' -> klik 'cakra'
3) Klik Workloads -> Deployment Configs -> cari 'ms-vault' -> klik 'ms-vault' ->
klik Environment
4) Edit 'VAULT_TOKEN' -> klik Save
5) Uji token di https://registry-checker.apps.ms-1.corp.bankbtpn.co.id/v1, jika
sukses berarti vault tersebut berjalan (Step tersebut
juga bisa dijalankan di
https://registry-checker.apps.ms-2.corp.bankbtpn.co.id/v1)

N.B.: Langkah ke-3 hingga ke-5 juga berlaku untuk MS 'ms-vault-before'

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy