grafana/pkg/services/sqlstore/migrations
Karl Persson a5e4a533fa
Access control: use uid for dashboard and folder scopes (#46807)
* use uid:s for folder and dashboard permissions

* evaluate folder and dashboard permissions based on uids

* add dashboard.uid to accept list

* Check for exact suffix

* Check parent folder on create

* update test

* drop dashboard:create actions with dashboard scope

* fix typo

* AccessControl: test id 0 scope conversion

* AccessControl: store only parent folder UID

* AccessControl: extract general as a constant

* FolderServices: Prevent creation of a folder uid'd general

* FolderServices: Test folder creation prevention

* Update pkg/services/guardian/accesscontrol_guardian.go

* FolderServices: fix mock call expect

* FolderServices: remove uneeded mocks

Co-authored-by: jguer <joao.guerreiro@grafana.com>
2022-03-30 15:14:26 +02:00
..
accesscontrol Access control: use uid for dashboard and folder scopes (#46807) 2022-03-30 15:14:26 +02:00
ualert Alerting: add collision safe update function for alertmanager configurations (#46692) 2022-03-23 09:31:46 +01:00
alert_mig.go SQL: Define primary key for tables without it (#22255) 2020-11-17 17:58:56 +01:00
annotation_mig.go SQL: Define primary key for tables without it (#22255) 2020-11-17 17:58:56 +01:00
apikey_mig.go APIKeys: add API key migration to ensure fk is null (#46285) 2022-03-07 15:58:20 +01:00
cache_data_mig.go renames key to cache_key 2019-03-11 10:49:55 +01:00
comments_migrations.go Comments: support live comments in dashboards and annotations (#44980) 2022-02-22 10:47:42 +03:00
common.go login: uses epochs for login throtting. 2018-02-16 17:25:46 +01:00
dashboard_acl.go Extract search users functions into a service (#39002) 2021-09-29 12:51:49 +02:00
dashboard_mig.go Extract search users functions into a service (#39002) 2021-09-29 12:51:49 +02:00
dashboard_snapshot_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
dashboard_thumbs_mig.go Dash previews: populate crawler queue from SQL query (#44083) 2022-02-09 13:23:32 +04:00
dashboard_version_mig.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
datasource_mig.go Alerting: improve alerting default datasource search when extracting alerts (#29993) 2021-01-07 21:33:17 +01:00
db_file_storage.go FileStore: add basic file storage API (#46051) 2022-03-03 10:53:26 +04:00
heartbeat_mig.go feat(query_part): refactoring query part 2016-08-15 17:20:45 +02:00
kv_store_mig.go add key/value store service (#36868) 2021-08-31 11:05:45 -04:00
libraryelements.go LibraryPanels: Increase max description length to 2048 chars (#46601) 2022-03-24 12:14:56 +00:00
live_mig.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
login_attempt_mig.go login: migration fix. 2018-02-16 17:36:28 +01:00
migrations_test.go Skip flaky test (#45785) 2022-02-23 16:56:21 +01:00
migrations.go Access control: Use access control for dashboard and folder (#44702) 2022-03-03 15:05:47 +01:00
org_mig.go Extract search users functions into a service (#39002) 2021-09-29 12:51:49 +02:00
playlist_mig.go utf8mb4 encoding (#7959) 2017-03-28 14:34:53 +02:00
plugin_setting.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
preferences_mig.go Navigation: Introduce a preferences table to store Navbar preferences (#44914) 2022-03-17 12:07:20 +00:00
query_history_mig.go Query history: Create API to add query to query history (#44479) 2022-01-28 17:55:09 +01:00
query_history_star_mig.go Query history: Create API to star and unstar query in query history (#45077) 2022-02-23 17:03:04 +01:00
quota_mig.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
secrets_mig.go Security: Add secrets service (#39418) 2021-10-01 15:39:57 +03:00
serverlock_migrations.go moves migrations to /sqlstore/migrations 2018-12-17 16:36:57 +01:00
session_mig.go Issue 3461: Session table is now created automatically 2015-12-23 01:33:46 -06:00
short_url_mig.go Chore: Fix issues reported by staticcheck; enable stylecheck linter (#28866) 2020-11-05 15:37:11 +01:00
stats_mig.go Chore/fix lint issues (#27704) 2020-09-22 16:22:19 +02:00
tag_mig.go Chore: Enable whitespace linter (#25903) 2020-07-06 20:17:28 +02:00
team_mig.go Teams: Add index for permission check (#25736) 2020-06-26 15:13:53 +02:00
temp_user.go Chore: Fix SQL related Go variable naming (#28887) 2020-11-11 06:21:08 +01:00
user_auth_mig.go OAuth: persisting the id token (#42938) 2021-12-14 15:22:10 +01:00
user_auth_token_mig.go Auth: Allow soft token revocation (#31601) 2021-03-16 17:44:02 +01:00
user_mig.go Service accounts: make is_service_account nullable (#45541) 2022-02-18 13:08:00 +01:00