Skip to content

Commit 6c89e0c

Browse files
author
Rod Anami
committed
Updated docs
1 parent 926e57e commit 6c89e0c

File tree

6 files changed

+85
-34
lines changed

6 files changed

+85
-34
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
* `0.4.10`
66
* Upgraded development env to Vault server `1.11.0`
77
* Upgraded all dependencies (`Axios` and `Jest`)
8-
* Improved KV secret engine tests
8+
* Improved KV secret engine assertions
9+
* Added *AD secret engine* functions:
10+
* `setADConfig`
11+
* `readADConfig`
12+
* `updateADConfig`
13+
* `deleteADConfig`
914

1015
* `0.4.9`
1116
* Upgraded development env to Vault server `1.10.2`

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -226,19 +226,20 @@ Check below docs for more information on specific function groups.
226226

227227
### List of functions available
228228

229-
| **Group** | **Link** |
230-
|:---------------------------------------|:--------------:|
231-
| **AppRole** auth method API endpoints - /auth/approle | [Doc file](/docs/AppRole-Functions.md) |
232-
| **LDAP** auth method API endpoints - /auth/ldap | [Doc file](/docs/LDAP-Functions.md) |
233-
| **Kubernetes** auth method API endpoints - /auth/kubernetes | [Doc file](/docs/Kubernetes-Functions.md) |
234-
| **KV v2** secret engine API endpoints | [Doc file](/docs/KVV2-Functions.md) |
235-
| **PKI secret** engine API endpoints | [Doc file](/docs/PKI-Functions.md) |
236-
| **System Backend** API endpoints - General | [Doc file](/docs/Sys-Functions.md) |
237-
| **System Backend** API endpoints - SEAL operations | [Doc file](/docs/Sys-Seal-Functions.md) |
238-
| **TLS Certificate** auth method API endpoints - /auth/cert | [Doc file](/docs/TLS-Cert-Functions.md) |
239-
| **Token** auth method API endpoints - /auth/token | [Doc file](/docs/Token-Functions.md) |
240-
| **Userpass** auth method API endpoints - /auth/userpass | [Doc file](/docs/Userpass-Functions.md) |
241-
| | |
229+
| **Group** | **Type** | **Default mount point** | **Link** |
230+
|:------------------|:------------------|:------------------|:--------------:|
231+
| **Active Directory** (AD) | Secret engine | `/ad` | [Doc file](/docs/AD-Functions.md) |
232+
| **AppRole** | Auth method | `/auth/approle` | [Doc file](/docs/AppRole-Functions.md) |
233+
| **LDAP** | Auth method | `/auth/ldap` | [Doc file](/docs/LDAP-Functions.md) |
234+
| **Kubernetes** | Auth method | `/auth/kubernetes` | [Doc file](/docs/Kubernetes-Functions.md) |
235+
| **KV v2** | Secret engine | `/kv` | [Doc file](/docs/KVV2-Functions.md) |
236+
| **PKI** | Secret engine | `/pki` | [Doc file](/docs/PKI-Functions.md) |
237+
| **System Backend** | System | General operations | [Doc file](/docs/Sys-Functions.md) |
238+
| **System Backend** | System | SEAL operations | [Doc file](/docs/Sys-Seal-Functions.md) |
239+
| **TLS Certificate** | Auth method | `/auth/cert` | [Doc file](/docs/TLS-Cert-Functions.md) |
240+
| **Token** | Auth method | `/auth/token` | [Doc file](/docs/Token-Functions.md) |
241+
| **Userpass** | Auth method | `/auth/userpass` | [Doc file](/docs/Userpass-Functions.md) |
242+
| | | | |
242243

243244

244245
### Coverage and Limitations
@@ -263,6 +264,7 @@ The following HashiCorp Vault API endpoints are currently covered:
263264

264265
| **Engine** | **Coverage status** |
265266
|:------------|:-----------|
267+
| [Active Directory (AD)](https://www.vaultproject.io/api-docs/secret/ad) | `Config only` |
266268
| [KV Version 2](https://www.vaultproject.io/api-docs/secret/kv/kv-v2) | `All endpoints` |
267269
| [PKI](https://www.vaultproject.io/api-docs/secret/pki) | `Most of them` |
268270
| | |

docker/docker-compose.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3'
22
services:
33
vault:
4-
image: vault:1.10.2
4+
image: vault:1.11.0
55
container_name: my-vault
66
ports:
77
- "8200:8200"
@@ -15,7 +15,7 @@ services:
1515
- ./volumes/certs:/vault/certs
1616
cap_add:
1717
- IPC_LOCK
18-
entrypoint: vault server -config=/vault/config/vault.json
18+
entrypoint: vault server -config=/vault/config/vault.hcl
1919
networks:
2020
default:
2121
driver: bridge

docker/volumes/config/vault.hcl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
storage "file" {
3+
path = "/vault/file"
4+
}
5+
6+
listener "tcp" {
7+
address = "0.0.0.0:8200"
8+
tls_disable = false
9+
tls_cert_file = "/vault/certs/vault.crt"
10+
tls_key_file = "/vault/certs/vault.key"
11+
}
12+
13+
ui = true
14+
disable_mlock = true
15+
max_lease_ttl = "760h"
16+
default_lease_ttl = "760h"
17+
api_addr = "https://127.0.0.1:8200"

docker/volumes/config/vault.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

docs/AD-Functions.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Hashi Vault JS
2+
3+
## AD Functions List
4+
5+
* setADConfig(token, data, mount)
6+
7+
```javascript
8+
/**
9+
* @param {String<required>} token
10+
* @param {Object<required>} data
11+
* @param {String} mount
12+
* @returns {Promise<Object>}
13+
*/
14+
```
15+
16+
* updateADConfig(token, data, mount)
17+
18+
```javascript
19+
/**
20+
* @param {String<required>} token
21+
* @param {Object<required>} data
22+
* @param {String} mount
23+
* @returns {Promise<Object>}
24+
*/
25+
```
26+
27+
* readADConfig(token, mount)
28+
29+
```javascript
30+
/**
31+
* @param {String<required>} token
32+
* @param {String} mount
33+
* @returns {Promise<Object>}
34+
*/
35+
```
36+
37+
* deleteADConfig(token, mount)
38+
39+
```javascript
40+
/**
41+
* @param {String<required>} token
42+
* @param {String} mount
43+
* @returns {Promise<Object>}
44+
*/
45+
```

0 commit comments

Comments
 (0)