Skip to content

Commit

Permalink
test vault
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Jan 9, 2024
1 parent 1b852dc commit 817e9b1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
6 changes: 4 additions & 2 deletions apps/vault/.env
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# This image have no latest
W9_VERSION=1.13.3
W9_DIST=community
W9_REPO=vault
W9_REPO=hashicorp/vault
#### -- Not allowed to edit below environments when recreate app based on existing data -- ####
W9_ID=vault
W9_HTTP_PORT=8200
W9_HTTP_PORT_SET=9001
W9_URL=appname.example.com
W9_NETWORK=websoft9
#### --------------------------------------------------------------------------------------- ####

W9_LOGIN_GET_TOKEN="Get Token from Vault container logs"
#### --------------------------------------------------------------------------------------- ####
12 changes: 3 additions & 9 deletions apps/vault/Notes.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
# Vault

Vault 是hashicorp旗下的密码管理方案,支出多用户户、API和LDAP等
Vault 是hashicorp旗下的密码管理方案,支出多用户户、API和LDAP等

## 安装

如果是手动安装,安装完成后有一个**启封(unseal)**的动作。
但如果是 Docker 安装,只需要通过 Vault 容器日志查看启封后的结果 **Root Token**

Vault 默认启动(cmd 不带任何参数)是以 Dev 模式运行。Dev 模式下只需要通过 Vault 容器日志查看启封后的结果 **Root Token**

## GUI

默认支持图形化界面(端口:8200),且图形化界面可以很方面的运行 CLI。

## 配置文件

支持通过环境变量导入配置文件的参数

## 概念

秘钥
支持通过环境变量导入配置文件的参数
4 changes: 2 additions & 2 deletions apps/vault/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# https://hub.docker.com/_/vault
# image: https://hub.docker.com/r/hashicorp/vault
# docs: https://www.vaultproject.io/

version: '3.8'
Expand All @@ -10,7 +10,7 @@ services:
cap_add:
- IPC_LOCK
ports:
- '${W9_HTTP_PORT_SET}:${W9_HTTP_PORT}'
- '${W9_HTTP_PORT_SET}:8200'
env_file:
- .env
environment:
Expand Down
3 changes: 2 additions & 1 deletion apps/vault/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
{
"dist": "community",
"version": [
"1.13.3"
"1.15",
"latest"
]
}
],
Expand Down

0 comments on commit 817e9b1

Please sign in to comment.