vvauth 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/API_and_tests.md +3 -9
- package/README.md +16 -5
- package/go.mod +2 -2
- package/go.sum +2 -0
- package/package.json +2 -2
package/API_and_tests.md
CHANGED
|
@@ -15,8 +15,7 @@ venv --gitlab
|
|
|
15
15
|
|
|
16
16
|
`env --ir://json` writes one JSON object to stdout, with diagnostics on stderr.
|
|
17
17
|
JSON key order and final whitespace are not significant. `venv` sources
|
|
18
|
-
`vauth env --source "$@"`; renewal forces authentication.
|
|
19
|
-
publishes only four `CI_PROJECT_*` exports, without login, cache or file writes.
|
|
18
|
+
`vauth env --source "$@"`; renewal forces authentication.
|
|
20
19
|
|
|
21
20
|
## Node CLI — cnyks
|
|
22
21
|
|
|
@@ -94,17 +93,12 @@ check required CI variables when `env.gitlab` is true; explicit initialization
|
|
|
94
93
|
bypasses that prerequisite. There is no Git inference at construction.
|
|
95
94
|
|
|
96
95
|
RC is the complete raw configuration; environment sections are copied before
|
|
97
|
-
macro expansion.
|
|
96
|
+
macro expansion. Both support
|
|
98
97
|
SSH-agent-backed local secret decryption, inherited tokens and forced renewal.
|
|
99
98
|
`env.map` names must be valid environment names. Values become strings; null
|
|
100
99
|
becomes empty, and objects/arrays are rejected, including macro results. Raw RC
|
|
101
100
|
values retain their JSON types. Missing Git identity fields export empty values.
|
|
102
101
|
|
|
103
|
-
Go macro expansion and value walking come from `github.com/131/nyks/v6`.
|
|
104
|
-
Configuration operates on JSON-compatible values rather than round-tripping
|
|
105
|
-
RC through a YAML tree. Walking preserves keys and the raw RC snapshot;
|
|
106
|
-
`env.map` validation and scalar-to-string conversion remain in vvauth.
|
|
107
|
-
|
|
108
102
|
## Configuration trust boundary
|
|
109
103
|
|
|
110
104
|
The selected configuration controls exported variable names/values and which
|
|
@@ -130,4 +124,4 @@ Vault fixtures; they do not require real credentials. Differential checks cover
|
|
|
130
124
|
profile/KV operations, renewal, trust refusal, local secrets, configuration,
|
|
131
125
|
JSON environment output and the shared armor/cache. Linux/Windows builds and
|
|
132
126
|
Node 16 parsing/loading are checked separately. Release CI publishes npm,
|
|
133
|
-
Go tags and signed Windows
|
|
127
|
+
Go tags and Linux/signed Windows binaries; verify asset checksums independently.
|
package/README.md
CHANGED
|
@@ -24,8 +24,14 @@ venv
|
|
|
24
24
|
venv --renew
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
`
|
|
28
|
-
|
|
27
|
+
`vauth install` defines the Bash function `venv` in `~/.bashrc`:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
function venv() { source <(/usr/bin/env vauth env --source "$@"); }
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
`source ~/.bashrc` loads it in the current shell. `--renew` forces fresh
|
|
34
|
+
authentication. For a machine-readable result:
|
|
29
35
|
|
|
30
36
|
```bash
|
|
31
37
|
vauth env --ir://json
|
|
@@ -39,6 +45,8 @@ stderr. Node uses cnyks for its CLI; Go has a native command interface.
|
|
|
39
45
|
|
|
40
46
|
The first existing configuration is selected: `VAUTHRC`, `./.vauthrc`, then
|
|
41
47
|
`~/.vauthrc`. It is YAML; `VAULT_ADDR` supplies the address fallback.
|
|
48
|
+
The resolved SSH role is normalized to lowercase by vauth-login in both
|
|
49
|
+
implementations; the source configuration, other fields and JWT roles are unchanged.
|
|
42
50
|
|
|
43
51
|
```yaml
|
|
44
52
|
vault_addr: https://vault.example.test
|
|
@@ -66,9 +74,6 @@ Initialize them explicitly from `origin`:
|
|
|
66
74
|
venv --gitlab
|
|
67
75
|
```
|
|
68
76
|
|
|
69
|
-
This exports only `CI_PROJECT_PATH`, `CI_PROJECT_NAME`, `CI_PROJECT_NAMESPACE`
|
|
70
|
-
and `CI_PROJECT_PATH_SLUG`. It does not authenticate or modify configuration.
|
|
71
|
-
|
|
72
77
|
## Tokens and trust
|
|
73
78
|
|
|
74
79
|
An inherited `VAULT_TOKEN` is reused offline. Otherwise, vauth-login handles
|
|
@@ -93,6 +98,12 @@ checks and limitations. They are independent source reviews, not certification.
|
|
|
93
98
|
reviewer limitations from host validation; [provenance](SECURITY_AUDIT_PROVENANCE.json)
|
|
94
99
|
records the exact source, models and prompt/report hashes.
|
|
95
100
|
|
|
101
|
+
| Criterion | Claude Opus 5.5 | GPT 6.1 Sol |
|
|
102
|
+
| --- | ---: | ---: |
|
|
103
|
+
| ✨ **Coolness** | 15/20 | 17/20 |
|
|
104
|
+
| Robustness | 13/20 | 13/20 |
|
|
105
|
+
| Safety | 13/20 | 12/20 |
|
|
106
|
+
|
|
96
107
|
## Credits
|
|
97
108
|
|
|
98
109
|
- [Francois Leurent](https://github.com/131)
|
package/go.mod
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
module github.com/131/vvauth/v2
|
|
2
2
|
|
|
3
|
-
// version: 2.6.
|
|
3
|
+
// version: 2.6.2
|
|
4
4
|
|
|
5
5
|
go 1.22
|
|
6
6
|
|
|
7
7
|
require (
|
|
8
8
|
github.com/131/ssh-agent-crypt v1.4.4
|
|
9
|
-
github.com/131/vauth-login v1.1.
|
|
9
|
+
github.com/131/vauth-login v1.1.8
|
|
10
10
|
github.com/Masterminds/semver/v3 v3.5.0
|
|
11
11
|
gopkg.in/yaml.v3 v3.0.1
|
|
12
12
|
)
|
package/go.sum
CHANGED
|
@@ -4,6 +4,8 @@ github.com/131/ssh-agent-crypt v1.4.4 h1:6MlDUao1Yq6iNY4Bgin/iZp2q3X/g6qD6H1X4ad
|
|
|
4
4
|
github.com/131/ssh-agent-crypt v1.4.4/go.mod h1:/THxpIdVrEAHxNoc6t6lVYBsSEd1zkCROPZepDe8QTI=
|
|
5
5
|
github.com/131/vauth-login v1.1.7 h1:i256JyHP05WKqIrLv18ThfitGipH4oKnN7zpQESzV7U=
|
|
6
6
|
github.com/131/vauth-login v1.1.7/go.mod h1:Dch6CZkaAxnYCD1V83h0g0xPQORjQoZarOOVt4mhNv8=
|
|
7
|
+
github.com/131/vauth-login v1.1.8 h1:ElE+HTirBMmZNUPu788ndmAH844EnmWGFtCeHpi2WHs=
|
|
8
|
+
github.com/131/vauth-login v1.1.8/go.mod h1:t7h0e1phy9sBHfsHlK2jXFstlS7VszU5gcTS4mDSnMQ=
|
|
7
9
|
github.com/Masterminds/semver/v3 v3.5.0 h1:kQceYJfbupGfZOKZQg0kou0DgAKhzDg2NZPAwZ/2OOE=
|
|
8
10
|
github.com/Masterminds/semver/v3 v3.5.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM=
|
|
9
11
|
github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vvauth",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"description": "Vault Auth helper",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"nyks": "^6.18.0",
|
|
19
19
|
"semver": "^7.5.4",
|
|
20
20
|
"ssh-agent-crypt": "^1.4.4",
|
|
21
|
-
"vauth-login": "^1.1.
|
|
21
|
+
"vauth-login": "^1.1.8"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"eslint": "^8.57.0",
|