Kat Yang
29113a6369
Chore: Update OpenAPI generation README to include bingo instructions ( #79104 )
...
* Chore: Update OpenAPI generation README to include bingo instructions
* chore: remove extra whitespace
2024-01-02 12:48:10 +01:00
Jo
814d62406e
User: Verify external user status for accessing certain user routes ( #79909 )
...
stricter user profile route checking
2023-12-29 14:23:05 +01:00
Tania
a62db1e24b
Nested Folders: Move SharedWithMe to the top of the folders list ( #79875 )
2023-12-29 11:35:15 +01:00
Fabrizio
5a21a6d938
Parca: Decouple backend ( #79873 )
...
Parca: decouple backend
2023-12-28 18:44:02 +01:00
Jo
3c4bc24dec
ServerLock: Fix missing return ID for postgres ( #79878 )
...
fix missing return ID for postgres
2023-12-28 11:15:18 +01:00
Jo
3bcde852ac
AccessControl: Add safety valve truncation for long user defined scopes ( #79854 )
...
* fix migrator bootloop by invalidating permissions
* add test for scope truncation
* lint
* fix max size scope
2023-12-27 17:31:26 +01:00
Jo
a595353d57
ServerLock: Rework serverlock to use raw SQL and not depend on id ( #79859 )
...
* rework SQL to use raw sql and more resistant to DBs that do not return ID
* rework SQL to return ID in all DBs. Avoid using ID as operator
2023-12-27 14:59:43 +01:00
Todd Treece
feb7b38fba
Metrics: Add commit & version to grafana_environment_info ( #79823 )
2023-12-22 06:02:52 -05:00
Dan Cech
b2b4d89501
Storage: Support grafana.app/folder field selector & label selectors ( #79816 )
...
* support grafana.app/folder field selector & label selectors
* lint fix
2023-12-21 18:08:01 -05:00
Ryan McKinley
539bc6d31b
Playlist: Implement a more efficient List command to support k8s list ( #79820 )
2023-12-21 15:03:12 -08:00
Sofia Papagiannaki
4e1456a230
Unified Storage: Add resource from/to entity tests ( #79393 )
...
* Unified Storage: Add resource from/to entity tests
* fixup
* Remove GRN
* Update tests
* truncate timestamps to account for RFC3339, set Group and GroupVersion in k8s object
* Update tests
---------
Co-authored-by: Dan Cech <dcech@grafana.com >
2023-12-21 14:42:36 -05:00
Vardan Torosyan
63cd5a5625
Chore: Cleanup namespace and ID resolution ( #79360 )
...
* Chore: Cleanup namespace ID resolution
* Check for negative userID when relevant
* Reuse existing function for parsing ID as int
* Fix imports
2023-12-21 20:42:05 +01:00
Yuri Tseretyan
d160638c67
Alerting: Add integration tests for mute timings provisioning API ( #79810 )
2023-12-21 21:38:38 +02:00
Santiago
a77ba40ed4
Alerting: Use the forked Alertmanager for remote secondary mode ( #79646 )
...
* (WIP) Alerting: Use the forked Alertmanager for remote secondary mode
* fall back to using internal AM in case of error
* remove TODOs, clean up .ini file, add orgId as part of remote AM config struct
* log warnings and errors, fall back to remoteSecondary, fall back to internal AM only
* extract logic to decide remote Alertmanager mode to a separate function, switch on mode
* tests
* make linter happy
* remove func to decide remote Alertmanager mode
* refactor factory function and options
* add default case to switch statement
* remove ineffectual assignment
2023-12-21 15:26:31 +01:00
Karl Persson
05d1ce4026
Auth: id response header ( #79757 )
...
* Add utility function to check if namespace is any of
* Refactor code to use identity interface
2023-12-21 14:06:28 +01:00
Santiago
c46da8ea9b
Alerting: Update alerting package and imports from cluster and clusterpb ( #79786 )
...
* Alerting: Update alerting package
* update to latest commit
* alias for imports
2023-12-21 12:34:48 +01:00
Ryan McKinley
10bb02e026
K8s: fix UID creator and paths ( #79769 )
2023-12-20 14:42:38 -08:00
Ryan McKinley
d195c3807e
Storage: Use int64 for resourceVersion ( #79735 )
2023-12-20 11:26:35 -08:00
Ryan McKinley
67bbdd7c05
K8s/Folders: Add folders api service (with legacy storage) ( #79413 )
2023-12-20 20:28:56 +02:00
Mihai Doarna
0f4cd3090b
Auth: Modify scopes field value in tests to be comma separated (SSO Settings API) ( #79759 )
...
modify scopes field value to be comma separated
2023-12-20 17:43:18 +02:00
linoman
824e0f9ce8
Plugins: Display plugin permissions required ( #78355 )
...
* Add definition of external service registration
* Add style and tables for permissions needed
* Add external service registration to local without counterpart
* Add feature toggle check
* Add feature flag check in the backend as well
* Add the disclaimer for permissions
---------
Co-authored-by: Gabriel MABILLE <gabriel.mabille@grafana.com >
2023-12-20 16:29:13 +01:00
Mihai Doarna
1ef9417765
Auth: Use camelCase in SSO Settings API ( #79755 )
...
use camelCase in SSO Settings API
2023-12-20 16:30:25 +02:00
idafurjes
3770daabe2
Remove deprecated FolderID from api tests ( #79466 )
...
* Remove deprecated FolderID from api tests
* Removed unused const
2023-12-20 15:12:05 +01:00
Gabriel MABILLE
8b67464758
AuthN: Set automatic service accounts for plugins in private preview ( #79558 )
...
* AuthN: Set automatic service accounts for plugins in private preview
* Gen files
2023-12-20 13:48:56 +01:00
Matthew Jacobson
0424d44b39
Alerting: In migration, create one label per channel ( #76527 )
...
* In migration, create one label per channel
This PR changes how routing is done by the legacy alerting migration.
Previously, we created a single label on each alert rule that contained an array of contact point names. Ex: __contact__="slack legacy testing","slack legacy testing2"
This label was then routed against a series of regex-matching policies with continue=true. Ex: __contacts__ =~ .*"slack legacy testing".*
In the case of many contact points, this array could quickly become difficult to manage and difficult to grok at-a-glance.
This PR replaces the single __contact__ label with multiple __legacy_c_{contactname}__ labels and simple equality-matching policies. These channel-specific policies are nested in a single route under the top-level route which matches against __legacy_use_channels__ = true for ease of organization.
This should improve the experience for users wanting to keep the default migrated routing strategy but who also want to modify which contact points an alert sends to.
2023-12-19 13:25:13 -05:00
Santiago
9945514baa
Alerting: Validate configuration for the remote Alertmanager struct ( #79691 )
...
* Alerting: Validate configuration for the remote Alertmanager struct
* add TenantID to test
* add OrgID to config struct in tests
2023-12-19 18:41:48 +01:00
Ryan McKinley
33d2d0a12d
K8s: Refactor authorization initialization ( #79670 )
2023-12-19 19:12:35 +02:00
Dan Cech
7613ab7a5b
Storage: store full k8s object in body column ( #79480 )
...
store full k8s object in body column
2023-12-19 11:34:57 -05:00
ismail simsek
ea079ebf0c
InfluxDB: Enable SQL support by default ( #79474 )
...
* remove alpha notification
* enable the feature toggle by default
* fix
2023-12-19 14:12:36 +01:00
Will Browne
6ceab61bf8
Plugins: Support nested plugin signature validation on Windows ( #79467 )
...
* rework
* fix
* fix backend start
* fix tests
* fix
* print env
* enable CGO
* undo changes
* undo whitespace change
2023-12-19 11:56:40 +01:00
Agnès Toulet
fdaf6e3f2e
PublicDashboards: Add setting to disable the feature ( #78894 )
...
* Replace feature toggle with configuration setting
* Fix permission alert
* Update documentation
* Add back feature toggle
* revert unwanted commited changes
* fix tests
* run prettier
* Update SharePublicDashboard.test.tsx
* fix linter and frontend tests
* Update api.go
* Apply docs edit from code review
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com >
* Update index.md
* Update docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* add isPublicDashboardsEnabled + test
* fix test
* update ff description in registry
* move isPublicDashboardsEnabled
* revert getConfig() update
---------
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com >
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
2023-12-19 11:43:54 +01:00
Will Browne
ef60c90dfa
Plugins: Make file system path handling in tests OS agnostic ( #79651 )
...
* make path handling OS agnostic
* PR feedback
* fix input for test case
2023-12-19 11:01:48 +01:00
Karl Persson
8cb351e54a
Authn: Handle logout logic in auth broker ( #79635 )
...
* AuthN: Add new client extension interface that allows for custom logout logic
* AuthN: Add tests for oauth client logout
* Call authn.Logout
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
2023-12-19 10:17:28 +01:00
Aaron Godin
eb490193b9
[IAM] - Add swagger docs for resource permissions API ( #79525 )
...
* IAM: Apply swagger-go comments for generating docs on resource permissions endpoints
* Update pkg/services/accesscontrol/resourcepermissions/api.go
Clarifies swagger note on assigning to service accounts
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com >
2023-12-18 16:47:17 -06:00
Alexander Weaver
65ecde6eed
Alerting: Don't record annotations for mapped NoData transitions, when NoData is mapped to OK ( #77164 )
...
* Exclude mapped nodata transitions when nodata mapped to OK
* Fix processEvalResults test
* Don't check NoDataState when filtering transition
* Add comment to explain purpose of separate function
---------
Co-authored-by: William Wernert <william.wernert@grafana.com >
2023-12-18 16:59:32 -05:00
Sven Grossmann
2165c9b3f0
Loki: Add lokiQueryHints feature flag ( #78953 )
...
* add `lokiQueryHints` feature flag
* language provider tests
* fix unwrap tests
* add feature toggle
2023-12-18 22:43:16 +02:00
Michael Mandrus
456939bac4
Feature Toggles: Remove use of boolPtr in FeatureFlag struct ( #79550 )
...
* remove bool ptr and update docs
* fix silly thing
* merge main
* maybe this time
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2023-12-18 13:55:21 -05:00
Oscar Kilhed
110a41b3db
Transformations: Move moving average and cumulative sum to private preview ( #79495 )
...
* Move moving average and cumulative sum to private preview
* update docs
* rebuild docs
* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md
Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com >
---------
Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com >
2023-12-18 16:46:03 +01:00
Will Browne
0b511aaace
Plugins: Add backend check for app page role access ( #78269 )
...
* add backend check for roles
* tidy
* fix tests
* incorporate rbac
* fix linter
* apply PR feedback
* add tests
* fix logic
* add comment
* apply PR feedback
2023-12-18 16:12:46 +01:00
Santiago
f7248efff5
Alerting: Fix panic when creating a new Alertmanager returns an error ( #79641 )
...
Alerting: Fix panic after error creating new Alertmanager
2023-12-18 15:33:07 +01:00
Ezequiel Victorero
864d91ed3e
Export: Remove no-store headers in pdf and image previews ( #78844 )
2023-12-18 09:21:57 -03:00
Sofia Papagiannaki
6d9c651b74
Chore: Remove redundant benchmarks ( #79626 )
2023-12-18 11:31:25 +02:00
Mihai Doarna
9648a06dde
Auth: Add swagger metadata for the update SSO Settings endpoint ( #79580 )
...
* add swagger doc for sso settings update endpoint
* add generated api specs
2023-12-18 11:18:19 +02:00
Mihai Doarna
53d209e6f1
Auth: Fix flaky tests that are mocking time.Now() from SSO Settings ( #79581 )
...
test time values using require.WithinDuration() instead of mocking time.Now()
2023-12-18 11:10:46 +02:00
Eric Leijonmarck
57ca8fa368
Anonymous: Add device limits to stats ( #79494 )
...
* add device limits
* feat: tabs the anon and session stats w. highlight
2023-12-18 09:32:57 +01:00
Tania
86ac431097
Chore: Update readme for entity store ( #79586 )
...
* Chore: Update readme for entity store
* Update pkg/services/store/entity/README.md
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
* Apply review feedback
---------
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
2023-12-17 13:12:17 +02:00
ismail simsek
2edcf0edbd
InfluxDB: Use database input for SQL configuration instead of metadata ( #79579 )
...
* introduce constants file
* update frontend to use database field
* use dbName field instead of metadata
* use secureGrpc
* betterer
2023-12-15 18:41:32 +01:00
Sofia Papagiannaki
d89a8a3a82
Nested Folders: Fix /api/folders pagination ( #79447 )
...
* Nested Folders: Fix /api/folders pagination
We used to check access to the root folders after fetching them from the DB with pagination.
This fix splits logic for fetching folders in:
- fetching subfolders
- fetching root folders
and refactors the query for the latter so that is filters by folders with permissions
* Add tests
* Update benchmarks
2023-12-15 19:34:08 +02:00
Alexander Weaver
cf8e8852c3
Alerting: Drop NamespaceID from responses on unstable ngalert API endpoints in favor of NamespaceUID ( #79359 )
...
* Drop from API response
* Drop from swagger docs
* Drop from integration tests
* regenerate public swagger docs
* Drop from frontend
* Drop asserts for namespaceID field
2023-12-15 11:06:53 -06:00
Ryan McKinley
139025af1e
K8s: Update OpenAPI post processing structures ( #79553 )
...
* add prefix
* update extra paths
2023-12-15 07:53:35 -08:00