Commit Graph

35194 Commits (a321e72d1590464138532614b87bc3a06abea873)

Author SHA1 Message Date
Nathaniel Cook a321e72d15
build(flux): update flux to v0.185.0 (#23775) 2022-10-05 08:25:58 -06:00
Jason Stirnaman aa5c1c0bae
docs: cleanup CONTRIBUTING.md - clarify instructions and output. (#23743)
* docs(contributing): cleanup CONTRIBUTING.md, clarify instructions and output.

* docs(contributing): add more explanation in sequence.

* docs(CONTRIBUTING): revise pull request section

* docs: CONTRIBUTING.md - cleanup.
2022-09-27 14:21:40 -05:00
Jeffrey Smith II f36646d68d
feat: bump to latest UI (#23733) 2022-09-27 15:19:34 -04:00
Owen Nelson eada36bd97
test: remove group skips (#23720)
* test: remove group skips

* test: inline previously extended testcases that broke with added sort

Some tests had a sort added so they'd pass in cloud, vanilla, and OSS.
This also broke some extended testcases here in OSS since pushdown rules
no longer match the plan.

This diff "inlines" the testcase body for each of these so we get our
coverage back, but leaves a FIXME to note that it would be better if we
could somehow thread the needle and retain the extension.
2022-09-27 12:04:36 -07:00
Christopher M. Wolff 635f8d80d5
build(flux): update flux to v0.184.2 (#23758)
* build(flux): update flux to v0.184.2

* chore: skip more Flux acceptance tests

There are issues for each skip detailed in test-flux.sh.
2022-09-27 07:29:43 -07:00
Brandon Pfeifer 43c2e08cf5
chore: upgrade to Go 1.18.6 (#23750) 2022-09-26 10:11:18 -04:00
Jeffrey Smith II 663d43d210
fix: allow backup of all buckets (#23719)
* fix: allow backup of all buckets

* Revert "fix: allow backup of all buckets"

This reverts commit 256ec2f591a36b946f5c46014f378b2b76c9a8de.

* fix: remove 20 item limit in several of the data stores

* test: add a test for 20 item limit
2022-09-20 10:30:38 -04:00
Jamie Strandboge c40ad64604
feat(security): set SameSite=strict on session cookie (#23723)
* feat(security): set SameSite=strict on session cookie

Use SameSite=Strict as a hardening measure against cross-origin attacks.
While browsers have been moving to default to SameSite=Lax, explicitly
setting SameSite ensures that all browsers enforce it consistently.
While 'lax' is a reasonable hardening choice, the cookie is only
required for requests to '/api/...' and we don't expect 3rd party links
into '/api/...', so this stricter setting should be safe in terms of
usability. Furthermore, while our GET APIs are not state-changing, using
'strict' future-proofs us in case we add a state-changing GET API ('lax'
allows cross-origin 'GET' requests for increased usability for read-only
requests).

Also add a comment to SetCORS() lack of Access-Control-Allow-Credentials
as a reminder that its omission is intentional for defense in depth on
when to attach the cookie to a request.

* chore: mention that Lax sends the cookie with other safe HTTP methods
2022-09-15 15:30:19 -05:00
davidby-influx b72848d436
feat: optimize saving changes to fields.idx (#23701) (#23728)
Instead of writing out the complete fields.idx
file when it changes, write out incremental
changes that will be applied to the file on
close and startup.

closes https://github.com/influxdata/influxdb/issues/23653

(cherry picked from commit 80c10c8c04)

closes https://github.com/influxdata/influxdb/issues/23703
2022-09-15 12:15:14 -07:00
Cemre Mengu 91623ddc21
docs(logger): fix incorrect doc string (#23442)
Co-authored-by: Jeffrey Smith II <jsmith@influxdata.com>
2022-09-13 11:00:52 -05:00
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
Brandon Pfeifer 1c6fbf9b2c
chore: add protoc-gen script to releng (2.x) (#23697)
* chore: add protoc-gen script to releng

* chore: break cross-container-tag into separate variable

* fix: call GNUMakefile "generate-sources" target instead

This also does a better job at mounting the root directory
in the docker container.
2022-09-13 11:00:51 -05:00
Jeffrey Smith II b51fefdf6d
fix: set limited permissions on package installs (#23683)
* fix: set limited permissions on package installs

* fix: set umask in systemd service to create files as 0750
2022-09-13 11:00:51 -05:00
Jeffrey Smith II 485968cce4
feat: unpin ui to point at latest (#23704) 2022-09-13 11:00:51 -05:00
Jeffrey Smith II b87deb49e5
fix: don't allow creating an auth with instance resources (#23674) 2022-09-13 11:00:51 -05:00
Dane Strandboge 11019d2aa7
fix: check that user IDs are not in use in user create (#23705) 2022-09-13 11:00:51 -05:00
Jonathan A. Sternberg 8f156205bf
build(flux): update flux to v0.181.0 (#23682) 2022-09-13 11:00:48 -05:00
Christopher M. Wolff aa9c49e9f5
build(flux): update flux to v0.180.1 (#23666)
* chore: make tests robust to Flux formatter changes
2022-08-24 11:59:16 -07:00
Renato Costa ee8ca451c4
fix: use copy of loop variable in parallel test (#23669)
This fixes an occurrence of a loop variable being captured in a
parallel test. With the previous code, only the last test case is
actually exercised. To work around this problem, we create a local
copy of the range variable before the parallel test, as suggested in
the Go documentation for the `testing` package:

https://pkg.go.dev/testing#hdr-Subtests_and_Sub_benchmarks

Issue was found automatically using the `loopvarcapture` linter.
2022-08-24 13:22:09 -04:00
Brandon Pfeifer 728070e115
chore: upgrade Rust to 1.63.0 (#23660) 2022-08-24 10:50:57 -04:00
Jeffrey Smith II daaf8665bb
fix: several minor quality issues (#23667)
* fix: invalid assign to nil pointer

* fix: close some files that were being left open

* fix: lint
2022-08-23 15:54:46 -04:00
Jonathan A. Sternberg 785a465e9a
refactor: remove reference to flux.Spec in query tests (#23652)
It appears to be dead and not used anymore.
2022-08-19 14:53:33 -05:00
Jeffrey Smith II accce863db
chore: update CHANGELOG_frozen.md for 2.4 (#23651) 2022-08-18 16:31:18 -04:00
Brandon Pfeifer 5b204b45ea
chore: use 22.04 image instead of 21.10 for perf test (#23648) 2022-08-18 15:33:15 -04:00
Brandon Pfeifer 34323c9a0c
chore: use 22.04 image instead of 21.10 for perf test (#23647) 2022-08-18 15:28:15 -04:00
Jeffrey Smith II 6f50e70960
feat: replicate based on bucket name rather than id (#23638)
* feat: add the ability to replicate based on bucket name rather than bucket id.

- This adds compatibility with 1.x replication targets

* fix: improve error checking and add tests

* fix: add additional constraint to replications table

* fix: use OR not AND for constraint

* feat: delete invalid replications on downgrade

* fix: should be less than 2.4

* test: add test around down migration and cleanup migration code

* fix: use nil instead of platform.ID(1) for better consistency

* fix: fix tests

* fix: fix tests
2022-08-18 14:21:59 -04:00
Sean Brickley 48fb5ce6f9
chore: update fluxtest skip list (#23633) 2022-08-17 18:03:23 -04:00
Andrew Lee 187f991d54
fix: improve virtual DBRP default handling (#23626) 2022-08-16 14:02:31 -06:00
Brandon Pfeifer 90d45e8709
feat: enable static-pie builds (2.x) (#23630)
* chore: fix build commands for new cross-builder

* fix: use xcc to determine compiler

* fix: use correct compiler for darwin tests

* fix: update perftest to 22.04 image
2022-08-16 11:53:08 -04:00
Jonathan A. Sternberg c2c9d17d71
build(flux): update flux to v0.179.0 (#23627) 2022-08-16 09:37:28 -05:00
Andrew Lee afbbfaca87
fix: fix virtual DBRP FindMany, make virtual bucket default if not overridden (#23623)
* fix: fix find dbrps, make bucket default if not overridden

* fix: allow filtering of virtual DBRPs, filter in shard mapper

* fix: update tests to mock for virtual filter for shards and update server test
2022-08-12 11:16:37 -06:00
Christopher M. Wolff 78c969e510
build(flux): update flux to v0.178.0 (#23615) 2022-08-09 13:53:22 -07:00
Sean Brickley cd4f93b22d
build(flux): update flux to v0.177.1 (#23612) 2022-08-08 16:06:12 -04:00
Andrew Lee adeac8beea
feat: add virtual DBRP mappings based on bucket name (#23606)
* feat: add virtual DBRP mapping based on bucket name

* fix: improve error handling logic

* fix: update physical dbrp tests

* fix: update influxql tests with auto-mapped buckets

* fix: add virtual filtering and testing for virtual dbrps
2022-08-03 15:44:04 -06:00
Dane Strandboge f7b1905ed7
fix: do not delete replication on remote config delete (#23493) 2022-08-02 11:03:23 -05:00
Christopher M. Wolff 7e7d1dbf4a
build(flux): update flux to v0.177.0 (#23597) 2022-08-01 14:05:06 -07:00
Jeffrey Smith II 67ccbae8ff
feat: add the concept of an instance owner (#23497)
* feat: Add the instance owner concept

* feat: improve handling of instance resource type

* fix: remove relic of cloud/oss split

* feat: Add an instance id. This gets set during onboarding and can be used to uniquely identify that instance.

* chore: Revert "feat: Add an instance id. This gets set during onboarding and can be used to uniquely identify that instance."

This reverts commit 6a712df61e.

We decided to stick with the "singleton" 1 id for now, as there is not a clear need for unique identifiers.
2022-08-01 09:42:06 -04:00
Ikko Ashimine f0072ef230
chore(pkger): fix typo in README.md (#23542)
prexisting -> preexisting
2022-07-28 15:30:19 -04:00
Jonathan A. Sternberg c58bbabc98
build(flux): update flux to v0.176.0 (#23585) 2022-07-26 10:59:05 -05:00
Jonathan A. Sternberg a9f751f44a
feat(query): add planner rule for converting aggregate window to a push down (#23586) 2022-07-26 10:19:26 -05:00
davidby-influx 619eb1cae6
fix: restore in-memory Manifest on write error (#23552) (#23578)
Do not update the `FileSet` or `activeLogFile` field in the in-memory
Partition structure if the Manifest file is not correctly saved to
the disk.

closes https://github.com/influxdata/influxdb/issues/23553

(cherry picked from commit a8732dcf52)

closes https://github.com/influxdata/influxdb/issues/23554
2022-07-25 10:53:09 -07:00
Brandon Pfeifer 37562c7c00
build: upgrade to Go 1.18.4 (#23571) 2022-07-20 12:19:17 -04:00
davidby-influx f762346ecc
fix: add paths to tsi log and index file errors (#23557) (#23562)
Add paths to various TSI errors on opening and unmarshaling files
to help poinpoint the corrupt files.

Closes https://github.com/influxdata/influxdb/issues/23556

(cherry picked from commit 25cea95beb)

closes https://github.com/influxdata/influxdb/issues/23558
2022-07-19 15:45:42 -07:00
Brandon Pfeifer 85dc15851e
chore: upgrade CircleCI Mac OSX image (#23565) 2022-07-19 18:18:44 -04:00
Sam Dillard 91a83ba509
chore: Update PULL_REQUEST_TEMPLATE.md (#23270)
* chore: Update PULL_REQUEST_TEMPLATE.md

This is part of an initiative to disseminate PR-specific information for all PR stakeholders. In addition to reviewers, this information is needed by product and docs.

* chore: Update PULL_REQUEST_TEMPLATE.md

* chore: Apply suggestions from code review

Co-authored-by: Sam Arnold <sarnold@influxdata.com>

Co-authored-by: Jeffrey Smith II <jsmith@influxdata.com>
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2022-07-19 09:04:52 -04:00
davidby-influx 00edb77253
fix: create TSI MANIFEST files atomically (#23539) (#23546)
When a MANIFEST file is created in TSI, it
should be written to a temp file, then
atomically renamed, to avoid overwriting
the existing file only to fail on the
later write.

closes https://github.com/influxdata/influxdb/issues/23536

(cherry picked from commit 061cf55f2a)

closes https://github.com/influxdata/influxdb/issues/23538
2022-07-14 09:13:11 -07:00
davidby-influx 4789d5402a
fix: improve error messages opening index partitions (#23532) (#23535)
Where possible, add the file path path to any errors
on opening, reading, (un)marshaling, or validating
the various files comprising a partition

closes https://github.com/influxdata/influxdb/issues/23506

(cherry picked from commit a2dd708a26)

closes https://github.com/influxdata/influxdb/issues/23534
2022-07-13 13:20:47 -07:00
Simon Richardson 33a7add745
test(label): Invalid closure capture (#23353)
Whilst working on cloud labels, I noticed that the label storage test
isn't correctly capturing the testScenario. This is because t.Parallel()
is in use, so only the "delete" scenario will only ever be tested.

The following changes fix that, by capturing the testScenario in a local
variable so that the test function can use that correctly.

As a drive-by, I fixed the error referencing the wrong expectation.
2022-07-13 15:15:13 +01:00
Brandon Pfeifer 4b2949a67a
build: upload release and nightly CHANGELOG.md (#23527) 2022-07-12 20:58:35 -04:00
Sunil Kartikey 4da4d03fe2
build(flux): update flux to v0.174.1 (#23531) 2022-07-12 19:03:30 +01:00