Commit Graph
14651 Commits
Author SHA1 Message Date
Mariell Hoversholm 86cb44d64e gerge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-11-22 12:06:59 +01:00
Mariell Hoversholm cfe36270f5 POC/Provisioning: create folder if it does not exist (#96890)
* feat: create folder if it does not exist

* feat: test the folder creation behaviour

* test: make sure deletion doesn't fail

* test: remove unnecessary settings
2024-11-22 12:03:46 +01:00
Ryan McKinley 68c61514b0 Chore: Remove experimental Storage UI (#96887) 2024-11-22 12:38:02 +02:00
Ryan McKinley 53245e2742 Provisioning: Add feature toggle (#96891) 2024-11-22 11:03:50 +02:00
Mariell Hoversholm 36f588fbef fix: use new lookup for exports
(cherry picked from commit 33762d33bc)
2024-11-22 09:19:00 +01:00
Mariell Hoversholm a04421556e feat: export metadata-less YAML resources (#96829)
* feat: export metadata-less YAML resources

* feat: add option to prefer YAML

(cherry picked from commit ed0db3d0e0)
2024-11-22 09:18:56 +01:00
Ryan McKinley cc09fd5976 POC/Provisioning: Parse and validate objects from repo (#96822)
(cherry picked from commit 079f47221d)
2024-11-22 09:18:50 +01:00
Mariell Hoversholm 3a5a27037c test: add export to list
(cherry picked from commit 81b56561c0)
2024-11-22 09:18:47 +01:00
Mariell Hoversholm 1aede325f2 POC/Prototype: Provisioning: add export endpoint (#96815)
* feat: add export endpoint

This is not at all complete, but acts as a good base.

* chore: more todos

* feat: fetch folders and their parents

* feat: export to folders

* refactor: use constant for folder key

(cherry picked from commit d403f5255e)
2024-11-22 09:18:41 +01:00
Ryan McKinley bad1547479 POC/Provisioning: rename "file" to "files" (#96814)
(cherry picked from commit f46ba6eba2)
2024-11-22 09:18:29 +01:00
Ryan McKinley 08e8b8b392 no tabs in yaml
(cherry picked from commit 303ea39218)
2024-11-22 09:18:16 +01:00
Ryan McKinley 3328952a48 no tabs in yaml
(cherry picked from commit 738e1c983f)
2024-11-22 09:18:08 +01:00
Ryan McKinley bc79537fee update
(cherry picked from commit dedfcfd33f)
2024-11-22 09:18:02 +01:00
Mariell Hoversholm 38538d7a88 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-11-22 09:16:34 +01:00
lean.dev e9fae5bd7f CloudMigration: Create authapi service (#96581) 2024-11-21 20:46:06 +02:00
Joao Silva 3ceaa42d20 Bookmarks: Do not show on navigation or button for unauthed users (#96836) 2024-11-21 15:32:38 +00:00
Carl Bergquist 35d1274919 Logging: Enables unified error logging by default (#96512)
enables unified error logging by default

Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-11-21 17:12:00 +02:00
Misi d0d62fc518 Chore: Use the correct value in log (#96840) 2024-11-21 16:02:37 +02:00
Victor Marin d5f404d082 Dashboards: Add possibility to lock multi value variables option list (#95949)
* add new option for multi variables to lock value list wip

* WIP - lock option list

* tests

* fix

* fixes + canary scenes

* wip

* wip

* fix snapshot

* bump scenes

* Dashboards: Add possibility to lock adhoc variables options list (#96077)

* Lock list of options flag for ad hoc

* refactor

* fix snapshot
2024-11-21 16:01:54 +02:00
Misi 1061e4712f OAuth: Refactor OAuthToken service to make it easier to use the new external sessions (#96667)
* Refactor OAuthToken service

* introduce user.SessionAwareIdentityRequester

* replace login.UserAuth parameters with user.SessionAwareIdentityRequester

* Add nosec G101 to fake ID tokens

* Opt 2, min changes

* Revert a change to the current version
2024-11-21 15:36:28 +02:00
Prem Saraswat ca2c874161 authn: grpcutils: Mark ID Tokens optional in cloud mode in gRPC Authenticator (#96824)
This patch marks ID tokens as not required when initalising a gRPC
Authenticator to be used in `cloud` mode. ID Tokens are still enabled in
`cloud` mode, but the `Required` option is set to `false`.

This is needed for MT services like Cloud API Server to authenticate
against gRPC services like Resource Store with only an Access Token.

Signed-off-by: Prem Kumar <prem.saraswat@grafana.com>
2024-11-21 18:41:49 +05:30
Georges Chaudy 4f8ab73a8c unistore: Add support for verify-full in postgres (#96825)
Add support for verify-full in postgres
2024-11-21 12:31:33 +00:00
Georges Chaudy 8bb59c64f0 unistore: handle auth when fallback is used (#96772)
* handle auth when fallback is used

* handle auth when fallback is used

* add traces
2024-11-21 12:21:22 +02:00
Karl Persson a5e743895b Zanzana: Capabilities api (#96682)
* Add capabilities api
2024-11-21 10:51:16 +01:00
Daniel Strobusch 169b61b98d [docs] document 409 Conflict on updating data sources. (#93170) 2024-11-21 11:28:30 +02:00
Gabriel MABILLE a9b938427e Fix: Correct handling of base64 padding during aes-gcm private key decryption. (#96761)
* SecretsService: Use RawStdEncoding to avoid padding

* Commment

* Forgot one line

* Backward compatibility
2024-11-21 10:08:48 +01:00
Karl Persson e995d4f682 Zanzana: Add setting zanzana reconciliation interval (#96687)
Add config option under RBAC for zanzana reconciliation interval
2024-11-21 09:20:29 +01:00
Ryan McKinley 82b47c3e79 POC/Provisioning: Return FileInfo from read (not just bytes) (#96813) 2024-11-21 10:37:32 +03:00
cd1998e66a Provisioning: Add config page (#96550)
* Add baseAPI

* Restore schemaFile

* Generate endpoints

* Cleanup endpoints

* Update endpoints

* Set up config page

* Add hook

* Rename to provisioning

* Register reducer and middleware

* Separate List and New pages

* Add GitHub config

* Save data

* Fix types

* Display list

* Fix redirect

* Update tags

* Common folder

* Cleanup

* Update public/app/routes/routes.tsx

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>

* Add token permissions instructions

* Add EditPage

* load data for edit

* Update hook

* Show api errors

* Add title and token

* Use test name

* Update token field state

* Add delete button

* Add feedback for delete action

* Sort list

* Do not load items for new page

* Prettier

* Disable type change for edit

* Add title field

* Update pkg/services/navtree/navtreeimpl/admin.go

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>

* Update public/app/features/provisioning/ConfigForm.tsx

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>

---------

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-11-21 09:36:02 +02:00
Ryan McKinley ac25114585 POC/Provisioning: update the worker identity every miniute (#96812) 2024-11-21 10:07:17 +03:00
Ryan McKinley 0cb6c3d7bf UnifiedSearch: Introduce a DocumentBuilder interface (#96738) 2024-11-21 07:53:25 +02:00
Ieva a60953c8f9 GAS: Show mapped roles in role picker (#96681)
* add group mapping UID returned mapped roles

* request mapped roles from the frontend, but don't attempt to update mapped roles

* lock mapped roles and show a pop-up message about why a role is locked

* update role selectors to not allow deselecting a mapped role

* swagger gen

* simplify and set mapped as bool instead of mapping UID array

* swagger gen
2024-11-20 17:37:12 +00:00
Ivana Huckova 6b5a05486b Fix error source for clientSecret not found error (#96771)
* Fix error source for clientSecret not found errir

* Use errors.New as we are not formatting the error
2024-11-20 17:16:02 +01:00
Adam Simpson c010bf2dc7 ds-querier: account for -100 meaning __expr__ (#96565)
* ds-querier: account for -100 meaning __expr__

* temp debug log error parsing query

* var confusion

* log error
2024-11-20 10:28:31 -05:00
Juan Cabanas b8e92aacd2 PublicDashboards: Remove publicDashboards FF (#96578) 2024-11-20 11:36:19 -03:00
Eric Leijonmarck 9f53362e3c Serviceaccounts: FIX adds qoute for user UID query for postgres (#96749)
* Add qoute for user UID of postgres

* add tests for uid

* fix for uid check not expectable
2024-11-20 16:11:03 +02:00
Ryan McKinley 8eb3804ae9 merge main 2024-11-20 16:51:57 +03:00
Ryan McKinley 34be977c99 Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-11-20 16:47:40 +03:00
Ryan McKinleyandRoberto Jimenez Sanchez dd7a0b4994 POC/Provisioning: use worker identity for webhook (#96758)
Co-authored-by: Roberto Jimenez Sanchez <roberto.jimenez@grafana.com>
2024-11-20 16:36:15 +03:00
Roberto Jiménez Sánchez 3d36ad42c0 [Prototyping] Implement write, delete and update operations for GitHub provisioning (#96757)
Implement delete, write and update for github provisioning
2024-11-20 14:14:23 +01:00
Ryan McKinley ffa47a9746 use admin 2024-11-20 16:02:16 +03:00
Mihai Doarna cb7dd25f8a Optimize tokens count from service accounts query (#96663)
* optimize tokens count from service accounts query

* add unit tests for tokens count

* skip broken test

* fix lint error

* rename Tokens to TokenCount
2024-11-20 14:52:23 +02:00
Ryan McKinley fbcc82ab17 POC/Provisioning: Add service for client with authorization (#96755) 2024-11-20 15:49:42 +03:00
Laura Fernández f1601b1c0f SingleTopNav: Update singleTopNav feature toggle to GA and enabled by default (#96752) 2024-11-20 13:30:19 +01:00
Sriram 492e7d4a3d Datasources: health check logging improvements (#96403)
* basic healthcheck logging

* show detailed error for admins

* fix linting errors

* fix config summary keys

* passing context to logger

* tracking health check errors

* remove tracking
2024-11-20 11:42:05 +00:00
Ryan McKinley b55cd2438c POC/Provisioning: Keep settings.Cfg out of the registry (#96746) 2024-11-20 14:05:11 +03:00
Gabriel MABILLE aa2b4751a0 AuthZ: Launch service within IAM app (#96421) 2024-11-20 11:13:33 +01:00
Roberto Jiménez Sánchez a9931ff283 [Provisioning] Add mutation hook to generate webhook URL and secret (#96742)
Add mutation hook to generate webhook URL and secret
2024-11-20 10:45:24 +01:00
Andre Pereira bf74b9c9c0 Tempo: Run TraceQL metrics queries through backend (#96246)
* Move TraceQL metrics queries to backend

* Add tests for TransformMetricsResponse

* Add tests for createMetricsQuery

* Refactor, detect metric queries and throw error for search queries

* Remove unneeded types

* Don't add start and end if they are 0. Return on err

* lint

* Fix pre-alloc of frames

* Address PR comments
2024-11-19 15:51:07 +00:00
Ryan McKinley 8fda03d3d5 POC/Provisioning: Add write hooks (#96670) 2024-11-19 17:25:45 +03:00