Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- 와이브로
- C#
- VS2008
- JavaScript
- GDI
- self-signed ssl
- Font
- crashlog
- net
- docker
- .net
- 데이터 전달
- 블루투스 헤드셋
- C/C++
- PDA
- protobuf-c
- Antialiasing
- 자바스크립트
- php
- EUC-KR
- 크래시로그
- M8200
- plcrashreporter
- 한 번만 실행
- API
- phpmailer
- ClickOnce
- 설치제거
- MFC
- 기념일관리
Archives
- Today
- Total
~☆~ 우하하!!~ 개발블로그
Vault 본문
728x90
반응형
[Install]
sudo apt-get install curl
sudo curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
sudo apt-get update
sudo apt-get install vault
[config]
sudo mkdir -p /home/ubuntu/vault/config /home/ubuntu/vault/file
sudo vi /home/ubuntu/vault/config/config.hcl
ui = true
api_addr = "http://192.168.0.84:8200" # vault 서버 주소
listener "tcp" {
address = "0.0.0.0:8200"
tls_disable = "true"
}
storage "file" {
path = "/home/ubuntu/vault/file"
}
[run]
sudo vault server -config /home/ubuntu/vault/config/config.hcl
[config2]
sudo mkdir -p /home/ubuntu/vault/file_backend
sudo vi /home/ubuntu/vault/config/f.hcl
ui = true
disable_mlock = true
backend "file" {
path = "/home/ubuntu/vault/file_backend"
}
listener "tcp" {
address = "0.0.0.0:8200"
tls_disable = "true"
}
raw_storage_endpoint = true
api_addr = "http://192.168.0.84:8200"
cluster_addr = "http://192.168.0.84:8201"
[run2]
sudo vault server -config /home/ubuntu/vault/config/f.hcl
[web]
http://192.168.0.84:8200
https://sg-choi.tistory.com/622
https://www.twilio.com/blog/get-secrets-from-hashicorp-vault-into-dotnet-configuration-with-csharp
[Initialize]
[Unseal]
Download keys 파일의 keys 항목의 값을 사용하여 Unseal
root_token 값을 입력하여 Sign In
vault kv get -mount=secret test
또는 vault kv get secret/test
== Secret Path ==
secret/data/test
======= Metadata =======
Key Value
--- -----
created_time 2023-06-09T06:57:25.961972716Z
custom_metadata <nil>
deletion_time n/a
destroyed false
version 1
===== Data =====
Key Value
--- -----
testid woohaha
woohaha@woohaha-virtual-machine:/home/ubuntu/vault/file_backend$ vault kv get secret/test
== Secret Path ==
secret/data/test
======= Metadata =======
Key Value
--- -----
created_time 2023-06-09T06:57:25.961972716Z
custom_metadata <nil>
deletion_time n/a
destroyed false
version 1
===== Data =====
Key Value
--- -----
testid woohaha
woohaha@woohaha-virtual-machine:/home/ubuntu/vault/file_backend$ vault kv put secret/test foo=world
== Secret Path ==
secret/data/test
======= Metadata =======
Key Value
--- -----
created_time 2023-06-09T07:47:54.050911941Z
custom_metadata <nil>
deletion_time n/a
destroyed false
version 2
woohaha@woohaha-virtual-machine:/home/ubuntu/vault/file_backend$ vault kv get secret/test
== Secret Path ==
secret/data/test
======= Metadata =======
Key Value
--- -----
created_time 2023-06-09T07:47:54.050911941Z
custom_metadata <nil>
deletion_time n/a
destroyed false
version 2
=== Data ===
Key Value
--- -----
foo world
반응형
'개발환경' 카테고리의 다른 글
VMware ESXi 6.5 U3 – 설치 (0) | 2024.03.03 |
---|---|
HPE ProLiant MicroServer (Gen8) 활용 (0) | 2024.03.03 |
private docker registry setting - harbor in ubuntu (0) | 2023.03.28 |
git 커밋 히스토리를 엑셀 파일로 저장하기 (0) | 2018.01.16 |
mantis 설치 (0) | 2012.04.16 |