Fredrik Adelöw
7455dae884
require the use of node prefix on native imports
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2026-01-26 13:22:53 +01:00
amintong
1c9d93a2b5
pathPrefix use hardcode
...
Signed-off-by: amintong <amintong@tencent.com >
2025-08-11 10:41:34 +08:00
amintong
0810cd8539
fix(proxy-backend): correct rewrite rule to avoid extra subpath in proxy path\n\nUse getBaseUrl instead of getExternalBaseUrl for pathPrefix, ensuring rewrite rule is /api/proxy/... and not /subpach/api/proxy/...\n\nAdded changeset for patch release.
...
Signed-off-by: amintong <amintong@tencent.com >
2025-08-11 10:41:34 +08:00
Nina Berg
9b5b744e24
add changeset and tests
...
Signed-off-by: Nina Berg <nikb100@gmail.com >
2025-04-07 14:36:09 -04:00
Nina Berg
d65ec54f23
proxy-backend support sse connections closing
...
Signed-off-by: Nina Berg <nikb100@gmail.com >
2025-04-07 11:30:24 -04:00
Patrik Oldsberg
2d8b0e4d16
proxy-backend: remove support for old backend system
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2025-02-27 16:41:45 +01:00
blam
e11c2fc648
chore: Refactor a little bit to use proxyconfig instead
...
Signed-off-by: blam <ben@blam.sh >
2025-01-14 07:59:08 +01:00
Matt Benson
ca2f9c29de
strongly type proxyConfig
...
Signed-off-by: Matt Benson <gudnabrsam@gmail.com >
2025-01-03 09:38:19 -06:00
Matt Benson
11b001cf4d
Add proxyEndpointsExtensionPoint
...
Signed-off-by: Matt Benson <gudnabrsam@gmail.com >
2025-01-03 09:38:19 -06:00
Fredrik Adelöw
5c9cc05eee
remove most usages of node-fetch
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-11-30 23:54:19 +01:00
Patrik Oldsberg
7cfc0c1902
plugins/*-backend: flip around alpha exports to stable
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-10-14 10:04:08 +02:00
Patrik Oldsberg
3109c24cb3
promote all backend feature exports to main entry point
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-10-11 16:47:41 +02:00
Patrik Oldsberg
e902568e5f
proxy-backend: increase timeout for large test
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-08-21 23:05:50 +02:00
Fredrik Adelöw
b5eb69ec99
Merge pull request #26096 from backstage/jhaals/proxy-backend
...
proxy-backend: Deprecate createRouter
2024-08-21 12:02:59 +02:00
Fredrik Adelöw
9080f57970
remove service compat too
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-08-20 13:26:25 +02:00
Johan Haals
d298e6ed88
proxy-backend: Deprecate createRouter
...
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2024-08-20 11:24:13 +02:00
Johan Haals
24bed62544
backend-app-api: Remove deprecated service implementations
...
Co-authored-by: Camila Belo <camilaibs@gmail.com >
Signed-off-by: Johan Haals <johan.haals@gmail.com >
2024-08-14 14:32:02 +02:00
Camila Belo
b82aff92aa
refactor(test-utils): deprecate the isDockerDisabledForTests function
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2024-07-10 17:06:00 +02:00
Camila Belo
95a3a0b91c
refactor(test-utils): rename setupRequestMockHandlers to setupMswHandler
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2024-07-10 15:45:49 +02:00
Fredrik Adelöw
6dea413214
Revert "attempt to fix the _a.destroy is not a function error"
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-05-31 09:48:32 +02:00
Fredrik Adelöw
65b11c1f80
attempt to fix the _a.destroy is not a function error
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-05-30 17:08:44 +02:00
Fredrik Adelöw
fdcaf5d938
move to startTestBackend
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-05-23 11:37:47 +02:00
Fredrik Adelöw
539b1382af
improve the config test too
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-05-23 09:56:49 +02:00
Fredrik Adelöw
e187e99b47
port proxy tests to msw2 to try to get rid of spurious build errors
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-05-22 15:21:24 +02:00
Camila Belo
737f3ae5ef
Merge branch 'master' into camilaibs/nbs10-deprecate-legacy-system-commons
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2024-05-21 15:12:02 +02:00
Patrik Oldsberg
890a1d078a
Merge pull request #24814 from backstage/camilaibs/nbs10-deprecate-more-legacy-system-helpers
...
[NBS 1.0] deprecate legacy service builder
2024-05-21 14:40:02 +02:00
Camila Belo
8869b8ef30
refactor: stop using the legacy standalone server
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2024-05-17 11:37:04 +02:00
Camila Belo
eb34b87d5a
refactor: stop using getVoidLogger in tests
...
Signed-off-by: Camila Belo <camilaibs@gmail.com >
2024-05-16 09:21:54 +02:00
Fredrik Adelöw
88480e4ef2
proxy-backend: require auth by default
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2024-05-06 13:35:49 +02:00
Patrik Oldsberg
eae097ca3f
proxy-backend: allow unauthenticated requests
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2024-03-26 15:11:55 +01:00
Patrik Oldsberg
8613ba3928
plugins: remove usages of --experimental-type-build
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-10-22 11:49:44 +02:00
Fredrik Adelöw
ba9c46bdd7
stop using SingleHostDiscovery
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2023-10-12 09:22:23 +02:00
Fredrik Adelöw
7ada5d9f07
Merge pull request #19759 from jerolimov/proxy-backend-error-message
...
proxy-backend: Add info to the error message which proxy target isn't well configured
2023-09-12 12:10:33 +02:00
Patrik Oldsberg
71114ac50e
plugins: refactory to use default export for new backend system
...
Co-authored-by: Fredrik Adelöw <freben@gmail.com >
Co-authored-by: Camila Belo <camilaibs@gmail.com >
Co-authored-by: Johan Haals <johan.haals@gmail.com >
Co-authored-by: Philipp Hugenroth <philipph@spotify.com >
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-09-07 18:53:48 +02:00
Christoph Jerolimov
02ba0a2efd
Add info about which proxy-backend target isn't well configured.
...
Signed-off-by: Christoph Jerolimov <jerolimov+github@redhat.com >
2023-09-05 16:42:24 +02:00
Patrik Oldsberg
44b1ab77e8
proxy-backend: let config reader check for objects
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-08-07 11:33:03 +02:00
Patrik Oldsberg
76a710edd9
proxy-backend: add test for deprecated configuration
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-08-02 16:52:28 +02:00
Patrik Oldsberg
24450b8a40
proxy-backend: update tests to use proxy.endpoints
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-08-02 16:47:29 +02:00
Patrik Oldsberg
7daf65bfcf
proxy-backend: deprecate root proxy config, move to proxy.endpoints instead
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-08-02 16:25:19 +02:00
Vincenzo Scamporlino
2cccf58ef1
chore: config to rootConfig
...
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com >
2023-07-31 17:11:00 +02:00
Boris Bera
a4dcd007e4
Pass debug log level to http-proxy-middleware
...
Signed-off-by: Boris Bera <bbera@coveo.com >
2023-03-07 12:04:57 -05:00
Boris Bera
4acd93dae1
Pass logLevel to http-proxy-middleware
...
Under the hood, `http-proxy-middleware` checks its log level to see if
it should log requests. Passing in the log level ensures that we see
those messages when we run with `LOG_LEVEL=debug`.
Signed-off-by: Boris Bera <bbera@coveo.com >
2023-03-01 12:38:46 -05:00
Dan Hoizner
3e3eea4bc7
feat(proxy-backend): configure request body revival for all targets
...
Signed-off-by: Dan Hoizner <dan.hoizner@gmail.com >
2023-02-14 16:21:26 -05:00
Dan Hoizner
a30d2e8df5
feat(plugin-proxy-backend): revive request bodies
...
in order to support proxying requests with bodies that have previously
been consumed in a middleware, the proxy config can now specify
`reviveRequestBody: true` in order to propagate the previously consumed
body to the proxied request.
Signed-off-by: Dan Hoizner <dan.hoizner@gmail.com >
2023-02-08 15:34:20 -05:00
Patrik Oldsberg
0ff03319be
backend-plugin-api: switch createBackendPlugin id -> pluginId
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2023-02-06 17:49:57 +01:00
Fredrik Adelöw
4a6f38a535
implement some of the trivial backend plugins
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2023-02-01 11:36:55 +01:00
Juan Pablo Garcia Ripa
fcf5d4f4ba
add @config annotation to docs
...
Signed-off-by: Juan Pablo Garcia Ripa <juanpablog@spotify.com >
2022-11-23 13:49:56 +01:00
Fredrik Adelöw
aaab1e34da
Fix linting errors after #13392
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-08-30 13:44:09 +02:00
Fredrik Adelöw
f6be17460d
well, let's clean up some more
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2022-08-18 15:45:15 +02:00
Crevil
dd48ca1bba
Replace router instead of modifying it
...
Signed-off-by: Crevil <bjoern.soerensen@gmail.com >
2022-07-08 21:05:50 +02:00