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
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
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
Mike Lewis
5bff67aac4
permission-node: expose ApplyConditionsResponse type
...
This type will be shared with the backend.
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:36 +00:00
Mike Lewis
3254303a96
permission-node: refactor and split createPermissionIntegration
...
This refactor makes the createPermissionIntegration system much more
flexible by splitting it up into a few different helpers with different
responsibilities. This frees up plugin authors to connect together the
different parts of the permission integration in whatever way is
convenient for them, and makes the process of registering additional
permission rules a bit more explicit, by requiring them to be passed
in when constructing the systems for transforming or applying
conditions.
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
Co-authored-by: Joon Park <joonp@spotify.com >
Co-authored-by: Tim Hansen <timbonicus@gmail.com >
2021-11-22 15:37:35 +00:00
Mike Lewis
70ce7c91e2
permission-node: bump @backstage/cli version
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:35 +00:00
Mike Lewis
0eb339c3a4
permission-node: more visible condition transform in mapCriteria test
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:35 +00:00
Tim Hansen
27d5f5fed3
Improve api-report
...
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
2021-11-22 15:37:35 +00:00
Mike Lewis
5c5a1d16e4
authz: remove superfluous union type
...
PermissionCriteria<TQuery> is a union type which already includes
TQuery itself, so we don't need a second union here.
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:35 +00:00
Mike Lewis
75dd00c8b6
authz: add missing fields to permission-node package.json
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:35 +00:00
Mike Lewis
e2088541dd
authz: update references to permission-common after move to plugins
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:34 +00:00
Mike Lewis
f72d7bba0e
authz: add testsuite for createPermissionIntegration
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:34 +00:00
Mike Lewis
5c75c89106
authz: improve error handling in permission-node apply-conditions route
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:34 +00:00
Mike Lewis
2b668f2eb8
build(deps): add dependency on zod in permission-node
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:34 +00:00
Mike Lewis
22f5de9840
authz: update createPermissionIntegration to work with new PermissionCriteria type
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:34 +00:00
Mike Lewis
d0a99e3219
authz: update permission-node api-report
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:34 +00:00
Mike Lewis
64b6ff368f
authz: fix expected response type for /apply-conditions route
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:33 +00:00
Mike Lewis
652af0834a
authz: add test suite for conditionFor
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:33 +00:00
Mike Lewis
f3d2ccfeb8
authz: switch to unknown[] in PermissionRule type parameter
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:33 +00:00
Mike Lewis
4083fcdb5e
authz: fix PermissionCondition type parameter
...
`unknown` doesn't satisfy the (recently added) `extends unknown[]`
constraint. In these two cases, we can remove the parameter entirely and
rely instead on the default of `unknown[]`.
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:33 +00:00
Mike Lewis
a82709c38f
authz: update unused type params in conditionFor to unknown
...
Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com >
2021-11-22 15:37:33 +00:00
Tim Hansen
a1e2972dda
Add permission-node package
...
Signed-off-by: Tim Hansen <timbonicus@gmail.com >
Co-authored-by: Mike Lewis <mtlewis@users.noreply.github.com >
Co-authored-by: Himanshu Mishra <himanshu@orkohunter.net >
Co-authored-by: Joe Porpeglia <joeporpeglia@users.noreply.github.com >
Co-authored-by: Vincenzo Scamporlino <vinzscam@users.noreply.github.com >
2021-11-22 15:37:32 +00:00
Ainhoa
a2e1a008bf
Merge pull request #8116 from ainhoaL/user-search-displayname
...
Add User entities displayName to default catalog collator to be able to search by user's full name
2021-11-22 15:32:26 +00:00
Patrik Oldsberg
87cd8ca64b
Merge pull request #8186 from backstage/freben/bump-serialize-javascript
...
bump terser-webpack-plugin and therefore serialize-javascript
2021-11-22 16:31:12 +01:00
Ben Lambert
d413156a2a
Merge pull request #8187 from backstage/freben/remove-is-svg
...
make sure to get rid of is-svg
2021-11-22 16:24:27 +01:00
Ben Lambert
1d6f337916
Merge pull request #8195 from adamdmharvey/adr-title-bug
...
fix(docs): Missing ADR number in title
2021-11-22 16:24:01 +01: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
Adam Harvey
7b4db0d1aa
Fix missing ADR number in title
...
Signed-off-by: Adam Harvey <adaharve@cisco.com >
2021-11-22 09:17:19 -05:00
Fredrik Adelöw
e62bf29c1d
Merge pull request #8069 from goenning/fix-techinsights-docs
...
Fix techinsights docs: replaced DefaultTechInsightsBuilder with buildTechInsightsContext
2021-11-22 14:41:26 +01:00
Fredrik Adelöw
cd3aac016f
Merge pull request #7817 from backstage/joonp/entitiessearchfilter-refactor
...
[Mini PRFC] EntitiesSearchFilter type refactor
2021-11-22 13:48:38 +01:00
Ainhoa Larumbe
4167f6ed7e
change uppercase method
...
Signed-off-by: Ainhoa Larumbe <ainhoaL@users.noreply.github.com >
2021-11-22 12:42:29 +00:00
Patrik Oldsberg
3487a35ee4
Merge pull request #8175 from backstage/rugvip/release-flow
...
Tweak release process to require changesets for new packages
2021-11-22 13:23:04 +01:00
Patrik Oldsberg
c8dac3c3b8
Merge pull request #8174 from backstage/rugvip/deprecations
...
scripts: add script for listing deprecations
2021-11-22 13:22:49 +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
Ben Lambert
030ef22639
Merge pull request #8188 from backstage/freben/bump-mixme
...
bump mixme
2021-11-22 13:04:12 +01:00
Ainhoa Larumbe
e5bff80f78
uppercase kind
...
Signed-off-by: Ainhoa Larumbe <ainhoaL@users.noreply.github.com >
2021-11-22 11:45:10 +00:00
Himanshu Mishra
979879d970
Merge pull request #8191 from petejespersqbe/feature/fix-qbe-name
...
Fix QBE name in adopters list
2021-11-22 16:53:24 +05:30
Pete Jespers
776cb9c1c5
Fix QBE name in adopters list
2021-11-22 11:04:11 +00:00