github-actions[bot]
ef34f5de7b
Version Packages
2021-11-25 12:40:52 +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
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