Commit Graph

323 Commits (4ed184dd82e5c5d44d037cc5b6f796589b7455a4)

Author SHA1 Message Date
Abirdcfly c433342830
chore: remove duplicate word in comments (#23685)
Signed-off-by: Abirdcfly <fp544037857@gmail.com>

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-09-13 11:00:52 -05:00
Ikko Ashimine f0072ef230
chore(pkger): fix typo in README.md (#23542)
prexisting -> preexisting
2022-07-28 15:30:19 -04:00
Nathaniel Cook 07bab31fe6
build(flux): update flux to v0.173.0 (#23505)
* build(flux): update flux to v0.173.0

* fix(fluxfmt): update tests for newline in Flux fmt

Flux fmt now explicitly adds a newline to the end of a file, updating
tests accordingly.
2022-06-30 11:39:07 -06:00
Dane Strandboge 82d1123e78
build: upgrade to Go 1.18.1 (#23252) 2022-04-13 15:24:27 -05:00
Jonathan A. Sternberg 72c4c55609
build(flux): update flux to v0.162.0 (#23255) 2022-04-05 16:10:41 -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
Dane Strandboge 0bd28f66bc
fix: update 422 dry-run response to conform to API spec (#23121) 2022-02-11 16:28:49 -06: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
Daniel Moran 07d897d2f2
fix: switch flux formatter to one that preserves comments (#22186) 2021-08-12 14:17:18 -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
Serhat Şevki Dinçer 67e5746972
fix: escape dots in community templates hostname regex (#21232) 2021-04-19 09:34:19 -04:00
Timmy Luong 0c88854486
feat: add StaticLegend (#21218) 2021-04-15 15:06:01 -07:00
Sam Arnold 7b2e122869
refactor: refactor for tasks backport (#21117)
* chore: remove dead code

* refactor: move FluxLanguageService interface to fluxlang

* chore: run fmt

* refactor: move task.go from top level to task/taskmodel

* chore: run formatter

* chore: fix up import ordering with gci
2021-04-07 14:42:55 -04: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
Sam Arnold 781fa0e846 chore: add goimports 2021-01-29 14:06:52 -05:00
dubsky c31b45c23d feat(geo-widget): pkger support added 2020-12-18 19:37:08 +01:00
Daniel Moran 15b9531273
fix: correct various typos (#19987)
Co-authored-by: kumakichi <xyesan@gmail.com>
2020-11-11 13:54:21 -05:00
Greg 285c6ce06d
chore: add simple metrics related to installed templates (#19873) 2020-11-02 10:59:01 -07:00
Yiqun (Ethan) Zhang 17fcd2dce2
feat: make sure the query plan nodes have unique ids (#19879) 2020-11-02 11:15:39 -06: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
George 3d643e0681
refactor(notification): move rule service into own package (#19804)
* refactor(notification): move rule service into own package

* chore(launcher): fix tests to use clients as opposed to direct kv service

* chore(influx): update task cli to consume core domain model task from client

* chore(kv): remove rule service behaviours from kv

This also introduces the org id resolver type. Which is transplanted
from the kv service. As this one function coupled all resource
capabilities onto the kv service. Making removing these capabilities
impossible. Moving this type out into its own package which depends on
each service explicitly ensures we don't have one type which has to
implement all the service contracts.

* fix(launcher): remove double reference to influxdb package
2020-10-27 11:45:05 +00:00
Greg b63bcb43c4
fix: use valid flux in pkger test templates (#19465) 2020-10-19 15:45:11 -06: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 214625e7c0 chore: remove crufty comments 2020-09-22 10:22:55 -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 6dc785e894 chore: address feedback 2020-09-15 09:33:44 -06: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
Stuart Carnie 7964f86ffc
fix: switch port to 8086
fix(readme): update the port and setup
2020-09-03 14:40:29 -07:00
greg linton 1d9a5623e3 chore: remove name from service clone org resources
these functions are not hit by the cli
2020-08-27 17:48:17 -06:00
greg linton f5731b8397 feat: export variables by name 2020-08-27 17:44:43 -06:00
greg linton 826462f5f8 feat: export telegraf configs by name 2020-08-27 17:37:46 -06:00
greg linton 0413713ba1 feat: export tasks by name 2020-08-27 17:35:04 -06:00
greg linton a9421279c5 feat: export notification rules by name 2020-08-27 17:29:25 -06:00
greg linton 57d21d26c3 feat: export notification endpoints by name 2020-08-27 17:19:55 -06:00
greg linton 7565ce2992 feat: export labels by name 2020-08-27 17:01:23 -06:00
greg linton e69af9a331 feat: export checks by name 2020-08-27 16:55:23 -06:00
greg linton a0c0c392da feat: export buckets by name 2020-08-27 16:31:25 -06:00
greg linton aca096a79a chore: actually restrict exported dashboards to specified name 2020-08-27 16:10:13 -06:00