Karl Persson
a897ec3426
Authn: grpc errors ( #100951 )
...
* update authlib
* Map to grpc status
2025-02-19 11:46:48 +01:00
Will Assis
77fd572973
dont return not found error in mode 2 ( #100758 )
...
* dual writer: dont return not found error in mode 2 when failing to find object in unistore
2025-02-14 20:39:51 +02:00
Agnès Toulet
37ee1c427d
Plugins: Upgrade grafana-plugin-sdk to 0.266.0 ( #100727 )
2025-02-14 16:33:45 +01:00
Mariell Hoversholm
2dee9ccbbc
APIServer: Cancel forked context after handler returns ( #100504 )
...
We currently cancel the context when the adapter function is done. We should wait for the entire handler we're wrapping
to finish before cancelling our context.
2025-02-12 23:54:58 -08:00
Mariell Hoversholm
a0701a42f1
APIServer: Propagate a new context with limited information ( #100374 )
...
* APIServer: Propagate a new context with limited information
* APIServer: Remove error return
* APIServer: Test that context propagation does fork
* APIServer: Fix golangci-lint lints
* chore: make update-workspace
2025-02-12 10:11:52 +01:00
Jean-Philippe Quéméner
aca024bcbb
fix(unified-storage): use dedicated mocks per storage type ( #100389 )
2025-02-12 09:59:21 +01:00
Jean-Philippe Quéméner
d1b4162a33
refactor(unified-storage): measure also failed queries ( #100430 )
2025-02-11 16:19:43 +01:00
Jean-Philippe Quéméner
8a9f6416d2
fix(unified-storage): error on failed primary deletes in mode2 ( #100427 )
2025-02-11 15:39:39 +01:00
Jean-Philippe Quéméner
6eaf702e96
fix(unified-storage): return legacy data in mode 2 ( #100353 )
2025-02-11 10:34:56 +01:00
Andres Martinez Gotor
f8efdaf88c
apiserver: Avoid panic for DELETE requests ( #100372 )
2025-02-11 09:18:57 +01:00
Gábor Farkas
390b5eb6d4
go.mod: updated grafana-plugin-sdk-go ( #100342 )
...
* go.mod: update grafana-plugin-sdk-go
* make update-workspace
2025-02-10 11:38:30 +01:00
Todd Treece
6af67197a7
Dual Writer: Remove list comparisons in mode 2 & 3 ( #100215 )
2025-02-07 09:17:53 -05:00
Jean-Philippe Quéméner
364559e856
feat(unified-storage): use continue token when building list ( #100143 )
2025-02-05 21:02:35 +01:00
Karl Persson
39d94eabcd
Auth: Fix function name ( #100122 )
...
Fix spelling
2025-02-05 15:32:22 +01:00
Igor Suleymanov
b683724bec
Upgrade grafana-app-sdk to 0.31.0 ( #99739 )
...
* Upgrade grafana-app-sdk to 0.31.0
What
This commit upgrades the app SDK to 0.31.0 and re-generates codegen files.
It doesn't touch alerting schemas, because those are quite old and
should be upgraded separately.
This commit slightly alters the schemas for the investigations app,
because the codegen is not happy with the current syntax, for some
reason (probably has to do with CUE upgrades in `cog`).
Why
To make sure we use up-to-date SDK version and remove the workaround for
the `defencoding=none` bug that required us to clean up generated CRD
files.
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Revert changes to golden file for store tests
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
---------
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
2025-01-30 16:10:42 +02:00
Mariell Hoversholm
0c120db84d
Provisioning: Setup server and storage ( #99757 )
...
feat: setup server and storage
This simply sets up the API server and its storage for `provisioning.grafana.app`.
Features will be added eventually.
2025-01-30 08:11:50 +01:00
John Naizer and Jack Baldry
571f20676d
Azure: Bump grafana-azure-sdk-go to 2.1.6 ( #99524 )
...
* added changes for rebase
* ran go mod tidy and ran a build
* ran a build
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Jack Baldry <jack.baldry@grafana.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Jack Baldry <jack.baldry@grafana.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Jack Baldry <jack.baldry@grafana.com >
* updated go.work.sum to upstream
* added newline to match upstream
* added more specificity in documentation
* bump grafana-azure-sdk-go to update package for currentuser auth support
---------
Co-authored-by: Jack Baldry <jack.baldry@grafana.com >
2025-01-27 14:50:31 +00:00
Stephanie Hingtgen
dde199f684
Unistore: use object from legacy in mode2 ( #99533 )
2025-01-27 08:11:31 -06:00
437b7a565d
Auth: Add access token to in-proc communication and ServiceIdentity ( #98926 )
...
Use fake access token for in-proc grpc and add ServiceIdentity
---------
Co-authored-by: gamab <gabriel.mabille@grafana.com >
Co-authored-by: Karl Persson <23356117+kalleep@users.noreply.github.com >
2025-01-24 14:03:23 +01:00
Ryan McKinley
680e6bc1f8
Authlib: Use types package rather than claims ( #99243 )
2025-01-21 12:06:55 +03:00
Andreas Christou
414f8d14f4
Azure: User-auth updates ( #99113 )
...
* Bump Azure sdk
* Minor fix because of credentials update
* Revert "Minor fix because of credentials update"
This reverts commit 1f49949ee3 .
2025-01-17 12:13:34 -06:00
Alexander Zobnin
17a09c28dd
Chore: Upgrade openfga to 1.8.4 ( #99095 )
2025-01-17 09:36:08 +01:00
dependabot[bot] and github-actions[bot]
1c67f4084c
Bump google.golang.org/api from 0.213.0 to 0.216.0 ( #98905 )
...
* Bump google.golang.org/api from 0.213.0 to 0.216.0
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client ) from 0.213.0 to 0.216.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases )
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md )
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.213.0...v0.216.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/api
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* update workspace
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-13 16:05:48 -05:00
ismail simsek
f74396b51d
Prometheus: Update prometheus to v0.301.0 for utf8 support ( #98848 )
...
* update github.com/prometheus/prometheus to v0.301.0
* have an adapter for infra logger
* go mod tidy and go work sync
* remvoe the cuelang.org/go replace
* remove slog_adapter
2025-01-13 17:14:20 +01:00
Selene
0501ff9079
Codegen: Isolate schema generation code ( #98742 )
...
* Create go.mod files for plugins and core kinds
* Update go work and main go.mod dependencies
* Update pfs import
* Missing update of pfs dependency
* Remove fixed cuelang dependency
* Update codeowners
* Update workspace
* Update Dockerfile
* Missing go.mod codeowner
* Use intermediate kin-openapi dependency to make all workspaces to work
2025-01-10 13:33:51 +01:00
Will Browne
5a2315dabf
Plugins: Capture error source from grpc status errors ( #97471 )
...
* capture errorsource from grpc error
* apply PR feedback
* update comment
* update comment
* use SDK logic
* update SDK commit
* update sdk
* update golden files
2025-01-08 17:05:28 +00:00
dependabot[bot] and github-actions[bot]
addc1c95a5
Bump golang.org/x/crypto from 0.31.0 to 0.32.0 ( #98550 )
...
* Bump golang.org/x/crypto from 0.31.0 to 0.32.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.32.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* update workspace
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-07 08:00:45 +03:00
Ryan McKinley
6683cdc082
K8s: Update from v0.31.3 to v0.32.0 ( #98507 )
2025-01-06 18:20:35 +03:00
dependabot[bot]
fed73bfa59
Chore(deps): Bump sigs.k8s.io/structured-merge-diff/v4 from 4.4.1 to 4.5.0 ( #98091 )
2025-01-03 17:44:33 -05:00
Robert Goltz
5a2344ed0c
Chore: Bump dependency golang.org/x/net to v0.33.0 - fix: CVE-2024-45338 ( #98340 )
...
* Chore: golang.org/x/net update to fix CVE-2024-45338
* Chore: golang.org/x/net update to fix CVE-2024-45338 - resolve trivy-finding + 2nd run make update-workspace
2025-01-02 11:22:25 -07:00
Stephanie Hingtgen
124440ccee
Unistore: Block on legacy writes in mode3 ( #98147 )
2024-12-19 08:47:48 -06:00
Georges Chaudy
3fe2227c82
[auth] make id-token optional ( #97831 )
...
make idtoken optional
enure there is always an identity in the context
fix: update token
fix: now it should work
fix: now it should work
2024-12-17 13:28:00 +02:00
Todd Treece and Ryan McKinley
8b0cd9dbb9
K8s: Increment generation in generic strategy ( #97946 )
...
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2024-12-16 08:18:43 -05:00
Ryan McKinley and Todd Treece
6d21eddf13
Plugins: Update to latest go plugin SDK (v0.260.3) w/ arrow v18 ( #97561 )
...
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2024-12-13 17:06:39 +03:00
Jean-Philippe Quéméner
1509fadd5b
refactor(unified-storage): make datasyncer configurable ( #97832 )
2024-12-12 21:41:01 +01:00
Robert Goltz and Mariell Hoversholm
0a390cc069
Chore: Bump dependency golang.org/x/crypto to v0.31.0 - fix: CVE-2024-45337 ( #97823 )
...
* Update dependency golang.org/x/crypto to v0.31.0
* Update dependency golang.org/x/crypto to v0.31.0 - based on Trivy Scan
* Chore: go mod tidy
* Chore: make update-workspace
* Chore: manually update more sum files
---------
Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com >
2024-12-12 14:21:46 +01:00
Ivana Huckova and Andres Martinez Gotor
802b96c6f7
Bump github.com/grafana/grafana-plugin-sdk-go to v0.260.1 ( #97329 )
...
* Bump github.com/grafana/grafana-plugin-sdk-go to v0.260.1
* run make update-workspace
* make update-workspace
---------
Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com >
2024-12-03 16:19:43 +01:00
Karl Persson
3a17d0c927
IAM: align AuthInfo interface ( #97228 )
...
* Update to use updated interface
2024-12-03 15:11:17 +01:00
Ryan McKinley
219411f894
K8s: Upgrade v0.31.1 -> v0.31.3 ( #96964 )
2024-12-02 12:49:24 +02:00
Kévin Gomez and Ivan Ortega
c8d3ea58f8
Support importing local cue modules when generating TS types with cog ( #96876 )
...
* Support importing local cue modules when generating TS types with cog
* Generate enums as unions of values instead of an actual `enum` statement
* Update transformers to use the new TS enums
* Update go workspaces
---------
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com >
2024-11-28 10:45:31 +01:00
Andreas Christou
4ea15f2f2c
Bump Plugin SDK version ( #96933 )
...
* Bump Plugin SDK version
* Rerun update-workspace
2024-11-22 20:43:13 +02:00
Ryan McKinley and Todd Treece
29cdfdff87
Storage: Revert using real gRPC for integration tests ( #96410 )
...
---------
Co-authored-by: Todd Treece <todd.treece@grafana.com >
2024-11-15 16:50:49 -05:00
Isabella Siu
06196022cf
Elasticsearch: Update grafana-plugin-sdk-go for sse errorsource updates ( #96144 )
2024-11-15 10:18:07 -05:00
dependabot[bot] and Jo
0b84d8afe7
Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1 ( #95807 )
...
* Bump github.com/golang-jwt/jwt/v4 from 4.5.0 to 4.5.1
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt ) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md )
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.5.0...v4.5.1 )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix make workspace update
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jo <me@jguer.space >
2024-11-14 17:06:12 +02:00
Karl Persson
8d74296b6c
Authn: Always set namespace ( #96230 )
...
* Rename from AllowedKubernetesNamespace to Namespace
* Use a sync hook to always set namespace for Identity.
* format
* Don't set uid when authenticating as user
2024-11-12 10:12:47 +01:00
Leonor Oliveira
a1de4cc5fc
Allow downgrade from any mode to mode 1 or 2. Allow setting all dual writer combinations ( #95968 )
...
* Allow downgrade from any mode to mode 1 or 2
* Allow for all combinations of dual writer setting
* Add all cases
* Include mode3
2024-11-11 10:52:36 +01:00
Carl Bergquist and Kyle Brandt
70223b2e3d
Loki: Add support for injecting scopes into loki expressions. ( #95591 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
Co-authored-by: Kyle Brandt <kyle@grafana.com >
2024-11-06 15:28:42 +02:00
Karl Persson
3bcbf231ee
IDToken: fix namespace format ( #95341 )
...
* Bump authlib version
* Remove temporary formatter and start signing tokens with `stacks-` prefix
* update workspace
2024-11-04 09:33:03 +01:00
Todd Treece
30b1e3b289
K8s: APIGroupBuilder App SDK Support ( #95638 )
2024-11-01 08:28:56 -04:00
Ryan McKinley
4e1f0dadbd
UnifiedStorage: Default to running unified-grpc in integration tests ( #93492 )
2024-10-31 16:29:32 +03:00