Ezequiel Victorero
c9c6445554
Chore: Refactor render via http ( #84613 )
2024-05-14 07:24:18 -03:00
ismail simsek
194039c429
InfluxDB: Update alias regex pattern ( #87713 )
...
* use frontend mode alias regex
* remove comment
2024-05-14 09:53:18 +02:00
Stephanie Hingtgen
bbb4323f7e
K8s: add server run options ( #87784 )
2024-05-14 07:11:11 +03:00
Kyle Brandt
ff6d1f4977
Scopes: Add intregation tests for scopeNodes based on example ( #87646 )
2024-05-13 14:12:33 -04:00
Isabel Matwawana and Jack Baldry
b7d024c426
Docs: update headings and add release info ( #87058 )
...
* Updated headings and to align with release life cycle stages and adding release info
* Update generated files
Signed-off-by: Jack Baldry <jack.baldry@grafana.com >
---------
Signed-off-by: Jack Baldry <jack.baldry@grafana.com >
Co-authored-by: Jack Baldry <jack.baldry@grafana.com >
2024-05-13 12:44:14 -04:00
owensmallwood
3bf39d6d9a
Unified Storage: Fixes bug with postgres connection string and adds tests ( #87656 )
2024-05-13 10:16:26 -06:00
Carl Bergquist
3160a4d909
ScopeNodes: Add naive filter functionality for scopenode.titles ( #87721 )
2024-05-13 18:21:09 +03:00
owensmallwood
77686da969
Unified Storage: Adds sql metrics ( #87651 )
...
* registers sql metrics for unified storage and removes single quotes from postgres connection string format
* uses db logger
* only register US sql metrics when connecting to another postgres or mysql db
* use engine
2024-05-13 08:09:25 -06:00
Ivana Huckova
336b6dafb6
Elasticsearch: Fix setting of default maxConcurrentShardRequests ( #87703 )
...
* Elasticsearch: Fix setting of default maxConcurrentShardRequests
* Add float test scenario
* Add comment
2024-05-13 16:39:37 +03:00
Andres Martinez Gotor
ae152af119
Upgrade grafana-plugin-sdk-go to v0.230.0 ( #87706 )
2024-05-13 13:23:30 +02:00
Leonor Oliveira
b214f9cc3a
Add metrics utils to the dualwriter ( #87693 )
...
* Add metrics utils
* Ignore lint temporarily
* Lint
2024-05-13 11:36:24 +02:00
Alex Khomenko
f3953b4955
Notification Banner: Add feature toggle ( #87686 )
2024-05-13 12:32:34 +03:00
Karl Persson
7125a2e455
Anon: Add support to resolve anonymous identity ( #87486 )
2024-05-13 11:06:14 +02:00
Bruno
14ccf7f6d1
Cloud migrations: return errutil.Error in http responses ( #87448 )
2024-05-13 00:22:46 -04:00
Bruno
6a3ab71d77
cms: clean up model file ( #87179 )
...
* move CreateAccessTokenResponseDTO to api.go
* remove unused types
* run make swagger-clean && make openapi3-gen
2024-05-13 00:22:19 -04:00
Karl Persson
0f3080ecb8
AuthN: Fix signout redirect url ( #87631 )
...
* Add missing return
* Use sign out redirect url from auth config if configured
* remove option from auth.jwt that is not used
2024-05-12 19:53:19 +02:00
Michael Mandrus
ef51a64b57
Feature Toggles: Hide featureToggleAdminPage toggle from docs and note that it is cloud only. ( #87660 )
...
update featureToggleAdminPage feature toggle to be hidden from docs and specify cloud only
2024-05-10 21:34:53 +03:00
Ryan McKinley
f880abc292
QueryService: Move raw http.Handler to rest.Connector ( #87595 )
...
* query connector
* improve error wrappers
* return 400 for missing datasource (not 404)
* fix errors
* message
2024-05-10 21:01:17 +03:00
Andreas Christou
49e6bf26b3
AzureMonitor: Refactor Log Analytics backend ( #87429 )
...
* Remove unneeded error check
* Refactor to reduce cyclomatic complexity
* Add util function for parsing resultformat
* Make use of util
* Remove unneeded types
* Move types to their own file
* Move getApiUrl to utils
* Move traces functions to separate file
- Add separate helper for building trace string queries
* Add helper for determining resources
* Add test for RetrieveResources
* Don't append twice
* Refactor tests
2024-05-10 17:11:54 +01:00
linoman
926ee0f62e
SAML: add referemce to azure ad limitations ( #87571 )
...
* update the url for Azure AD limitations
* add warnings of using Azure AD with SAML
2024-05-10 15:12:31 +02:00
linoman
cd98aaf89b
Chore: Add login protection when user is trying different uppercase letters ( #87588 )
...
* add login protection when the user is trying different uppercase letters
2024-05-10 13:49:59 +02:00
Ieva
167151b211
Chore: Remove use of deprecated method in AC code ( #87541 )
...
* switch from using cfg to using featuremgmt for checking a feature toggle in AC code
* merge test fixes
2024-05-10 11:56:52 +01:00
Alexander Zobnin
0302b75721
Access control: Use search options for computing permissions cache key ( #87589 )
2024-05-10 12:06:52 +03:00
Misi
896882b004
Chore: Implement GetOAuthProviders in FakeSocialService ( #87590 )
...
Implement GetOAuthProviders in FakeSocialService
2024-05-10 11:48:05 +03:00
Alexander Weaver
a6a9ab4008
Alerting: Do not store series values from past evaluations in state manager for no reason ( #87525 )
...
Do not store previous execution results on states
2024-05-09 15:51:55 -05:00
lean.dev and Michael Mandrus
b009536329
Caching: Implement mtls-enabled memcached integration ( #84171 )
...
* fix merge
* fix conflicts
* updating generated feature toggle code
* Fix go mod owner
* fix merge
* add dependency
* fix dependencies
* workspace sync
* go get
* work sync
* trying something
* fix
* add docs for tls config
* work sync
* adjust go mod
* try something
* move import to the correct file
---------
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com >
2024-05-09 15:12:08 -04:00
Yuri Tseretyan
356a29592b
Alerting: Add two sets of provisioning actions for rules and notifications ( #87149 )
2024-05-09 13:19:07 -04:00
Alexander Weaver
36ef611cf4
Alerting: Add database migration for recording rule fields ( #87012 )
...
* Create recording rule fields in model
* Add migration
* Write to database, support in version table
* extend fingerprint
* Force fields to be empty on validate
* Another storage spot, tests for fingerprint
* Explicitly set defaults in provisioning API
* Tests for main API validation
* Add diff tests even though fields are unpopulated for now
* Use struct tag approach instead of FromDB/ToDB hooks as it better handles nulls when deserializing
* test for deser
* Backout RecordTo for now since it's not decided in the doc
* back out of migration too
* Drop datasourceref for now
* address linter complaints
* Try a single outer struct with all fields embedded
2024-05-09 12:12:44 -05:00
Kyle Brandt
baed7d6dbe
Scopes: Fix logic in find call ( #87565 )
...
With Find, if the parent query parameter is empty or not provided, we want to list the top level of the forest.
2024-05-09 11:52:56 -04:00
Todd Treece and Ryan McKinley
fa2f6578b3
Chore: Add info about K8s folder structure to README ( #87508 )
...
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2024-05-09 16:43:07 +03:00
Stephanie Hingtgen
1bc6738d92
Chore: Upgrade go from 1.21.0 to 1.21.10 ( #87479 )
2024-05-09 15:57:08 +03:00
Ieva
105313f5c2
RBAC: Adding action set resolver for RBAC evaluation ( #86801 )
...
* add action set resolver
* rename variables
* some fixes and some tests
* more tests
* more tests, and put action set storing behind a feature toggle
* undo change from cfg to feature mgmt - will cover it in a separate PR due to the amount of test changes
* fix dependency cycle, update some tests
* add one more test
* fix for feature toggle check not being set on test configs
* linting fixes
* check that action set name can be split nicely
* clean up tests by turning GetActionSetNames into a function
* undo accidental change
* test fix
* more test fixes
2024-05-09 10:18:03 +01:00
Diego Augusto Molina
acf17c7fb1
Unified Storage: Add SQL template package ( #87524 )
...
* added sqltemplate package
* addded example
* fix linting issues
* improve code readability
* fix documentation
2024-05-08 17:58:18 -03:00
Todd Treece
80f10e2a09
GRPC Server: Add README ( #87442 )
2024-05-08 15:29:43 -04:00
Todd Treece and Ryan McKinley
6e4d35e1ee
Scopes: Add a /find query endpoint ( #87457 )
...
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2024-05-08 13:35:11 -04:00
Todd Treece
de438eae2e
K8s: Prevent the use of arbitrary namespaces ( #83636 )
2024-05-08 09:30:08 -07:00
Todd Treece
f342217158
K8s: Add path rewriter filter ( #87456 )
2024-05-08 18:08:43 +03:00
Alexander Zobnin
d1c582815a
Access control: Fix searching permissions from cache ( #87489 )
...
* Fix searching permissions from cache
* Write permissions to cache
2024-05-08 16:08:21 +02:00
Marcus Efraimsson and Giuseppe Guerra
41b29ff93c
Chore: Migrate to use buf for protobuf generation ( #87407 )
...
* Chore: Migrate to use buf for protobuf generation
* fix codeowners
* fixes after review
* docs/tooling for installing buf
* add back codeowners
* Update upgrading-dependencies.md
Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com >
* sdk v0.229.0
---------
Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com >
2024-05-08 15:42:40 +02:00
Ieva
9a824bdf0a
RBAC: Don't set empty action sets ( #87398 )
...
* don't set empty action sets
* extend comment
2024-05-08 15:09:46 +03:00
Karl Persson
be5ced4287
Identity: Use typed version of namespace id ( #87257 )
...
* Remove different constructors and only use NewNamespaceID
* AdminUser: check typed namespace id
* Identity: Add convinient function to parse valid user id when type is either user or service account
* Annotations: Use typed namespace id instead
2024-05-08 14:03:53 +02:00
Dan Cech
1884b03511
Provisioning: Look up provisioned folders by UID when possible ( #87465 )
...
look up provisioned folders by uid when possible
2024-05-07 15:38:53 -04:00
Charandas
a9da6ce1d5
ext_jwt: streamline expected aud in access tokens and id tokens ( #87401 )
2024-05-07 11:20:16 -07:00
Alexander Weaver
6c47968f6c
Alerting: Do not retry rule evaluations with "input data must be a wide series but got type long" style errors ( #87343 )
...
add typed error for series must be wide, do not retry
2024-05-07 11:31:07 -05:00
Nihal
5fb87de321
Auth: Added support to filter for parent teams in GitHub connector's team membership filter ( #86754 )
...
* added changes for parent teams in team_ids. see https://github.com/grafana/grafana/issues/85916
Signed-off-by: Syed Nihal <syed.nihal@nokia.com >
* added unit test
Signed-off-by: Syed Nihal <syed.nihal@nokia.com >
* addressed review comments to consider case where parent object can be null
Signed-off-by: Syed Nihal <syed.nihal@nokia.com >
* addressed review comment
Signed-off-by: Syed Nihal <syed.nihal@nokia.com >
---------
Signed-off-by: Syed Nihal <syed.nihal@nokia.com >
2024-05-07 18:19:20 +02:00
Karl Persson
2d8570e85e
IDToken: Reuse claims from authlib ( #87437 )
...
* bump authlib version
* Reuse claims from authlib
2024-05-07 16:46:43 +02:00
Eric Leijonmarck
6b218b11cf
Actionsets: fix remove printf ( #87439 )
...
fix: remove printf
2024-05-07 16:36:01 +03:00
Alexander Zobnin
82dea4b3e5
Access control: Cache basic roles and teams permissions ( #87043 )
...
* RBAC: Cache basic roles permissions
* Cache teams permissions
* Set cache TTL to 1 minute
* Add OSS implementation
* Fetch basic role permissions correctly
* fix conflict_user_command
* Fix teams permissions query
* Add traces for GetUserPermissions
* Fix folders tests
* Fix colflict user command
* Update store mock
* Fix linter error
* Reuse GetUserPermissions for fetching basic roles
* tests for GetTeamsPermissions
* pre-allocate slice capacity
* Fix linter
2024-05-07 15:23:11 +02:00
Leonor Oliveira
ee2f6a7b49
Force interface implementation also on legacy storage ( #87414 )
...
* Force interface implementation also on legacy storage
* Add DeleteCollection to folders and dashboards
* Fix integration tests
* Fix tests
2024-05-07 15:02:30 +02:00
Karl Persson
37af1ae58e
IDToken: Set typ header ( #87430 )
...
TokenSigning: Set typ header
2024-05-07 13:59:23 +02:00