Commit Graph

6340 Commits

Author SHA1 Message Date
MT Lewis 456bcce6ca Merge pull request #7943 from backstage/natasha/b2b-auth
Support backend to backend authentication
2021-11-26 15:31:52 +00:00
MT Lewis a8eeaa13b4 backend-common: refactor away namespace usage in ServerTokenManager
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-26 13:38:32 +00:00
MT Lewis f5c43945eb create-app: update backend-to-backend auth comment in app-config template
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-26 12:35:09 +00:00
MT Lewis 1cad4e54ca backend-common: additional api-report comments and tags
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-26 12:24:48 +00:00
MT Lewis 73bff921fd backend-common: update api-report
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-26 12:16:38 +00:00
MT Lewis 54eaeddaf1 backend-common: move NoopTokenManager into ServerTokenManager namespace
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-26 12:16:38 +00:00
MT Lewis 10d0109d2e backend-common: extract NoopTokenManager from ServerTokenManager
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-26 12:01:11 +00:00
MT Lewis 5510cee039 backend-common: stop accepting self-reported pluginId in ServerTokenManager
Until we have a solution for assigning plugin/backend identities in a
way that's not open to impersonation, we can't build on top of this
information, so it's better to leave it out for now.

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-26 10:23:57 +00:00
Fredrik Adelöw de1f77b71c Merge pull request #8233 from backstage/freben/less-cross
🧹  Align on usage of `cross-fetch` vs `node-fetch` in frontend vs backend packages
2021-11-26 10:15:50 +01:00
MT Lewis 4e6b2319a2 backend-common: include self-reported pluginId in backend token
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-25 18:58:58 +00:00
MT Lewis 189f7f8a72 backend-common: allow for multiple signing keys in ServerTokenManager
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-25 18:42:07 +00:00
MT Lewis 51608d2021 backend-common: bits->bytes in config schema comment
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2021-11-25 18:16:54 +00:00
Patrik Oldsberg b291d0ed7e core-plugin-api: bit clearer deprecation warning for createRouteRef
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-25 18:35:27 +01:00
Fredrik Adelöw 552a6795e4 Merge pull request #8097 from backstage/freben/react-dev-utils
bump react-dev-utils
2021-11-25 15:36:53 +01:00
github-actions[bot] ef34f5de7b Version Packages 2021-11-25 12:40:52 +00:00
Patrik Oldsberg 781f91ab30 Merge pull request #8231 from backstage/rugvip/create-app-pack
create-app: add pack scripts that excludes peer depdencies during publish
2021-11-25 13:35:42 +01:00
Fredrik Adelöw 47619da24c give the same treatment to catalog-backend too
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-25 13:05:11 +01:00
Fredrik Adelöw b055a6addc Align on usage of cross-fetch vs node-fetch in frontend vs backend packages
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-25 13:05:08 +01:00
Patrik Oldsberg dcaeaac174 create-app: add pack scripts that excludes peer depdencies during publish
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-25 12:06:49 +01:00
Fredrik Adelöw e7230ef814 bump react-dev-utils
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-25 11:45:58 +01:00
Fredrik Adelöw 42ebbc18c0 get both gitbeaker packages bumped, and add changeset
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-24 14:21:45 +01:00
dependabot[bot] e99db76f6a build(deps): bump @gitbeaker/node from 30.3.0 to 34.4.1
Bumps [@gitbeaker/node](https://github.com/jdalrymple/gitbeaker) from 30.3.0 to 34.4.1.
- [Release notes](https://github.com/jdalrymple/gitbeaker/releases)
- [Changelog](https://github.com/jdalrymple/gitbeaker/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jdalrymple/gitbeaker/compare/30.3.0...34.4.1)

---
updated-dependencies:
- dependency-name: "@gitbeaker/node"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 14:19:24 +01:00
Johan Haals a7d3cbf79c Merge pull request #8212 from backstage/mob/deprecate-register
core-plugin-api: Deprecate Plugin register and output
2021-11-24 13:23:44 +01:00
Johan Haals 88f5378397 Add export, update API report
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-11-24 09:36:40 +01:00
dependabot[bot] fb90b70de5 chore(deps-dev): bump @testing-library/cypress from 7.0.6 to 8.0.2
Bumps [@testing-library/cypress](https://github.com/kentcdodds/cypress-testing-library) from 7.0.6 to 8.0.2.
- [Release notes](https://github.com/kentcdodds/cypress-testing-library/releases)
- [Changelog](https://github.com/testing-library/cypress-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kentcdodds/cypress-testing-library/compare/v7.0.6...v8.0.2)

---
updated-dependencies:
- dependency-name: "@testing-library/cypress"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 04:11:52 +00:00
Mike Lewis 40ea710c14 backend-common: add api doc comments
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 18:22:53 +00:00
Mike Lewis 4b6de2f872 backend-common: remove 'Server' from TokenManager method names
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 18:12:28 +00:00
Mike Lewis 8a001f8202 backend-common: TokenManager throws for invalid tokens rather than returning boolean
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 17:55:47 +00:00
Johan Haals 950b36393c core-plugin-api: Add tests and changesets
Co-authored-by: blam <ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-11-23 16:58:27 +01:00
Johan Haals a3c5b2f70b core-plugin-api: Deprecate Plugin register and output
Co-authored-by: blam <ben@blam.sh>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
2021-11-23 16:58:21 +01:00
Mike Lewis f38dff4085 backend-common: tests validating interop of multiple token managers
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 14:58:48 +00:00
Mike Lewis 8cb1c4d17c backend-common: rename config block from authorization to auth
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 14:41:33 +00:00
Mike Lewis 42b01ee725 backend-common: import ConfigReader from @backstage/config
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 13:57:38 +00:00
Mike Lewis db1befcf39 backend-common: make secret required if authorization config block is provided
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 13:56:07 +00:00
Mike Lewis ef9dfd3440 backend-common: leave ConfigReader to throw errors when config is missing in ServerTokenManager
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 13:54:04 +00:00
Patrik Oldsberg 68eddf88a0 Merge pull request #8118 from backstage/rugvip/test-port
packages,plugins: migrate to using TestApiProvider and TestApiRegistry
2021-11-23 13:47:51 +01:00
Camila Belo c0a624b03f Merge pull request #8179 from cmpadden/snyk-ignore-techdocs-cli
Add .snyk ignore file for @techdocs/cli
2021-11-23 13:03:00 +01:00
Mike Lewis 03962638a0 create-app: fix formatting in search.ts
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 11:10:29 +00:00
Fredrik Adelöw a6b5becf0f Merge pull request #8202 from backstage/freben/bump-rjsf
bump rjsf
2021-11-23 11:11:13 +01:00
Fredrik Adelöw 2d7d165737 bump rjsf
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-11-22 19:59:52 +01:00
Mike Lewis 839e931d34 create-app: pass tokenManager when constructing TechDocsCollator
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-22 18:44:49 +00:00
Mike Lewis 14a6c46dff Merge remote-tracking branch 'origin/master' into natasha/b2b-auth
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-22 18:22:57 +00:00
Patrik Oldsberg 8a96019a39 Merge branch 'master' into rugvip/test-port 2021-11-22 17:33:10 +01:00
Tim Jacomb 52d3ca287e Fix broken ssl postgres docs
Signed-off-by: Tim Jacomb <tim.jacomb@hmcts.net>
2021-11-22 16:30:51 +00:00
Fredrik Adelöw 1e57d1c23e Merge pull request #8071 from backstage/feat/change-default-port
Change default port of backend from 7000 to 7007
2021-11-22 15:58:48 +01:00
Patrik Oldsberg b9af54d431 Merge pull request #8089 from backstage/rugvip/test-api
core,test-utils: deprecate ApiRegistry, add new TestApiProvider and TestApiRegistry
2021-11-22 13:22:33 +01:00
Patrik Oldsberg 54fe58b85b Merge pull request #8173 from backstage/rugvip/best
cli: test coverage and speed improvements
2021-11-22 10:24:11 +01:00
Colton Padden 5919df85d1 Add .snyk ignore file for @techdocs/cli
Ignores with 6-month duration for vulnerabilities that have also been ignored
for @backstage/cli:

- SNYK-JS-BROWSERSLIST-1090194
- SNYK-JS-IMMER-1540542

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
2021-11-21 09:39:02 -05:00
Patrik Oldsberg 910c2674b5 test-utils: review fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-20 15:52:01 +01:00
Patrik Oldsberg dde216acf4 cli: switch to v8 coverage provider
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-11-20 11:32:22 +01:00