Commit Graph

87 Commits

Author SHA1 Message Date
Patrik Oldsberg d9ce823b00 packages: regenerate all API reports with warnings
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-07-15 02:05:46 +02:00
Patrik Oldsberg 602b5b59bb packages: regenerate all API reports with prettier
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-07-12 19:54:11 +02:00
Rogerio Angeliski 7a74046f16 docs: added generated files
Signed-off-by: Rogerio Angeliski <angeliski@hotmail.com>
2021-07-07 08:58:41 -03:00
Rogerio Angeliski 93f8e8b423 Revert "docs: added generated files"
This reverts commit b2cefb34e0d4640cc5bb675d05d0ea906d74eec8.

Signed-off-by: Rogerio Angeliski <angeliski@hotmail.com>
2021-07-07 08:58:41 -03:00
Rogerio Angeliski 1cdc4ba0e2 docs: added generated files
Signed-off-by: Rogerio Angeliski <angeliski@hotmail.com>
2021-07-07 08:58:40 -03:00
github-actions[bot] 5a64fe7ea5 Version Packages 2021-06-24 09:58:38 +00: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
Patrik Oldsberg 820de63018 Merge pull request #6076 from backstage/rugvip/allreports
scripts/api-extractor: create and check API reports for all(most) plugins
2021-06-17 15:46:11 +02:00
Patrik Oldsberg d8d7226fce plugins: generate api reports
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-06-17 13:30:06 +02:00
github-actions[bot] 36e5a82e9b Version Packages 2021-06-17 08:08:44 +00: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 ab3d4e92eb Merge pull request #5949 from backstage/dependabot/npm_and_yarn/http-proxy-middleware-2.0.0
chore(deps): bump http-proxy-middleware from 0.19.2 to 2.0.0
2021-06-14 10:30:28 +02:00
github-actions[bot] 4a93128245 Version Packages 2021-06-10 12:18:06 +00:00
Fredrik Adelöw 6ffcf9ed85 fixup
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-06-08 15:04:30 +02:00
dependabot[bot] 3db3b67f5f chore(deps): bump http-proxy-middleware from 0.19.2 to 2.0.0
Bumps [http-proxy-middleware](https://github.com/chimurai/http-proxy-middleware) from 0.19.2 to 2.0.0.
- [Release notes](https://github.com/chimurai/http-proxy-middleware/releases)
- [Changelog](https://github.com/chimurai/http-proxy-middleware/blob/master/CHANGELOG.md)
- [Commits](https://github.com/chimurai/http-proxy-middleware/compare/v0.19.2...v2.0.0)

---
updated-dependencies:
- dependency-name: http-proxy-middleware
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-06-08 10:03:08 +02:00
Tim Hansen 875809a59b Fix proxy redirect for base path without slash
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-06-04 21:18:10 -06:00
github-actions[bot] df31bdca8f Version Packages 2021-05-12 09:39:51 +00:00
github-actions[bot] d397eb470f Version Packages 2021-05-06 08:25:18 +00:00
Brian Fox cdb3426e56 fix(proxy-backend): prefix routes with / if not present in config
This commit ensures that the default `pathRewrite` configuration for a proxy element is more resilient to the combination of whether:
- `route` is prefixed with `/`
- `pathPrefix` on the plugin is suffixed with `/` (which at present it will never be - see comments).

Signed-off-by: Brian Fox <brianhfox@gmail.com>
2021-04-27 12:40:15 +02:00
Brian Fox 6c38f5e920 tests(proxy-backend): align tests with default backend configuration
The pathPrefix is not suffixed with `/` by default as noted at https://github.com/backstage/backstage/blob/df897a6126d1641d111b015c527cc8d40c47bd06/packages/backend-common/src/discovery/types.ts#L47 and seen in the implementation at  https://github.com/backstage/backstage/blob/df897a6126d1641d111b015c527cc8d40c47bd06/packages/backend-common/src/discovery/SingleHostDiscovery.ts#L81.

Currently the tests work in the opposite way - the pathPrefix is suffixed by / whereas the routes are **not** prefixed by /.

This commit brings the tests in line with the default configuration prior to any further work.

Signed-off-by: Brian Fox <brianhfox@gmail.com>
2021-04-27 12:40:15 +02:00
dependabot[bot] 66ed65899f chore(deps-dev): bump supertest from 4.0.2 to 6.1.3
Bumps [supertest](https://github.com/visionmedia/supertest) from 4.0.2 to 6.1.3.
- [Release notes](https://github.com/visionmedia/supertest/releases)
- [Commits](https://github.com/visionmedia/supertest/compare/v4.0.2...v6.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 04:38:27 +00:00
dependabot[bot] d42f055d48 chore(deps): bump express-promise-router from 3.0.3 to 4.1.0
Bumps [express-promise-router](https://github.com/express-promise-router/express-promise-router) from 3.0.3 to 4.1.0.
- [Release notes](https://github.com/express-promise-router/express-promise-router/releases)
- [Changelog](https://github.com/express-promise-router/express-promise-router/blob/trunk/CHANGELOG.md)
- [Commits](https://github.com/express-promise-router/express-promise-router/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-23 04:26:33 +00:00
github-actions[bot] 718eea4f08 Version Packages 2021-03-18 12:31:44 +00:00
Patrik Oldsberg 0e068db972 run prettier
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-03-07 23:37:48 +01:00
github-actions[bot] ff2ab4fade Version Packages 2021-03-04 13:11:10 +00:00
Patrik Oldsberg d77c3ed1aa Merge pull request #4740 from Liverpool-Victoria/bug/plugin-backend-proxy-with-agent
Fix for proxy-backend plugin when global-agent is enabled
2021-03-02 12:49:48 +01:00
Nir Gazit 1987c93416 Added a verification for URLs in proxy backend 2021-03-02 10:34:02 +02:00
bobalong79 1fc9627a1b Update tests after moving header processing from onProxyReq to filter 2021-03-01 18:18:10 +00:00
bobalong79 316b7bff61 Add rationale explaining why we do the header modifications in the filter 2021-03-01 18:01:44 +00:00
bobalong79 9ce68b677b Fix for proxy-backend plugin when global-agent is enabled 2021-03-01 11:30:44 +00:00
Andrew Thauer 28adfd3c4c fix: test failures & warnings 2021-02-24 10:12:49 -05:00
github-actions[bot] 6794967d20 Version Packages 2021-02-04 13:02:30 +00:00
github-actions[bot] cda741034d Version Packages 2021-01-28 10:46:08 +00:00
github-actions[bot] c5584b62c2 Version Packages 2021-01-21 13:13:05 +00:00
github-actions[bot] cf187484bf Version Packages 2020-12-10 11:25:39 +00:00
Adam Harvey 8b395bee26 Add standard NPM metadata 2020-12-08 13:42:23 -05:00
github-actions[bot] 01aa774d9a Version Packages 2020-12-03 15:28:22 +00:00
Dominik Henneke 6a6c7c14ea Filter the response headers in the proxy backend 2020-11-30 15:18:29 +01:00
Dominik Henneke 0e1f240a99 Change the proxy setting to be optional 2020-11-27 11:24:59 +01:00
Dominik Henneke 8432bde46a Use inline type instead of a dedicated interface 2020-11-27 11:11:03 +01:00
Dominik Henneke 1b7a9d7317 Refactor the proxying docs so the paragraph structure makes more sense 2020-11-26 17:01:40 +01:00
Dominik Henneke 3619ea4c47 Add a configuration schema for the proxy plugin 2020-11-26 16:20:34 +01:00
github-actions[bot] bc0f47b7b7 Version Packages 2020-11-19 15:13:57 +00:00
github-actions[bot] 715bb76fb5 Version Packages 2020-11-03 20:50:42 +00:00
Patrik Oldsberg 833a652d05 v0.1.1 2020-10-28 10:22:09 +01:00
Patrik Oldsberg 754109ee61 v0.1.1-alpha.26 2020-10-27 12:00:01 +01:00
Patrik Oldsberg bc9f536545 Merge pull request #2994 from spotify/rugvip/conflagrate
config-loader: switch to using --config options to load in config
2020-10-22 18:01:21 +02:00
Patrik Oldsberg 8c2b76e45f config-loader: switch to using --config options to load in config 2020-10-22 10:52:06 +02:00