Commit Graph

135 Commits (33a7add74539116f736e894caedc1f409023e130)

Author SHA1 Message Date
Dane Strandboge 82d1123e78
build: upgrade to Go 1.18.1 (#23252) 2022-04-13 15:24:27 -05:00
Jamie Strandboge 2c930fd127
feat: add --hardening-enabled option to limit flux/pkger HTTP requests (#23207)
Flux HTTP and template fetching requests do not perform IP address
checks for local addresses. This behavior on the one hand allows SSRF
(Server Side Request Forgery) attacks via authenticated requests but on
the other hand is useful for scenarios that have legitimate requirements
to fetch from private addresses (eg, hosting templates internally or
performing flux queries to local resources during development).

To not break existing installations, the default behavior will remain
the same but a new --hardening-enabled option is added to influxd to
turn on IP address verification and limit both flux and template
fetching HTTP requests to non-private addresses. We plan to enable new
security features that aren't suitable for the default install with this
option.  Put another way, this new option is intended to be used to make
it easy to turn on all security options when running in production
environments. The 'Manage security and authorization' section of the
docs will also be updated for this option.

Specifically for flux, when --hardening-enabled is specified, we now
pass in PrivateIPValidator{} to the flux dependency configuration. The
flux url validator will then tap into the http.Client 'Control'
mechanism to validate the IP address since it is called after DNS lookup
but before the connection starts.

For pkger (template fetching), when --hardening-enabled is specified,
the template parser's HTTP client will be configured to also use
PrivateIPValidator{}. Note that /api/v2/stacks POST ('init', aka create)
and PATCH ('update') only store the new url to be applied later with
/api/v2/templates/apply. While it is possible to have InitStack() and
UpdateStack() mimic net.DialContext() to setup a go routine to perform a
DNS lookup and then loop through the returned addresses to verify none
are for a private IP before storing the url, this would add considerable
complexity to the stacks implementation. Since the stack's urls are
fetched when it is applied and the IP address is verified as part of
apply (see above), for now we'll keep this simple and not validate the
IPs of the stack's urls during init or update.

Lastly, update pkger/http_server_template_test.go's Templates() test for
disabled jsonnet to also check the contents of the 422 error (since the
flux validator also returns a 422 with different message). Also, fix the
URL in one of these tests to use a valid path.
2022-03-18 10:25:31 -04:00
William Baker 11c00813f1
fix(templates): disable use of jsonnet with `/api/v2/templates/apply` (#23030) 2021-12-30 12:55:45 -05:00
Sam Arnold 5015297d40
fix: more expressive errors (#22448)
* fix: more expressive errors

Closes #22446

* fix: server only logging for untyped errors

* chore: fix formatting
2021-09-13 15:12:35 -04:00
Timmy Luong 354c385ee7
fix: change static legend's hide property to show (#21648) 2021-06-10 09:20:59 -07:00
Stuart Carnie d165d76fc3
feat: influx CLI Packager support for explicit schema buckets (#21465)
This commit adds the minimal requirements to process specs containing
explicit schema buckets, so they may be exported and applied from
Cloud 2.
2021-05-31 10:01:29 +10:00
Timmy Luong b0d62f0c72
feat: add legendHide for the tooltip (#21547) 2021-05-25 10:31:50 -07:00
Timmy Luong b66079f084
feat: update Static Legend properties to allow hiding without nulling (#21364) 2021-05-04 11:17:37 -07:00
Timmy Luong 0c88854486
feat: add StaticLegend (#21218) 2021-04-15 15:06:01 -07:00
Daniel Moran 00afd95cb7
refactor: automated move of errors and id from root to kit (#21101)
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-03-30 14:10:02 -04:00
Timmy Luong b6275bff9e feat: udpate MosaicViewProperties 2021-02-17 10:48:22 -08:00
dubsky c31b45c23d feat(geo-widget): pkger support added 2020-12-18 19:37:08 +01:00
Timmy Luong f6a26ee2b9
feat: update generate ticks into an array of properties for each axis (#19850)
* feat: update generate ticks into an array of properties for each axis

* fix: add missing operand

* chore: reorder properties to be consistent

* fix: update GenerateYAxisTicks to array of strings

* fix: change expected property to null
2020-10-29 10:59:25 -07:00
Timmy Luong 9dd37a1d1b feat: add tick generation properties and legendColorizeRows 2020-10-27 16:50:53 -07:00
Greg e8931bbffa
fix(templates): allow same duration unit identifiers that the tasks api allows (#19710) 2020-10-09 14:17:04 -06:00
Greg 6219adc574
fix: preserve cell colors on export/import (#19700) 2020-10-07 14:13:53 -06:00
greg linton 13cb2927bb Merge branch 'master' into feat/18733 2020-09-21 17:21:06 -06:00
Timmy Luong fbe56d7e23
feat: add legendOrientationThreshold (#19584)
* feat: add legendOrientationThreshold

* feat: add legendOpacity

* chore: fix float definition in swagger and use single-value context in Resource float64
2020-09-21 11:02:51 -07:00
Christopher M. Wolff e7cbbaa722
feat: upgrade Flux to v0.83.2 (#19569) 2020-09-16 17:59:15 -07:00
greg linton 53b325c7d0 Merge branch 'master' into feat/18733 2020-09-11 14:23:24 -06:00
Timmy Luong f4c0259906 feat: update BandViewProperties 2020-09-11 10:47:24 -07:00
greg linton 0eb53e0e0b chore: revert notificationEndpoints to be name unique 2020-09-10 17:55:22 -06:00
greg linton 8c61b922dd chore: update old tests and add new tests 2020-09-09 20:10:52 -06:00
Brett Buddin 09b0258ab4
chore(master): Merge branch 'master' into sgc/tsm1 2020-08-27 14:43:50 -04:00
Greg be35109440
feat(templates): handle task as option and spec in template query (#19369) 2020-08-26 14:44:59 -06:00
Stuart Carnie 505f40c158
Merge remote-tracking branch 'origin/master' into sgc/tsm1
# Conflicts:
#	go.mod
#	go.sum
#	query/promql/internal/promqltests/go.mod
2020-08-18 14:04:52 -07:00
Deniz Kusefoglu 760433f00e feat(bandchart): Add pkger stuff 2020-08-17 12:40:35 -07:00
Stuart Carnie 3d913da53c
fix(pkger): Add temporary Flux helpers for pkger build 2020-08-11 10:36:13 -07:00
Johnny Steenbergen 536e2c9811 feat(pkger): parameterize task queries
references: #18237
2020-08-05 16:14:06 -07:00
Johnny Steenbergen 41cb12aeec feat(pkger): add parameterization to dashboard queries
references: #18237
2020-08-04 17:02:34 -07:00
rbose22 a61161d73b
feat: added backend for mosaic graph type (#19195)
Closes: #19121
Closes: #19211

Added the ability to save the mosaic graph type.  

Co-authored-by: Rose Parker reparker837@gmail.com
2020-08-04 16:24:58 -07:00
Johnny Steenbergen d768132aaa feat(pkger): make envRef default values support more types
references: #18237
2020-07-28 12:22:46 -07:00
Johnny Steenbergen b9e6744807 chore(pkger): finalize adoption of templates naming convention
closes: #18580
2020-06-30 16:33:45 -07:00
Johnny Steenbergen b5fcb06883 fix(pkger): stop swallowing parser errors from pkger parser in http remote service 2020-06-29 17:31:59 -07:00
Johnny Steenbergen 846b7d0207 feat(pkger): add ability to export stack with additional resources and update stack with associated exports
references: #18646
2020-06-25 21:25:30 -07:00
David McKay b3c738fc53 fix: have tests use non-default value and support pkger 2020-06-25 18:16:57 +01:00
Johnny Steenbergen 6694c7e393 chore(pkger): refactor export by stack to reuse CreatePkg functionality
this also makes it so that an association (label) that is added to a
resource is also included in the returned output. There is 1 test that
was changed as part of this work. It is to test for this specific change
in behavior

references: #18646
2020-06-24 12:03:20 -07:00
Johnny Steenbergen 802afebf8c feat(pkger): add support for selected fields to variable
references: #18240
2020-06-22 17:05:18 -07:00
Johnny Steenbergen 34c4e5a48b feat(pkger): add env default vaules for template references 2020-06-22 15:14:16 -07:00
Johnny Steenbergen 5af53f88c5 feat(pkger): allow for base github content urls for json/yaml/jsonnet templates
closes: #18479
2020-06-16 13:00:29 -07:00
Johnny Steenbergen b977568390 feat(pkger): extend pkger to provide sources of templates to each template 2020-06-16 08:04:37 -07:00
Johnny Steenbergen 020c9e7374 chore(pkger): add source to Pkgs to 2020-06-16 08:04:37 -07:00
Johnny Steenbergen 6ff46c0f3c chore(pkger): drop deprecated shouldRemove from parser identity 2020-06-16 08:04:37 -07:00
Johnny Steenbergen 73ffe23f9d chore(pkger): backfill missing fillColumns field for histograms
closes: #18431
2020-06-10 07:50:35 -07:00
Johnny Steenbergen 9ab4447617 chore(pkger): ensure sorting is done by PkgName for all parser resource summaries 2020-05-06 13:01:50 -07:00
Johnny Steenbergen 784b222d4d feat(pkger): enforce metadata.name dns name compliance
this PR includes a lot of small changes to names in existing test pkgs.
the tests are updated to follow suit.

closes: #17940
2020-05-04 12:40:22 -07:00
Johnny Steenbergen ff27edbea9 feat(pkger): add support for using URLs associated with stack to apply/dry run 2020-04-29 16:48:00 -07:00
Johnny Steenbergen 72906a4484 feat(pkger): add support for stateful label mappings
references: #17434
2020-04-24 17:05:55 -07:00
Johnny Steenbergen 8251c362ee chore(pkger): refactor parser notification rule state out into stateful type
this PR also drops a bunc of dead code that was necessary for times of integration.

references: #17434
2020-04-17 14:02:29 -07:00
Johnny Steenbergen 21694416a3 chore(pkger): refactor parser dashboard state out into stateful type
references: #17434
2020-04-16 13:27:36 -07:00