fix(vault): correctly rewrite paths for vault API proxy (#149)
This commit is contained in:
@@ -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).
|
||||||
|
|||||||
Generated
+2
-2
@@ -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
@@ -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": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user