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
Crevil
a4fa1ce090
Add config hot reloading to proxy-backend
...
When working with the proxy configuration or plugins facilitating the proxy
package the workflow is currently somewhat cumbersom as changes to the proxy
configuration requires a full restart of the backend server.
Use cases where the proxy configuration is updated is when testing out new
routes for plugins to use and updating header configuration like authorization
tokens.
This change updates the proxy-backend to subscribe to configuration changes and
update the router when changes to the proxy is made.
Signed-off-by: Crevil <bjoern.soerensen@gmail.com >
2022-07-02 09:24:33 +02:00
Brian Fletcher
27e1ab0ec4
addressing review suggestions
...
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-01-28 13:52:03 +00:00
Brian Fletcher
8030dc7dd5
only skip proxies if configured to do so
...
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-01-28 11:28:46 +00:00
Brian Fletcher
124520078c
allow backend to start if proxy target is not set
...
Signed-off-by: Brian Fletcher <brian@roadie.io >
2022-01-28 09:50:27 +00:00
Otto Sichert
b23bc7f9c3
Change default port of backend to 7007 due to MacOS Control Center update
...
Signed-off-by: Otto Sichert <git@ottosichert.de >
2021-11-18 16:45:57 +01:00
Fredrik Adelöw
6160f89865
fake the test config to get rid of the timeouts
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-11-09 10:10:13 +01:00
Patrik Oldsberg
8142a8ecb2
packages,plugins: add package documentation
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-09-14 18:47:53 +02:00
Patrik Oldsberg
13da7be3c1
proxy-backend: cleaner and more informative log messages
...
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com >
2021-06-24 11:22:26 +02:00
Fredrik Adelöw
a88073c29a
Update copyright headers
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-06-18 20:26:42 +02:00
Fredrik Adelöw
c5204c01ba
Merge pull request #6032 from backstage/freben/backend-dev
...
Make `yarn dev` for backend plugins respect the `PLUGIN_PORT` env var
2021-06-15 15:12:17 +02:00
Fredrik Adelöw
3108ff7bfd
Make yarn dev for backends respect the PLUGIN_PORT env var
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-06-14 14:46:19 +02:00
Fredrik Adelöw
6ffcf9ed85
fixup
...
Signed-off-by: Fredrik Adelöw <freben@gmail.com >
2021-06-08 15:04:30 +02:00