Karl Persson
f0a5b444e3
Zanzana: generic resource only ( #96019 )
...
* Remove collectors
* Remove zanzana search check, we need to rewrite that part to the new schema
* Only use generic resource schema and cleanup code we don't want to keep / need to re-write
2024-11-08 09:30:41 +01:00
Alexander Zobnin
5d724c2482
Zanzana: Initial dashboard search ( #93093 )
...
* Zanzana: Search in a background and compare results
* refactor
* Search with check
* instrument zanzana client
* add single_read option
* refactor
* refactor move check into separate function
* Fix tests
* refactor
* refactor getFindDashboardsFn
* add resource type to span attributes
* run ListObjects concurrently
* Use list and search in less cases
* adjust metrics buckets
* refactor: move Check and ListObjects to AccessControl implementation
* Revert "Fix tests"
This reverts commit b0c2f072a2 .
* refactor: use own types for Check and ListObjects inside accesscontrol package
* Fix search scenario with low limit and empty query string
* more accurate search with checks
* revert
* fix linter
* Revert "revert"
This reverts commit ee5f14eea8 .
* add search errors metric
* fix query performance under some conditions
* simplify check strategy
* fix pagination
* refactor findDashboardsZanzanaList
* Iterate over multiple pages while making check request
* refactor listUserResources
* avoid unnecessary db call
* remove unused zclient
* Add notes for SkipAccessControlFilter
* use more accurate check loop
* always use check for search with provided UIDs
* rename single_read to zanzana_only_evaluation
* refactor
* update go workspace
* fix linter
* don't use deprecated fields
* refactor
* fail if no org specified
* refactor
* initial integration tests
* Fix tests
* fix linter errors
* fix linter
* Fix tests
* review suggestions
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
* fix limit
* refactor
* refactor tests
* fix db config in tests
* fix migrator (postgres)
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
2024-10-04 12:27:10 +02:00
Karl Persson
2e38329026
RBAC: Add required component to perform access control checks for user api when running single tenant ( #93104 )
...
* Unexport store and create new constructor function
* Add ResourceAuthorizer and LegacyAccessClient
* Configure checks for user store
* List with checks if AccessClient is configured
* Allow system user service account to read all users
---------
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
2024-09-23 11:26:44 +02:00
Ryan McKinley
99d8025829
Chore: Move identity and errutil to apimachinery module ( #89116 )
2024-06-13 07:11:35 +03:00
Yuri Tseretyan
7cec741bae
Alerting: Extract alerting rules authorization logic to a service ( #77006 )
...
* extract alerting authorization logic to separate package
* convert authorization logic to service
2023-11-15 18:54:54 +02:00