Commit Graph

8837 Commits

Author SHA1 Message Date
MT Lewis 94d24c751d catalog-backend: fix getResources
The getResources method in catalog-backend should use the
unauthorizedEntitiesCatalog to load resources, otherwise
we end up authorizing access to entities during application
of conditions.

Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 17:23:32 +00:00
github-actions[bot] b04011602b Version Packages 2022-01-13 14:23:13 +00:00
Fredrik Adelöw 182e573def Merge pull request #8551 from backstage/authz-batching
permissions: more efficient integration between permission backend and plugin backends
2022-01-13 15:17:29 +01:00
Fredrik Adelöw ebc34d0a05 Merge pull request #8911 from backstage/rugvip/azureboot
azure-devops-backend: only warn if teams fail to load at startup
2022-01-13 15:14:38 +01:00
Fredrik Adelöw 4f04a54451 Merge pull request #8904 from backstage/blam/bump-graphql-dependencies
Bump GraphQL Dependencies in `graphql` plugins
2022-01-13 14:49:58 +01:00
Erik Engervall 1fcd816b06 Merge pull request #8910 from backstage/erikengervall/improve-patch-cta
[Plugin] git-release-manager: Improve patch CTA copy
2022-01-13 14:44:07 +01:00
Patrik Oldsberg 9f9596f9ef azure-devops-backend: only warn if teams fail to load at startup
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2022-01-13 14:40:52 +01:00
MT Lewis ba2dbe47d7 permission-node: regenerate api-report
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:28:51 +00:00
Erik Engervall b85010a0c8 Update api-report.md
Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
2022-01-13 14:25:03 +01:00
Erik Engervall de065ce91c Fix tests
Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
2022-01-13 14:06:21 +01:00
MT Lewis 74967cf50d catalog-backend: update permission integration to support batching
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:05:36 +00:00
MT Lewis 3bb0afb54c permission-node: add test for apply conditions router
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:04:30 +00:00
MT Lewis 34a4be296f permission-node: list all incorrect resource types in apply-conditions handler
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:04:06 +00:00
MT Lewis 1fb2e0e0b4 permission-node: wrap request and response arrays in object
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:04:06 +00:00
MT Lewis ef291ff985 permission-backend: move dataloader to router
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:04:05 +00:00
MT Lewis 85b9e1ae60 permission-backend: use dataloader in PermissionIntegrationClient
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:04:05 +00:00
MT Lewis e4c2ee4ba7 build(deps): add dependency on dataloader
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:04:05 +00:00
MT Lewis cbb85e07f0 permission-node: simplify undefined check and fix applyConditions signature
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:04:05 +00:00
MT Lewis 8e72b573aa permission-node: switch to array for getResources return value
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:04:04 +00:00
MT Lewis 706b6c29e9 permission-node: allow batch retrieval of resources in /apply-conditions
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:04:04 +00:00
MT Lewis b66704db18 permission-node: accept batched requests in /apply-conditions
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
2022-01-13 13:04:03 +00:00
Fredrik Adelöw 26c13d006a Merge pull request #8796 from goenning/go/log-error-tech-insights
[TechInsights] log errors when tech insights throws an error
2022-01-13 13:54:23 +01:00
Erik Engervall 9c0f87acc7 Improve Patch CTA copy
Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
2022-01-13 13:25:55 +01:00
Joon Park 0a6c68582a Add authorization to entities get endpoints in catalog-backend. (#8711)
* Add authorization to entities get endpoints in catalog-backend.

The delete endpoint and the ancestry endpoint, as well as the rest of the endpoints in catalog-backend will be covered in later PRs.

Signed-off-by: Joon Park <joonp@spotify.com>

* Refactor permissioning into AuthorizedNextEntitiesCatalog

Signed-off-by: Joon Park <joonp@spotify.com>

* Create integration router in builder

Signed-off-by: Joon Park <joonp@spotify.com>

* Fix test authorization strings

Signed-off-by: Joon Park <joonp@spotify.com>
2022-01-13 10:59:13 +00:00
blam 0d0476d594 chore: need to inherit the resolvers from the interfaces for niceness
Signed-off-by: blam <ben@blam.sh>
2022-01-13 11:32:25 +01:00
blam 36be75022f chore: updating the tests to actually work like before
Signed-off-by: blam <ben@blam.sh>
2022-01-13 11:31:57 +01:00
blam 2d4dfb1b98 chore: it's now a Module not a GraphQLModule
Signed-off-by: blam <ben@blam.sh>
2022-01-13 10:45:17 +01:00
blam dc4a5d7d91 chore: updating graphql-backend to support later versions of graphql-modules
Signed-off-by: blam <ben@blam.sh>
2022-01-13 10:45:17 +01:00
blam e79aaf9712 chore: bringing all this up to date with the new dependencies. Still some stuff to work with.
Signed-off-by: blam <ben@blam.sh>
2022-01-13 10:45:17 +01:00
Eric Peterson 22a9001e69 Mock API, not module.
Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
2022-01-13 09:42:11 +01:00
Ben Lambert 02ac69f943 Merge pull request #8884 from diegoribeiro-hotmart/bugfix/nunjucks-token
[Scaffolder] Fix token pass-through for software templates using beta 3 version
2022-01-13 07:49:06 +01:00
Ben Lambert e0b4b118cc Merge pull request #8815 from dhruvaldarji/dhruvaldarji/add-baseurl-support-for-bitbucket-discovery-processor
fix(catalog-backend): support bitbucket servers with custom baseUrls
2022-01-13 07:48:07 +01:00
Ben Lambert bc3acec86a Merge pull request #8622 from julioz/julioz/gocd-plugin
Add GoCD plugin
2022-01-12 14:00:59 +01:00
Diego Drumond fced56a416 scaffolder-backend: pass token to tasks
Signed-off-by: Diego Drumond <diego.ribeiro@hotmart.com>
2022-01-12 09:52:52 -03:00
Ben Lambert ed054cd9b8 Merge pull request #8868 from lykkeaxlin/minor-fixes
[Bazaar] Add to marketplace and some minor fixes
2022-01-12 13:20:53 +01:00
Ben Lambert 332b47fcdf Merge pull request #8821 from djamaile/master
feat: give component EntityMembersListCard a memberType prop
2022-01-12 11:41:39 +01:00
Marley Powell 8a8c11158d Merge branch 'master' of https://github.com/backstage/backstage into marley/7678-pull-request-custom-filters-2 2022-01-12 09:06:24 +00:00
Marley Powell 7de84a8239 refactor: Code review improvements around getTeamMembers parameters.
Signed-off-by: Marley Powell <Marley.Powell@exclaimer.com>
2022-01-12 08:59:16 +00:00
djamaile 0a51b21328 test: update test description
Signed-off-by: djamaile <rdjamaile@gmail.com>
2022-01-11 19:21:45 +01:00
Dominik Schwank 3423b3b24d docs(sonarqube): enhance token content documentation
Signed-off-by: Dominik Schwank <dominik.schwank@sda.se>
2022-01-11 17:57:30 +01:00
djamaile 03016eab49 chore: change prop name to memberDisplayTitle
Signed-off-by: djamaile <rdjamaile@gmail.com>
2022-01-11 17:25:40 +01:00
Ben Lambert 0d1e0bef8e Merge pull request #8864 from RoadieHQ/query-perf-tweaks-for-tech-insights
[TechInsights] Modify queries to perform better by filtering on subqueries as well
2022-01-11 16:44:44 +01:00
Lykke Axlin fac69a935c remove unnecessary type cast
Signed-off-by: Lykke Axlin <lykkeaxlin@hotmail.com>
2022-01-11 16:32:52 +01:00
Lykke Axlin 77f194c89e add line break to prevent horizontal scrolling
Signed-off-by: Lykke Axlin <lykkeaxlin@hotmail.com>
2022-01-11 16:25:06 +01:00
goenning 60ec1a959b simplify error handling
Signed-off-by: goenning <me@goenning.net>
2022-01-11 15:14:52 +00:00
goenning a60eb0f0dd add checks bulk operation
Signed-off-by: goenning <me@goenning.net>
2022-01-11 15:14:52 +00:00
Lykke Axlin d2b984597c add type checking
Signed-off-by: Lykke Axlin <lykkeaxlin@hotmail.com>
2022-01-11 16:06:23 +01:00
Jussi Hallila 10f26e8883 Modify queries to perform better by filtering on subqueries as well
Signed-off-by: Jussi Hallila <jussi@hallila.com>
2022-01-11 15:19:47 +01:00
Lykke Axlin cceaf78bca Merge branch 'master' of https://github.com/backstage/backstage into bazaar-workflow-changes 2022-01-11 13:31:06 +01:00
Lykke Axlin 602f2c543c add Bazaar to marketplace and minor UI and API improvements
Signed-off-by: Lykke Axlin <lykkeaxlin@hotmail.com>
2022-01-11 13:29:09 +01:00