Commit Graph

19537 Commits

Author SHA1 Message Date
Mike Lewis f5c3211129 permission-backend: 500 when policy returns incorrect resourceType
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:43 +00:00
Mike Lewis dbd89112a5 permission-backend: add permission-node integration tests
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:42 +00:00
Mike Lewis 2335e0a01f permission-backend: update default port for standalone server
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:42 +00:00
Mike Lewis 7f4a77a884 permission-backend: add todo
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:42 +00:00
Mike Lewis cd77cbd48f permission-backend: clean up PermissionIntegrationClient applyConditions signature
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:42 +00:00
Mike Lewis 6de1e719d4 permission-backend: api docs
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:42 +00:00
Mike Lewis 0ce2bc4129 permission-backend: remove manual construction of service discovery
We shouldn't be constructing a service discovery implementation inside
the router, since it removes the ability to provide a different
discovery mechanism.

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:41 +00:00
Mike Lewis e9b6b7bf89 permission-backend: extract client for calling other plugins to apply conditions
Also adds response validation

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:41 +00:00
Mike Lewis 671bf72ed6 permission-backend: fix initial test suite
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:41 +00:00
Mike Lewis 4ca6802b97 permission-backend: bump @backstage/cli
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:41 +00:00
Mike Lewis be1f89d383 permission-backend: extract AllowAllPermissionPolicy from standaloneServer in permission-backend
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:40 +00:00
Mike Lewis 806778d58e permission-backend: fixup api-report
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:31:40 +00:00
Tim Hansen f028746410 Add permission-backend plugin
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-11-24 14:31:40 +00:00
Mike Lewis 370da15e7b permission-node: separate doc comment summaries with @remarks tag
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:30:21 +00:00
Fredrik Adelöw f7bf4eea21 Merge pull request #7812 from backstage/dependabot/npm_and_yarn/gitbeaker/node-34.4.1
build(deps): bump @gitbeaker/node from 30.3.0 to 34.4.1
2021-11-24 15:25:29 +01:00
Mike Lewis 44b46644d9 permission-node: add changeset for initial release
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:22:32 +00:00
Johan Haals c1ae2b4dc1 Merge pull request #8230 from lorsatti/lorsatti/adopters
Add LogMeIn as an adopter
2021-11-24 15:21:40 +01:00
Mike Lewis aded9bbc22 permission-node: set version to 0.0.0 before initial release
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:20:56 +00:00
Mike Lewis f5a25ec804 permission-node: fix typo in doc comment
Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:19:59 +00:00
Mike Lewis b08dbb1035 permission-node: destructure options inside function to simplify api-report
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-24 14:18:11 +00: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
blam e634a47ce5 chore: added changeset
Signed-off-by: blam <ben@blam.sh>
2021-11-24 14:03:22 +01:00
Lorenzo Orsatti 4be343d2dd add LogMeIn as an adopter
Signed-off-by: Lorenzo Orsatti <49567430+lorsatti@users.noreply.github.com>
2021-11-24 14:03:00 +01:00
blam 5fd0e077bc chore: adding test for this bug
Signed-off-by: blam <ben@blam.sh>
2021-11-24 14:01:26 +01:00
blam 92405f32bb bug: should check the children of the first parse, not the root.
Signed-off-by: blam <ben@blam.sh>
2021-11-24 13:55:28 +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
Ben Lambert 138c559231 Merge pull request #8218 from lorsatti/fix/swagger-style
Add missing styles to Swagger (dark mode)
2021-11-24 13:19:30 +01:00
Fredrik Adelöw 22f96d7efc Merge pull request #8172 from goenning/go/azure-devops-discovery
adding AzureDevOps Discovery Processor
2021-11-24 13:07:13 +01:00
Fredrik Adelöw 825787e6bd Merge pull request #8164 from RoadieHQ/infinite-location-loop
Fail when adding duplicate locations using the dry run flag
2021-11-24 12:05:48 +01:00
Nicolas Arnold f658a34178 Using stringEntityRef for comparision
Signed-off-by: Nicolas Arnold <nic@roadie.io>
2021-11-24 10:39:59 +00:00
Himanshu Mishra 0ef5c9b8f4 Merge pull request #8223 from backstage/dependabot/npm_and_yarn/testing-library/cypress-8.0.2
chore(deps-dev): bump @testing-library/cypress from 7.0.6 to 8.0.2
2021-11-24 14:17:04 +05:30
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
Himanshu Mishra 0273d58bfd Merge pull request #8224 from backstage/dependabot/npm_and_yarn/storybook/addon-actions-6.3.12
chore(deps-dev): bump @storybook/addon-actions from 6.3.7 to 6.3.12
2021-11-24 10:57:16 +05:30
dependabot[bot] b8f430eee0 chore(deps-dev): bump @storybook/addon-actions from 6.3.7 to 6.3.12
Bumps [@storybook/addon-actions](https://github.com/storybookjs/storybook/tree/HEAD/addons/actions) from 6.3.7 to 6.3.12.
- [Release notes](https://github.com/storybookjs/storybook/releases)
- [Changelog](https://github.com/storybookjs/storybook/blob/next/CHANGELOG.md)
- [Commits](https://github.com/storybookjs/storybook/commits/v6.3.12/addons/actions)

---
updated-dependencies:
- dependency-name: "@storybook/addon-actions"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-24 04:13:08 +00: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
Morgan Martinet 2c54173a39 apply code review recommandations
use encodeURIComponent on dynamic parts
ensure that we keep any dashboard path prefix when generating links
move URL hash exception for SPAs into the standardFormatter

Signed-off-by: Morgan Martinet <morgan@mmm-experts.com>
2021-11-23 18:01:30 -05:00
Lorenzo Orsatti c982fc12cb add changeset
Signed-off-by: Lorenzo Orsatti <49567430+lorsatti@users.noreply.github.com>
2021-11-23 22:04:15 +01:00
Lorenzo Orsatti f803ac931e add missing styles to Swagger (dark mode)
Signed-off-by: Lorenzo Orsatti <49567430+lorsatti@users.noreply.github.com>
2021-11-23 21:50:46 +01:00
goenning f1ba6dfb1d fix comments, support onpremise and paging
Signed-off-by: goenning <me@goenning.net>
2021-11-23 19:03:46 +00:00
jodybro 6de3b8fb24 support v1 api for ingress object
Signed-off-by: jodybro <ajodasattaur@gmail.com>
2021-11-23 13:30:01 -05: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 905dd952ac chore: split up backend-to-backend auth changeset to reduce changelog noise
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
2021-11-23 17:55:48 +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
Adrian Barwicki 7071dce02d feat: expose catalog lib in plugin-auth-backend
We are writing a custom OIDC provider plugin and need to use CatalogIdentityClient class in our provider. It is however not exported and we are not able to use it.

It is not a problem for providers that are committed to backstage repo as they use the local path, e.g https://github.com/backstage/backstage/blob/master/plugins/auth-backend/src/providers/aws-alb/provider.ts#L31 - but only for the ones that are developed locally.

Signed-off-by: Adrian Barwicki <adrianbarwicki@gmail.com>
2021-11-23 15:17:19 +01:00