Alex Khomenko
8cdf5ee824
E2C: Add Public Preview banner ( #90922 )
...
* E2C: Add public preview message
* Read feedback URL from the settings
* Translate strings
* Add missing translation
* Add missing translation[2]
2024-07-25 12:44:49 +03:00
Kristina
6eb695b258
Explore: Add setting for default time offset ( #90401 )
...
* Add setting for explore for a different time offset
* fix linter
* Add validation for duration value
2024-07-17 11:47:49 -05:00
Andrew Hackmann
319a874033
MSSQL: Password auth for Azure AD ( #89746 )
...
* Password auth for Azure AD
* rename auth fields
* add azure flag for client password cred enabled
* prettier
* rename flag
* Update go.mod
* Update public/app/plugins/datasource/mssql/azureauth/AzureCredentialsForm.tsx
Co-authored-by: Andreas Christou <andreas.christou@grafana.com >
* Apply suggestions from code review
Co-authored-by: Andreas Christou <andreas.christou@grafana.com >
* update package
* go mod
* prettier
* remove password
* gowork
* remove unused env test
* linter
---------
Co-authored-by: Andreas Christou <andreas.christou@grafana.com >
2024-07-16 14:08:51 -05:00
Timur Olzhabayev
f763f2085b
Feat: Extending report interaction with static context that can be appended to all interaction events ( #88927 )
...
* Extending report interaction with static context that can be appended to all requests
2024-07-08 16:37:45 +02:00
Joao Silva
9004b58851
Navigation: Backend to save navigation customization into preferences ( #89783 )
2024-07-03 10:40:51 +01:00
Andres Martinez Gotor
a22c1ae424
Chore: Remove provisional APIVersion from plugin info ( #89831 )
2024-07-01 10:53:16 +02:00
Ryan McKinley
99d8025829
Chore: Move identity and errutil to apimachinery module ( #89116 )
2024-06-13 07:11:35 +03:00
Juan Cabanas
a85c1b69d5
PublicDashboards: Remove publicDashboardUid from DashboardMeta ( #85126 )
2024-05-23 11:21:21 -03:00
Andres Martinez Gotor
d8904f3ca4
Add apiVersion to plugin models ( #87510 )
2024-05-14 13:58:27 +02:00
Jon Cole
8e96821c16
Azure: get custom cloud list from grafana-azure-sdk-go package ( #86717 )
...
* Get custom cloud list from grafana-azure-sdk-go for frontend settings
* Remove getAzureClouds() and call CustomClouds() directly
* remove unused type
2024-05-04 13:17:51 +03:00
Andreas Christou
6bb7ab261a
AzureMonitor: User authentication support ( #81918 )
...
* Stub out frontend user auth
* Stub out backend user auth
* Add context
* Reorganise files
* Refactor app registration form
* Alert for user auth service principal credentials
* AzureMonitor: Add flag for enabling/disabling fallback credentials for current user authentication (#82332 )
* Rename field
* Add fallback setting
* Update tests and mock
* Remove duplicate setting line
* Update name of property
* Update frontend settings
* Update docs and default config files
* Update azure-sdk
* Fix lint
* Update test
* Bump dependency
* Update configuration
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
* Docs review
* AzureMonitor: User authentication frontend updates (#83107 )
* Rename field
* Add fallback setting
* Update tests and mock
* Remove duplicate setting line
* Update name of property
* Update frontend settings
* Update docs and default config files
* Add alerts to query editor
- Add authenticatedBy property to grafana/data
- Update mocks
- Update query editor to disable it under certain circumstances
- Update tests
* Add separate FallbackCredentials component
- Reset AppRegistrationCredentials component to only handle clientsecret credentials
- Update AzureCredentialsForm
- Update selectors
- Update tests
- Update credentials utility functions logic
* Alert when fallback credentials disabled
* Update condition
* Update azure-sdk
* Fix lint
* Update test
* Remove unneeded conditions
* Set auth type correctly
* Legacy cloud options
* Fix client secret
* Remove accidental import
* Bump dependency
* Add tests
* Don't use VerticalGroup component
* Remove unused import
* Fix lint
* Appropriately set oAuthPassThru and disableGrafanaCache properties
* Clear azureCredentials on authType change
* Correctly retrieve secret
* Fix bug in authTypeOptions
* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/CurrentUserFallbackCredentials.tsx
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com >
* Update public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com >
* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/CurrentUserFallbackCredentials.tsx
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com >
* Add documentation links
* Fix broken link
---------
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com >
* AzureMonitor: Update docs for current user authentication (#83440 )
* Rename field
* Add fallback setting
* Update tests and mock
* Remove duplicate setting line
* Update name of property
* Update frontend settings
* Update docs and default config files
* Add alerts to query editor
- Add authenticatedBy property to grafana/data
- Update mocks
- Update query editor to disable it under certain circumstances
- Update tests
* Add separate FallbackCredentials component
- Reset AppRegistrationCredentials component to only handle clientsecret credentials
- Update AzureCredentialsForm
- Update selectors
- Update tests
- Update credentials utility functions logic
* Alert when fallback credentials disabled
* Update condition
* Update azure-sdk
* Fix lint
* Update test
* Remove unneeded conditions
* Set auth type correctly
* Legacy cloud options
* Fix client secret
* Remove accidental import
* Bump dependency
* Add tests
* Don't use VerticalGroup component
* Remove unused import
* Update docs
* Fix lint
* Appropriately set oAuthPassThru and disableGrafanaCache properties
* Clear azureCredentials on authType change
* Correctly retrieve secret
* Feedback
* Spelling
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com >
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com >
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com >
* Update docs/sources/datasources/azure-monitor/_index.md
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com >
---------
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com >
* Docs review
* Update docs with additional configuration information
* Fix to appropriately hide the query editor
* Typo
* Update isCredentialsComplete
* Update test
---------
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com >
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com >
2024-03-19 16:32:24 +00:00
Josh Hunt
f2628bfad4
Whitelabelling: Override version in UI from config ( #84392 )
...
* Unify how the version is shown in the UI
* use versionString in dashboard help bundles
* fix lint
* remove comment
* fix test types
* make test less flakey
2024-03-15 18:39:13 +02:00
Gilles De Mey
8765c48389
Alerting: Remove legacy alerting ( #83671 )
...
Removes legacy alerting, so long and thanks for all the fish! 🐟
---------
Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com >
Co-authored-by: Sonia Aguilar <soniaAguilarPeiron@users.noreply.github.com >
Co-authored-by: Armand Grillet <armandgrillet@users.noreply.github.com >
Co-authored-by: William Wernert <rwwiv@users.noreply.github.com >
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com >
2024-03-14 15:36:35 +01:00
Josh Hunt
1ab8857e48
E2C: Add cloud migration is_target server config option ( #83419 )
2024-03-11 14:29:44 +02:00
Selene
1181141b40
Schemas: Refactor plugin's metadata ( #83696 )
...
* Remove kinds verification for kind-registry
* Read plugin's json information with json library instead of use thema binding
* Remove grafanaplugin unification
* Don't use kindsys for extract the slot name
* Fix IsGroup
* Remove all plugindef generation
* Refactor schema interfaces
* Pushed this change from a different branch by mistake...
* Create small plugin definition structure adding additional information for plugins registration
* Add some validation checks
* Delete unused code
* Fix imports lint
2024-03-07 11:09:19 +01:00
linoman
8e827afb8c
Password Policy: Validate strong password upon update ( #83959 )
...
* add drawer for auth settings
* add StrongPasswordField component
* Add style to different behaviours
* update style for component
* add componenet to ChangePasswordForm
* pass the event handlers to the child component
* add style for label container
* expose strong password policy config option to front end
* enforce password validation with config option
2024-03-07 01:56:48 -06:00
Carl Bergquist
b3efb4217e
Cfg: Adds experimental scope grafana.ini settings ( #83174 )
...
Signed-off-by: bergquist <carl.bergquist@gmail.com >
2024-03-05 16:41:19 +01:00
Misi
75b020c19d
Cfg: Add a setting to configure if the local file system is available ( #83616 )
...
* Introduce environment.local_filesystem_available
* Only show TLS client cert, client key, client ca when local_filesystem_available is true
* Rename LocalFSAvailable to LocalFileSystemAvailable
2024-03-01 10:39:50 +01:00
Khushi Jain
d02de5ddb9
Image Rendering: Add settings for default width, height and scale ( #82040 )
...
* Add Image width & height
* ability to change default width, height and scale
* default ini
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update pkg/setting/setting.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update pkg/setting/setting.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Added docs, changed frontend
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update conf/defaults.ini
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update conf/defaults.ini
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 >
* Update pkg/api/dtos/frontend_settings.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update pkg/api/frontendsettings.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update pkg/api/render.go
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* add query float 64
* Update packages/grafana-runtime/src/config.ts
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update public/app/features/dashboard/components/ShareModal/utils.ts
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* spacing
* fix tests
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
---------
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
2024-02-26 13:27:34 +01:00
linoman
ac84069071
Password policy ( #82268 )
...
* add password service interface
* add password service implementation
* add tests for password service
* add password service wiring
* add feature toggle
* Rework from service interface to static function
* Replace previous password validations
* Add codeowners to password service
* add error logs
* update config files
---------
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
2024-02-16 04:58:05 -06:00
Ieva
4d53385d5f
RBAC: allow listing permissions on the root folder ( #82184 )
...
* allow returning AC metadata for the root folder
* add a test
* share the reserved root folder UID with frontend
2024-02-15 16:13:14 +00:00
Ryan McKinley
9c9e5e68c8
User: Add uid colum to user table ( #81615 )
2024-02-01 18:14:10 -08:00
Marcus Efraimsson
6768c6c059
Chore: Remove public vars in setting package ( #81018 )
...
Removes the public variable setting.SecretKey plus some other ones.
Introduces some new functions for creating setting.Cfg.
2024-01-23 12:36:22 +01:00
Ryan McKinley
2c09f969f1
K8s: Add dashboard service (requires dev mode) ( #78565 )
2024-01-11 01:20:30 +02:00
Jo
5ae3249c36
Auth: Hide forgot password if grafana auth is disabled ( #79895 )
...
* hide forgot password if grafana auth is disabled
* fix test
2024-01-04 10:46:55 +01:00
Torkel Ödegaard
e924627659
Frontend: Reload the browser when backend configuration/assets change ( #79057 )
...
* Detect frontend asset changes
* Update
* merge main
* Frontend: Detect new assets / versions / config changes (#79258 )
* avoid first check
* Updates and add tests
* Update
* Update
* Updated code
* refine
* use context
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2024-01-04 08:00:07 +01: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
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
Misi
ce1450d4d3
Chore: Configure SkipOrgRoleSync from OAuthInfo for OAuth connectors ( #79443 )
...
* Configure SkipOrgRoleSync from OAuthInfo
* Remove skipOrgRoleSync from socialbase and connectors
* Add test to socialimpl.ProvideService
* Deprecate AuthSettings' fields
* clean up misleading init of frontendsettings.Auth
2023-12-15 10:58:08 +01:00
Jo
3647ba7360
Anonymous: Add configurable device limit ( #79265 )
...
* Anonymous: Add device limiter
* break auth if limit reached
* fix typo
* refactored const to make it clearer with expiration
* anon device limit for config
---------
Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com >
2023-12-12 12:57:25 +02:00
Kat Yang
31fb38723d
Chore: Remove FolderID from DTO Folder ( #78420 )
...
* Chore: Remove FolderID from DTO Folder
* chore: add OrgID field to an instance of SaveDashboardCommand
* chore: add another OrgID to pair with the FolderUID:
* chore: add OrgId to Folder struct and expectedParentOrgIDs to testCase struct, unsure if last part is necessary
* Fix folder test, add expected orgID
* chore: regen specs
---------
Co-authored-by: Ida Furjesova <ida.furjesova@grafana.com >
2023-12-07 13:56:04 +01:00
idafurjes
550746be71
Fix capitalising Folder structs ( #79207 )
...
* Fix capitalising Folder structs
* Add swagger and fix api dashboard test
* Add swagger files with bingo installed
2023-12-07 13:15:58 +01:00
Alexander Zobnin
959ebf82da
Folders: Show dashboards and folders with directly assigned permissions in "Shared" folder ( #78465 )
...
* Folders: Show folders user has access to at the root level
* Refactor
* Refactor
* Hide parent folders user has no access to
* Skip expensive computation if possible
* Fix tests
* Fix potential nil access
* Fix duplicated folders
* Fix linter error
* Fix querying folders if no managed permissions set
* Update benchmark
* Add special shared with me folder and fetch available non-root folders on demand
* Fix parents query
* Improve db query for folders
* Reset benchmark changes
* Fix permissions for shared with me folder
* Simplify dedup
* Add option to include shared folder permission to user's permissions
* Fix nil UID
* Remove duplicated folders from shared list
* Folders: Fix fetching empty folder
* Nested folders: Show dashboards with directly assigned permissions
* Fix slow dashboards fetch
* Refactor
* Fix cycle dependencies
* Move shared folder to models
* Fix shared folder links
* Refactor
* Use feature flag for permissions
* Use feature flag
* Review comments
* Expose shared folder UID through frontend settings
* Add frontend type for sharedWithMeFolderUID option
* Refactor: apply review suggestions
* Fix parent uid for shared folder
* Fix listing shared dashboards for users with access to all folders
* Prevent creating folder with "shared" UID
* Add tests for shared folders
* Add test for shared dashboards
* Fix linter
* Add metrics for shared with me folder
* Add metrics for shared with me dashboards
* Fix tests
* Tests: add metrics as a dependency
* Fix access control metadata for shared with me folder
* Use constant for shared with me
* Optimize parent folders access check, fetch all folders in one query.
* Use labels for metrics
2023-12-05 16:13:31 +01:00
Torkel Ödegaard
ed128ea964
Frontend: Foundations for multi tenant frontend ( #78815 )
...
* Frontend: Foundations for multi tenant frontend
* improve manifest parsing for multi-tenant frontend (#78876 )
* add test
* add test
* ??
* Updates
* Added cache
* test cleanup
* lint
* fix test
* fix error templates
* cleanup
* remove copy
* revert changes to list testdata
* comment cleanup
* prepare integration tests
* Remove integrety
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2023-12-05 08:34:22 +01:00
Jo
0de66a8099
Authz: Remove use of SignedInUser copy for permission evaluation ( #78448 )
...
* remove use of SignedInUserCopies
* add extra safety to not cross assign permissions
unwind circular dependency
dashboardacl->dashboardaccess
fix missing import
* correctly set teams for permissions
* fix missing inits
* nit: check err
* exit early for api keys
2023-11-22 14:20:22 +01:00
Kat Yang
a640d9d395
Chore: Deprecate Id from Folder in DTOs ( #77943 )
...
* Chore: Deprecate Id from Folder in DTOs
* chore: regen spec
2023-11-15 10:29:49 -05:00
Ryan McKinley
ea37a116f7
K8s: expose namespace in frontend_settings ( #78090 )
...
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com >
2023-11-14 06:34:09 +02:00
Agnès Toulet
bb12fe7d82
UsageInsights: Disable frontend features when backend is disabled ( #77772 )
...
* UsageInsights: Disable frontend features when backend is disabled
* Disable DS insights
* Update doc
* fix linter issue
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
---------
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
2023-11-09 11:53:20 +01:00
Kat Yang
6ed09de47d
Chore: Deprecate FolderId in DashboardMeta ( #77626 )
...
* Chore: Deprecate FolderId in DashboardMeta
* chore: regen specs
2023-11-06 11:31:44 -05:00
Ryan McKinley
45d59cf31b
Dashboards: Remove dummy trim dashboard api ( #77249 )
...
Co-authored-by: nikimanoledaki <niki.manoledaki@grafana.com >
2023-11-02 08:35:14 -07:00
William Assis
65a7bddcee
Analytics: Add option to pass destSDKBaseURL to rudderstack load method ( #74926 )
...
* Add option to pass destSDKBaseURL to rudderstack load method
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
---------
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
2023-10-23 12:43:33 +00:00
Juan Cabanas
cdca1518d2
PublicDashboards: Title logo and footer redesign ( #74769 )
...
---------
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
2023-10-13 13:18:05 -03:00
Sergey Kostrukov
3ee40d3a5a
Azure: Settings for Azure AD Workload Identity ( #75283 )
...
* Settings for Azure AD Workload Identity
* Update dependency on Grafana Azure SDK
* Documentation
* Fix JS code
* Cleanup Prometheus backend code
* Making prettier happy
2023-09-28 12:05:16 +01:00
Ryan McKinley
025b2f3011
Chore: use any rather than interface{} ( #74066 )
2023-08-30 18:46:47 +03:00
Jo
5eed495cce
Chore: Port user services to identity.Requester ( #73851 )
...
* port api key api to signedinuser
* port users to signed in user interface
* fix tests
2023-08-28 10:42:24 +02:00
Torkel Ödegaard
3ee26df41e
PublicDashboards: Variables refactor ( #73476 )
...
Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com >
Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com >
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2023-08-25 13:56:02 -05:00
Joao Silva
3bb23d6be7
Whitelabeling: Add a config option to hide the Grafana edition from the footer ( #73412 )
2023-08-18 15:09:36 +01:00
Ieva
1fa4f4bc57
Chore: remove DisableSyncLock setting, as it's not used anymore ( #72680 )
...
* rmeove DisableSyncLock setting, as it's not used anymore
* remove unused import
2023-08-01 17:38:07 +03:00
Gabriel MABILLE
4c7b97cdb0
ClientTokenRotation: Don't rotate session cookie for authproxy ( #72496 )
...
* ClientTokenRotation: Don't rotate session cookie for authproxy
* Account for config option auth.proxy enable_login_token
* Limit amount of changes on devenv
* Fix tests by moving authenticatedBy up
* Uncomment nginx conf
2023-07-28 15:32:58 +02:00
Esteban Beltran
d618bc46d1
Plugins: Add config option to exclude specific plugins from frontend sandbox ( #70899 )
2023-07-05 11:16:56 +02:00