grafana/pkg/services/sqlstore
Misi 5efc3386d3
AuthZ: Extend /api/search to work with self-contained permissions (#70749)
* Search sql filter draft, unfinished

* Search works for empty roles

* Add current AuthModule to SignedInUser

* clean up, changes to the search

* Use constant prefixes

* Change AuthModule to AuthenticatedBy

* Add tests for using the permissions from the SignedInUser

* Refactor and simplify code

* Fix sql generation for pg and mysql

* Fixes, clean up

* Add test for empty permission list

* Fix

* Fix any vs all in case of edit permission

* Update pkg/services/authn/authn.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Update pkg/services/sqlstore/permissions/dashboard_test.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Fixes, changes based on the review

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2023-07-12 12:31:36 +02:00
..
migrations Auth: Add empty role definition (#64694) 2023-07-06 15:40:06 +02:00
migrator SQLStore: Fix Postgres dialect treating "false" migrator default as true (#69353) 2023-06-22 15:09:36 -04:00
permissions AuthZ: Extend /api/search to work with self-contained permissions (#70749) 2023-07-12 12:31:36 +02:00
searchstore
session
sqlutil
bulk.go
bulk_test.go
database_wrapper.go
logger.go
session.go
session_test.go
sqlstore.go SQLStore: Fix regression in PostgreSQL connection string (#71368) 2023-07-11 16:47:35 +03:00
sqlstore_metrics.go
sqlstore_metrics_test.go
sqlstore_test.go SQLStore: Fix regression in PostgreSQL connection string (#71368) 2023-07-11 16:47:35 +03:00
tls_mysql.go
transactions.go
transactions_test.go
user.go