Alexander Zobnin
6c7d5bf95f
Authn UI: Remove feature toggle ( #70073 )
...
* Authn UI: Remove feature toggle
* remove feature flag usage
2023-06-14 19:58:15 +03:00
Jo
914daef0fd
Auth: Add request context to UserInfo calls ( #70007 )
...
* use context for UserInfo requests
* set timeouts for oauth http client
* Update pkg/login/social/common.go
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
---------
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2023-06-14 14:30:40 +02:00
Will Browne
91b0cdc871
Plugins: Account for nil user when constructing plugin context ( #69811 )
...
cater for nil user
2023-06-08 19:36:41 +03:00
Will Browne
624777258b
Plugins: Refactor creation of plugin context to dedicated service ( #66451 )
...
* first pass
* fix tests
* return errs
* change signature
* tidy
* delete unnecessary fields from test
* tidy
* fix tests
* simplify
* separate error check in API
* apply nits
2023-06-08 13:59:51 +02:00
Will Browne
a221e1d226
Plugins: Standardize Golang enum naming convention ( #69449 )
...
* standardize enum pattern
* fix up
2023-06-08 12:21:19 +02:00
Giuseppe Guerra
f148b5fb28
Plugins: Forbid loading Angular plugins when Angular is disabled ( #69679 )
...
* Plugins: Forbid loading Angular plugins when Angular is disabled
* Plugins: Made angulardetector a service, add tests for angular loader cases
* Fix missing import
* Add nolint:gocyclo to loadPlugins
2023-06-07 11:08:01 +02:00
Jo
aee5c6dea0
Auth: Use auth broker by default ( #69620 )
...
remove authnservice toggle
2023-06-07 08:57:41 +02:00
Jev Forsberg
c0a1fc2cbd
SQL Datasources: Reinstate SQL data source behavior around database selection when default configured databases already exist ( #65659 )
...
* badlm0mma/sql_datasource_update/ initial notes
* baldm0mma/sql_datasource_update/ solution
* baldm0mma/sql_datasource_update/ clean datasetSelector
* baldm0mma/sql_datasource_update/ clean up queryEditor.tsx
* baldm0mma/sql_datasource_update/ clewan up queryHeader.tsx
* baldm0mma/sql_datasource_update/ clean up tableSelector.tsx
* baldm0mma/sql_datasource_update/ clean up mysqlDatasource.ts
* baldm0mma/sql_datasource_update/ clean up configurationEditor.tsx
* baldm0mma/sql_datasource_update/ rem conlog from queryEditor.tsx
* baldm0mma/sql_datasource_update/ rem conlog from queryEditor.tsx
* baldm0mma/sql_datasource_update/ remove conlog in tableSelector.tsx
* baldm0mma/sql_datasource_update/ rem conlog in sqlDatasource.ts
* baldm0mma/sql_datasource_update/ update deafult database value in sqlDatasource.ts
* baldm0mma/sql_datasource_update/ update logic to accomidate no preconfig
* baldm0mma/sql_datasource_update/ update props
* baldm0mma/sql_datasource_update/ update prop names
* baldm0mma/sql_datasource_update/ update prop names in tableSelector
* baldm0mma/sql_datasource_update/ update annos in datasetSelector
* baldm0mma/sql_datasource_update/ update naming
* baldm0mma/sql_datasource_update/ update to standard langauae
* baldm0mma/sql_datasource_update/ update prop names
* baldm0mma/sql_datasource_update/ update annos in datasetSelector
* baldm0mma/sql_datasource_update/ remove unused import in tableSelector.tsx
* baldm0mma/sql_datasource_update/ remove addDefaultdataset
* baldm0mma/sql_datasource_update/ reset query when needed
* baldm0mma/sql_datasource_update/ update asymc return val
* baldm0mma/sql_datasource_update/ remove psql query editor
* baldm0mma/sql_datasource_update/ remove con logs in defaults.ts
* baldm0mma/sql_datasource_update/ revert postgres changes
* baldm0mma/sql_datasource_update/ update postgres naming
* baldm0mma/sql_datasource_update/ add altert
* baldm0mma/sql_datasource_update/ update annos and add alerts and alert logic
* baldm0mma/sql_datasource_update/ update postgres nomenclature
* baldm0mma/sql_datasource_update/ update annos and remove con logs
* baldm0mma/sql_datasource_update/ update nomenclature
* baldm0mma/sql_datasource_update/ drone fix
* baldm0mma/sql_datasource_update/ export and format
* baldm0mma/sql_datasource_update/ update docs for mysql datasource with dataset dropdown disable info
* baldm0mma/sql_datasource_update/ update mssql docs
* baldm0mma/sql_datasource_update/ update postgres docs and alert logic
* baldm0mma/sql_datasource_update/ add tests
* baldm0mma/sql_datasource_update/ update docs
* baldm0mma/sql_datasource_update/ update test names
* baldm0mma/sql_datasource_update/ update alert language
* baldm0mma/sql_datasource_update/ correct spelling
* baldm0mma/sql_datasource_update/ update postgres query builder image
* baldm0mma/sql_datasource_update/ update annos
* baldm0mma/sql_datasource_update/ update tests
* baldm0mma/sql_datasource_update/ docs updated
* baldm0mma/sql_datsource_update/ refactor determinePlaceholder
* Update public/app/features/plugins/sql/components/QueryEditor.tsx
spelling
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
* Update public/app/features/plugins/sql/components/QueryEditor.tsx
spelling
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
* baldm0mma/sql_datasource_update/ remove superfluous cleanup data from tests
* baldm0mma/sql_datasource_update/ update spelling
* Update public/app/features/plugins/sql/components/SqlComponents.test.tsx
spelling
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
* baldm0mma/sql_datasource_update/ add logic to prevent db call for tables if dataset it nullish
* baldm0mma/sql_datasource_update/ update alert tests
* baldm0mma/sql_datasource_update/ update button text
* baldm0mma/sql_datasource_update/ update tests to preferred standard
* baldm0mma/sql_datasource_update/add feature flag
* baldm0mma/sql_datasource_update/ update mssql docs
* baldm0mma/sql_datasource_update/ add feature flag to registry
* baldm0mma/sql_datasource_update/ adjust table and dataset dropdown logic
* baldm0mma/sql_datasource_update/ update testing to deal with feature flag
* baldm0mma/sql_datasource_update/ update wioth cascadeDisable
* baldm0mma/sql_datasource_update/ update naming
* baldm0mma/sql_datasource_update/ update tests to reflect enabled feature flag
* baldm0mma/sql_datasource_update/ update annotations
* baldm0mma/sql_datasource_update/ update annos in queryEd
* baldm0mma/sql_datasource_update/ update test names
* baldm0mma/sql_datasource_update/ update anno issues
* baldm0mma/slq_datasource_update/ add query to sqlDatasource with error
* baldm0mma/sql_datasource_update/ update docs language
* baldm0mma/sql_datasource_update/ remove notes to self
* baldm0mma/sql_datasource_update/ add QueryEditorFeatureFlag.utils.ts
* baldm0mma/sql_datasource_update/ update database into json
* baldm0mma/sql_datasource_update/ found file
* Update docs/sources/datasources/mssql/query-editor/index.md
Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
* baldm0mma/sql_datasource_update/ update feature flag and toggles
* baldm0mma/sql_datasource_update/ add hasConfigIssue, update annos, rethink disable logic
* baldm0mma/sql_datasource_update/ update warning language
* baldm0mma/sql_datasource_update/ update button content
* baldm0mma/sql_datasource_update/ update jsonData logic in frontendsettings.go
* baldm0mma/sql_datasource_update/ update jsonData logic
* baldm0mma/sql_datasource_update/ update annos in frontendsettings.go
* baldm0mma/sql_datasource_update/ update sql editor docs
* baldm0mma/sql_datasource_update/ update mysql docs
* baldm0mma/sql_datasource_update/ update postgres docs
* baldm0mma/sql_datasource_update/ remove unused code in datasetSelector.tsx
* baldm0mma/sql_datasource_update/ update syntax conventions
* baldm0mma/sql_datasource_update/ add logs
* baldm0mma/sql_datasource_update/ remove unused code
* baldm0mma/sql_datasource_update/ remove conlogs
* baldm0mma/sql_datasource_update/ update tests
* baldm0mma/sql_datasource_update/ add second error to query
* baldm0mma/sql_datasource_update/ run make gen-cue
* baldm0mma/sql_database_update/ lint registry
* baldm0mma/sql_datasource_update/ update registry
* baldm0mma/sql_datasource_update/ upate datasource logic
* baldm0mma/sql_datasource_update/ add logs
* baldm0mma/sql_datasource_update/ add comms to self
* baldm0mma/sql_datasource_update/ comment out false pos tests, and add investigatory comments
* baldm0mma/sql_database_update/ update query error to only test for config change if query was made in "builder" mode
* baldm0mma/sql_datasource_update/ update annos in frontendsettings.go
* baldm0mma/sql_datasource_update/ update error logic to datasource
* baldm0mma/sql_datasource_update/ remove alerts from query editor
* baldm0mma/sql_datasource_update/ remove unused imports
* baldm0mma/sql_datasource_update/ update tests
* baldm0mma/sql_datasource_update/ remove comments
* baldm0mma/sql_datasource_update/ remove logs in queryGroup.tsx
* baldm0mma/sql_datasource_update/ remove outdated annotation in datasetSelector.tsx
* baldm0mma/sql_datasource_update/ remove superfluous test and update test description
* baldm0mma/sql_datasource_update/ remove feature flag
* baldm0mma/sql_datasource_update/ add back feature flag
* baldm0mma/sql_datasource_update/ update to enums
* baldm0mma/sql_datasource_update/ update panel caps
* baldm0mma/sql_datasource_update/ update dataset selector to default update the database correctly
* baldm0mma/sql_datasource_update/ move onChange into conditional
* baldm0mma/sql_datasource_update/ add logic for previous datasets choice
* baldm0mma/sql_datasource_update/ add back previous logic for assigning default datasets
* baldm0mma/sql_datasource_update/ update useEffect dep array
* baldm0mma/sql_datasource_update/ remove feature toggle
* baldm0mma/sql_datasource_update/ add feature toggle
---------
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
2023-06-06 10:28:52 -06:00
Giuseppe Guerra
7a132680ef
Revert "Plugins: Forbid loading Angular plugins when Angular is disabled ( #69225 )" ( #69657 )
...
This reverts commit ff34279ff4
.
2023-06-06 18:09:41 +02:00
Giuseppe Guerra
ff34279ff4
Plugins: Forbid loading Angular plugins when Angular is disabled ( #69225 )
...
* Plugins: Forbid loading Angular plugins when Angular is disabled
* Plugins: Made angulardetector a service, add tests for angular loader cases
* Fix missing import
2023-06-06 17:14:31 +02:00
Marcus Efraimsson
dcc1169ab2
Chore: Remove unused code/dependencies in testdata datasource ( #69386 )
2023-06-05 11:34:02 +02:00
Esteban Beltran
1ed4c0382b
Plugins: Add Initial implementation for frontend plugins sandboxing ( #68889 )
2023-06-05 10:51:36 +02:00
Ryan McKinley
422684d8b0
Plugins: Support changing plugin IDs (hardcoded) ( #67867 )
2023-06-02 10:46:12 -07:00
Ashley Harrison
5a98348faf
Chore: remove i18n toggle ( #69389 )
...
* remove i18n toggle
* remove beta badge on language picker
* remove toggle from go code
* Revert "remove beta badge on language picker"
This reverts commit 3b76300aa7
.
2023-06-02 09:24:40 +01:00
Stephanie Hingtgen
29a4e3d7da
Secure socks proxy: allow for UI to be disabled ( #69408 )
2023-06-01 12:58:51 -06:00
Ashley Harrison
778963849e
News: Expose config option to disable News feed ( #69365 )
...
* customize news feed
* remove url customisation
2023-06-01 13:35:05 +01:00
Ieva
d8b66d5c4b
RBAC: remove some IsDisabled
checks ( #69272 )
...
* remove some access contorl IsDisabled() checks
* cleaning up tests
* update tests
* linting
2023-05-31 09:58:57 +01:00
Ieva
d98813796c
RBAC: Remove legacy AC from HasAccess permission check ( #68995 )
...
* remove unused HasAdmin and HasEdit permission methods
* remove legacy AC from HasAccess method
* remove unused function
* update alerting tests to work with RBAC
2023-05-30 14:39:09 +01:00
Will Browne
12dc56ad0c
Plugins: Refactor plugin repository API ( #69063 )
...
* support grafana wildcard version
* undo go.mod changes
* tidy
* flesh out tests
* refactor
* add tests
* tidy naming
* undo some changes
* split interfaces
* separation
* update new signature
* simplify
* update var namings
* unexport types
* introduce opts pattern
* reorder test
* fix compat checks
* middle ground
* unexport client
* move back
* fix tests
* inline logger
* make client usable
* use fake logger
* tidy errors
* remove unused types
* fix test
* review fixes
* rework compatibility
* adjust installer
* fix tests
* opts => cfg
* remove unused var
* fix var name
2023-05-30 11:48:52 +02:00
Gilles De Mey
73681a251e
Alerting: Add support for Alert State History Loki primary ( #69065 )
...
add support for multiple ash targets with loki as primary
2023-05-25 16:09:44 +03:00
Misi
df4db412cb
Auth: Fix visibility of the Invite button on /admin/users page ( #68991 )
...
* Fix for invite button visibility
* Align test
2023-05-25 13:58:41 +02:00
Ieva
9439649a4c
RBAC: remove unused dash and folder permission logic ( #68968 )
...
remove unused HasAdmin and HasEdit permission methods
2023-05-24 15:33:35 +01:00
Ieva
4980b64274
RBAC: Remove legacy ac from authorization middleware ( #68898 )
...
remove legacy AC fallback from RBAC middleware, and some unused auth logic
2023-05-24 09:49:42 +01:00
Ieva
900348f3d9
Chore: remove tests for legacy AC, update other tests to work with RBAC ( #68895 )
...
* remove tests for legacy AC, update other tests to work with RBAC
* update usage stat tests to use RBAC
2023-05-23 15:29:20 +01:00
Ieva
d54fa569ec
Chore: Remove legacy AC checks from team ( #68715 )
...
* removing legacy AC checks from team API handlers
* Chore: remove `UserIDFilter` from team queries (#68820 )
* remove userIDfilter from team queries in favour of RBAC SQL filtering
* fix typo
* remove redundant tests
* remove another unused function
* fix failing test
2023-05-22 18:41:53 +02:00
Victor Marin
6dbadf614b
Datagrid: Hide from panel list if toggle disabled ( #68482 )
...
Hide datagrid from panel list if ff disabled
2023-05-22 15:34:41 +03:00
Eric Leijonmarck
6a2bcba078
Revert: Allow editors to access GET /datasources ( #68632 )
...
Revert "Allow editors to access GET /datasources"
This reverts commit 5a830c43c0
.
2023-05-17 18:24:18 +01:00
Torkel Ödegaard
3ffbd2a1db
Preferences: Fixing preference PUT validation ( #68557 )
2023-05-16 19:38:51 +02:00
Sergey Kostrukov
eafba8fa69
Azure: Configuration for user identity authentication in datasources (Experimental) ( #50277 )
...
* Configuration for user identity authentication
* Use token endpoint form Azure AD settings
* Documentation update
* Update Grafana Azure SDK
* Fix secret override
* Fix lint
* Fix doc wording
2023-05-15 18:00:54 +01:00
Jo
5ec0f82baa
Separate authn flow from analytics ( #68327 )
...
* separate authn flow from analytics
* lint fix
2023-05-15 18:38:54 +02:00
Giuseppe Guerra
16359c82a2
Plugins: Angular deprecation: Detect Angular plugins and expose in API ( #66824 )
...
* Plugins: Angular deprecation: Detect Angular plugins and expose in API
* Plugins: Angular detector: Close module.js
* Plugins: Angular detector: consistent error messages
* Plugins: Angular detector: Add test for missing module.js
* Plugins: Angular detector: Fix integration tests
* Plugins: Angular detector: Changed Angular detection patterns
* Moved inMemoryFS to test_utils.go
* Add different angular detectors
* Plugins: Update plugins/data/expectedListResp.json
* Plugins: Rename angular property to angularDetected
* Plugins: Rename angular to angularDetected in Plugin and PluginDTO
* Plugins: Add angularDetected to datasources, apps and plugins frontendsettings
* Plugins: Add test for AngularDetected frontend settings
2023-05-12 12:51:11 +02:00
Torkel Ödegaard
f8cf67347f
Themes: Adds support for extraThemes (behind feature toggle) ( #67981 )
...
* Foundations to support more themes
* Fixes
* add another test theme
* Refactorings
* more refactoring
* Update
* Fixing tests
* Fix
* Update
2023-05-10 15:37:04 +02:00
venkatbvc
b9e53f628f
HTTP: Add TLS version configurability for Grafana server ( #67482 )
...
Co-authored-by: Rao B V Chalapathi <b_v_chalapathi.rao@nokia.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2023-05-08 17:11:36 +02:00
Eric Leijonmarck
a3b10b2c8d
RBAC: remove rbac disabled from preferences tests ( #67712 )
...
remove rbac disabled from preferences tests
2023-05-03 12:02:48 +01:00
mikkancso
76284ed3a6
Connections: Rename "Your data source" to "Data source" page ( #67662 )
...
rename "Your data source" to "Data source" page
This page was meant to be named "Data source" in the previous PR [0].
I just made a mistake by naming it wrongly.
[0]: https://github.com/grafana/grafana/pull/66813/files
2023-05-03 09:39:13 +02:00
Josh Hunt
c4a31390ef
NestedFolders: Use new Browse Dashboards UI behind feature flag ( #67416 )
...
NestedFolders: Put feature flagged new Browse Dashboards UI at main route
2023-05-02 17:25:03 +01:00
Domas
15d4169813
Frontend logging: Remove Sentry javascript agent support ( #67493 )
...
* remove Sentry
* fix sourcemap resolve
2023-05-02 12:10:56 +03:00
Torkel Ödegaard
9614dc2446
Connections: Simplify connections nav ( #66813 )
...
* Connections: Simplify connections nav
* rename Connections pages everywhere
---------
Co-authored-by: Miklós Tolnai <miklos.tolnai@grafana.com>
2023-05-02 10:51:59 +02:00
Marcus Efraimsson
4cbda914bd
Plugins: Refactor call resource API handling ( #67234 )
...
Moving call resource API stream handling within plugin management as a utility/wrapper.
Closes #66889
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2023-04-28 14:02:27 +02:00
Ieva
533f8caafd
SAML: change the config option for making SAML UI accessible to org Admins ( #67399 )
...
* change from role grant overrides to SAML UI specific config option
* update permissions needed to access SAML UI
* PR feedback: change config name, change required perms to write, add a comment
2023-04-28 11:48:26 +01:00
Kyle Cunningham
1fbac96bd4
SQL Datasources: Update behavior of default connection limits ( #66687 )
...
* Update behavior of defaults in connection limits
* Refactor to use config object instead
* Refactor remove unneeded function
---------
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2023-04-28 13:23:08 +07:00
Ryan McKinley
ca1f79b9ba
Kindsys: Target k8s style resource definitions ( #67008 )
...
Co-authored-by: sam boyer <sdboyer@grafana.com>
2023-04-27 23:32:38 +03:00
Kristian Bremberg
35407142d0
Feature: Trusted Types support ( #64975 )
...
* Draft: Feature: Trusted Types support
* remove trusted-types package
* Create policy before jQuery and Angular is loaded and add feature flag
* Add trustedTypePolicies
* Sanitize scriptURL
* Add TT meta tag for test env
* Move trusted types into core
* Add DOMParser support for TrustedHTML
* Seperate RSS sanitization and add better TrustedHTML support
* Get test CSP header from config
* Remove dompurify dep from core
* Add documentation for trusted types
* Apply suggestions from code review
Co-authored-by: Kristian Bremberg <114284895+KristianGrafana@users.noreply.github.com>
* Add comment about Github discussion thread and things breaking
* Remove changes from News panel
* Remove TT feature toggle
* Expose TT and CSPReportOnly to frontend
* Log errors in console when CSP report only is enabled
* Log error for reporting and remove test mode
* Only insert CSP header in HTML for dev env
* Update docs
---------
Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
2023-04-27 18:20:37 +02:00
Andres Martinez Gotor
aa9838bd25
Chore: Refactor manifest verifier ( #67218 )
2023-04-27 17:54:28 +02:00
Arati R
a5206a1cda
Nested folders: Provide count of all descendant dashboards and folders ( #67184 )
...
* Add a method for getting descendant folders
* Include dashboard count for descendant folders
* Return subfolder count
* Replace references to children with descendants
* Update openapi specs
* Add test for descendant counts
* Add logging to GetDescendantCounts
2023-04-27 17:00:09 +02:00
Sofia Papagiannaki
893bf08dcf
Nested folders: Fix API response ordering when fetching subfolders ( #67258 )
...
* Nested folders: Fix ordering when getting subfolders
* Update endpoint swagger description
* Modify test
2023-04-27 17:24:47 +03:00
Giuseppe Guerra
bfe1b68800
Plugins: Fs: Add option to access unallowed files in dev mode ( #66492 )
...
* Plugins: Fs: Add option to access unallowed files in dev mode
* Plugins: Fs: allow accessing unallowed files only when in dev mode
* Plugins: Fs: Add ProvideLocalFinder
* Plugins: FS: Pass whole config in NewLocalFinder()
* Plugins: FS: Add AllowListLocalFS
* Plugins: FS: Fix some tests
* Plugins: FS: Update tests
* Plugins: FS: Removed dead code
* Plugins: FS: Add tests for AllowListFS
* Plugins: FS: Update comments
* Plugins: FS: Use variadic arguments for allow list rather than map
* Plugins: FS: Remove unnecessary log
* Plugins: FS: Do not escape plugin root dir
* Fix merge conflict
* Plugins: FS: Update comments
* Plugins: FS: PR review changes
* Fix merge conflict
* Fix tests
* Cleanup
* Fix flaky test
* Changes from PR review
* Lint
* Add comment to LocalFS.Remove
* Fix Windows
* Renamed devMode to production
2023-04-27 10:26:15 +02:00
Marcus Efraimsson
73920b1e34
Plugins: Refactor cleaning of call resource response headers ( #67145 )
...
First part of #66889 moving cleaning of call resource response headers
within plugin management client.
2023-04-25 19:44:32 +02:00
Misi
b3aaf544a6
Auth: Add authentication config frontend routes to api.go ( #66931 )
...
* Add auth config frontend routes to api.go
* Remove SAML related endpoints
* Fix routes
* Enable authconfig for Enterprise, Cloud Pro and Advanced
* Fix
* Update public/app/routes/routes.tsx
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
---------
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
2023-04-25 13:13:55 +02:00
Andres Martinez Gotor
9d7c3a101d
Chore: Use KVStore for the manifest public key ( #66839 )
2023-04-25 13:01:49 +02:00