Commit Graph
14644 Commits
Author SHA1 Message Date
Mariell Hoversholm ed0db3d0e0 feat: export metadata-less YAML resources (#96829)
* feat: export metadata-less YAML resources

* feat: add option to prefer YAML
2024-11-21 14:14:30 +01:00
Ryan McKinley 079f47221d POC/Provisioning: Parse and validate objects from repo (#96822) 2024-11-21 15:54:38 +03:00
Mariell Hoversholm 81b56561c0 test: add export to list 2024-11-21 12:47:41 +01:00
Mariell Hoversholm 5b25ad576e Merge remote-tracking branch 'origin/main' into grafana-git-ui-sync 2024-11-21 12:08:25 +01:00
Mariell Hoversholm d403f5255e 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
2024-11-21 12:07:46 +01: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
Ryan McKinley f46ba6eba2 POC/Provisioning: rename "file" to "files" (#96814) 2024-11-21 12:09:10 +03: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 303ea39218 no tabs in yaml 2024-11-21 11:13:32 +03:00
Ryan McKinley 738e1c983f no tabs in yaml 2024-11-21 11:13:32 +03:00
Ryan McKinley dedfcfd33f update 2024-11-21 11:13:32 +03:00
Ryan McKinley 21c6d00378 UnifiedSearch: Introduce a DocumentBuilder interface (#96738) 2024-11-21 11:13:32 +03:00
Ieva 72880a143e 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-21 11:13:32 +03:00
Ivana Huckova 60335f4cf8 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-21 11:13:32 +03:00
Adam Simpson 4a14befe91 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-21 11:13:32 +03:00
Juan Cabanas e80461e7aa PublicDashboards: Remove publicDashboards FF (#96578) 2024-11-21 11:13:32 +03:00
Eric Leijonmarck 975cd8bd8e 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-21 11:13:32 +03: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
Roberto Jiménez Sánchez 76e494209f [Prototyping] automatically create github webhook in provisioning (#96645) 2024-11-19 14:54:29 +01:00
Ryan McKinley 7985fa573e UnifiedStorage: Add ResourceTable format (#96506) 2024-11-19 15:47:59 +02:00
Karl Persson 11a4a366c6 Zanzana: Optimize batch check (#96669)
* Restructure check code so we only check namespace access once for each GroupResource during for batch
2024-11-19 14:39:46 +01:00
Georges Chaudy e270412dbf unistore: wire the authz client (#96632)
* unistore: wire the authz client

* rename dashboards.grafana.app into dashboard.grafana.app

* wire the authz client

* wire the authz client

* resuse the Standalone constructor

* configure default migration for resource folder

* add tests

* cleanup

* add logging
2024-11-19 15:13:30 +02:00
Stephanie Hingtgen 6571451a57 K8s: dashboards: fix conversion (#96648) 2024-11-19 05:32:05 -07:00
Karl Persson 7e442efa9c Zanzana: sync roles and bindings (#96661)
* Sync fix and custom roles and team bindings.

* Add collector for user role bindings
2024-11-19 13:18:44 +01:00
linoman 8b7100a9aa Auth: Add None role to Viewer case (#96624)
Add None role to Viewer case
2024-11-19 11:29:58 +01:00