0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-27 23:01:43 -05:00
zot/pkg/extensions/search
Alex Stan 49e8167dbe graphql: Apply authorization on /_search endpoint
- AccessControlContext now resides in a separate package from where it can be imported,
along with the contextKey that will be used to set and retrieve this context value.

- AccessControlContext has a new field called Username, that will be of use for future
implementations in graphQL resolvers.

- GlobalSearch resolver now uses this context to filter repos available to the logged user.

- moved logic for uploading images in tests so that it can be used in every package

- tests were added for multiple request scenarios, when zot-server requires authz
on specific repos

- added tests with injected errors for extended coverage

- added tests for status code error injection utilities

Closes https://github.com/project-zot/zot/issues/615

Signed-off-by: Alex Stan <alexandrustan96@yahoo.ro>
2022-08-26 21:31:26 +03:00
..
common graphql: Apply authorization on /_search endpoint 2022-08-26 21:31:26 +03:00
cve Add GraphQL API for getting the information necessary to list images in the zot cli without download manifests. 2022-08-23 16:32:00 +03:00
digest Add GraphQL API for getting the information necessary to list images in the zot cli without download manifests. 2022-08-23 16:32:00 +03:00
gql_generated Add GraphQL API for getting the information necessary to list images in the zot cli without download manifests. 2022-08-23 16:32:00 +03:00
gqlgen.yml Update to graphql 1.17.13 2022-07-18 12:55:40 -07:00
resolver.go graphql: Apply authorization on /_search endpoint 2022-08-26 21:31:26 +03:00
resolver_test.go graphql: Apply authorization on /_search endpoint 2022-08-26 21:31:26 +03:00
schema.graphql Add GraphQL API for getting the information necessary to list images in the zot cli without download manifests. 2022-08-23 16:32:00 +03:00
schema.resolvers.go graphql: Apply authorization on /_search endpoint 2022-08-26 21:31:26 +03:00
search.md fix sample request url in search extension README 2022-06-07 11:24:19 -07:00