fix(vault): correctly rewrite paths for vault API proxy (#149)

This commit is contained in:
2026-08-02 19:47:07 -04:00
committed by GitHub
parent 7782cf8973
commit ef2207ed72
4 changed files with 8 additions and 4 deletions
+4
View File
@@ -644,3 +644,7 @@ First tagged release. Establishes the `vX.Y.Z` tag convention that the in-app up
[1.1.2]: https://github.com/theta42/sso-manager-node/compare/v1.1.1...v1.1.2 [1.1.2]: https://github.com/theta42/sso-manager-node/compare/v1.1.1...v1.1.2
[1.1.1]: https://github.com/theta42/sso-manager-node/compare/v1.1.0...v1.1.1 [1.1.1]: https://github.com/theta42/sso-manager-node/compare/v1.1.0...v1.1.1
[1.1.0]: https://github.com/theta42/sso-manager-node/releases/tag/v1.1.0 [1.1.0]: https://github.com/theta42/sso-manager-node/releases/tag/v1.1.0
## [1.19.6] - 2026-08-02
### Fixed
- Fixed Vault API returning 403 on the Secrets List due to `http-proxy-middleware` v2 rewriting the path incorrectly (it previously appended the `/api/vault/` mount path to the proxied Vault request).
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "t42-sso-manager", "name": "t42-sso-manager",
"version": "1.19.5", "version": "1.19.6",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "t42-sso-manager", "name": "t42-sso-manager",
"version": "1.19.5", "version": "1.19.6",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^7.3.0", "@fortawesome/fontawesome-free": "^7.3.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "t42-sso-manager", "name": "t42-sso-manager",
"version": "1.19.5", "version": "1.19.6",
"description": "A very simple LDAP management and SSO system", "description": "A very simple LDAP management and SSO system",
"author": [ "author": [
{ {
+1 -1
View File
@@ -202,7 +202,7 @@ function vaultProxy() {
return createProxyMiddleware({ return createProxyMiddleware({
target: VAULT_ADDR, target: VAULT_ADDR,
changeOrigin: true, changeOrigin: true,
pathRewrite: { '^/': '/v1/' }, pathRewrite: { '^/api/vault': '/v1' },
on: { on: {
proxyReq(proxyReq, req, res, options) { proxyReq(proxyReq, req, res, options) {
fixRequestBody(proxyReq, req, res, options); fixRequestBody(proxyReq, req, res, options);