Commit Graph

35326 Commits (db/update-flux-version)

Author SHA1 Message Date
davidby-influx 66ebe368b2
fix: enable Secure when using TLS and enable HttpOnly (#24524) (#24526)
Set the HttpOnly and, when TLS is enabled,
Secure flags on cookies

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

(cherry picked from commit 8e8700f14f)

closes https://github.com/influxdata/influxdb/issues/24523
2023-12-20 12:28:24 -08:00
davidby-influx 535e86965a
fix: avoid SIGBUS when reading non-std series segment files (#24509) (#24520) (#24521)
Some series files which are smaller than the standard
sizes cause SIGBUS in influx_inspect and influxd, because
entry iteration walks onto mapped memory not backed by the
the file.  Avoid walking off the end of the file while
iterating series entries in oddly sized files.

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

Co-authored-by: Geoffrey Wossum <gwossum@influxdata.com>
(cherry picked from commit 969abf3da2)

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

(cherry picked from commit 081f95147e)

closes https://github.com/influxdata/influxdb/issues/24512
2023-12-20 09:52:57 -08:00
davidby-influx 3688c45704
chore: upgrade flux (#24503)
Upgrade Flux to 0.194.5
2023-12-04 11:46:17 -08:00
Brandon Pfeifer cb1701f095
fix: only execute "init_config" on install (#24493) 2023-12-01 11:59:11 -05:00
davidby-influx 6f7dc94775
feat: write detailed logs from EDR failures (#24496) (#24497)
To assist debugging of write failures
in Edge Data Replication, do not
write only the HTTP status code to
the log. Also include any messages
returned by the write recipient.

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

(cherry picked from commit 0ccd35c253)

closes https://github.com/influxdata/influxdb/issues/24482
2023-11-30 13:05:34 -08:00
Brandon Pfeifer 306215dd18
chore: emit build commands during tests (#24480) 2023-11-22 19:42:11 -05:00
davidby-influx 6159c85f19
feat: Add authenticating ID and user ID to request logging (#24474) (#24479)
To allow rudimentary security auditing of logs,
add the authenticating ID and the user ID when
possible to the request logs. When a request is
authorized for V1 or V2 API, store the authorizer
object to be used by the logger up the call stack.

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

(cherry picked from commit 13cf6be49e)

closes https://github.com/influxdata/influxdb/issues/24475
2023-11-22 14:24:56 -08:00
davidby-influx 19e5c0e1b7
fix: handle MetricSlice to Points conversion errors (#24452)
Correctly handle errors in converting MetricSlice
elements into model.Points. Add a test to verify
error handling.
2023-11-08 08:25:03 -08:00
alespour c0f467ea74
build(deps): upgrade flux to v0.194.4 (#24441) 2023-11-03 08:18:04 -04:00
Brandon Pfeifer ed645d9216
chore: upgrade flux to 0.194.3 (#24418) 2023-10-17 11:15:58 -04:00
Brandon Pfeifer 0f101537a4
chore: upgrade golang 1.20.1 -> 1.20.10 (#24414) 2023-10-12 12:46:28 -04:00
Brandon Pfeifer 49a2b21999
chore: update MacOS executor to M1 (#24371) 2023-09-20 14:30:33 -04:00
Brandon Pfeifer bf25706708
chore: replace "package builder" shell implemention with python (#24307) 2023-06-30 10:45:19 -04:00
Brandon Pfeifer 9d16235fd8
fix: correct CHANGELOG.md upload destination (#24288)
This updates the job logic so that workflow condition is evaluated
by CircleCI rather than the shell. This also uses the "aws-s3" orb
for uploading to S3 (rather than awscli).
2023-06-13 20:00:59 -04:00
Brandon Pfeifer aed1c05fb7
fix: update terraform with newer version (#24285)
The terraform shipped with snap (in the older version of Ubuntu)
only supported public key encryption with ssh-rsa. New versions
of Linux started deprecating ssh-rsa, so this version bump
is required.
2023-06-13 16:55:50 -04:00
Brandon Pfeifer cb681db2aa
chore: generate "influxdb2.${CIRCLE_TAG}.digests" for each release (#24277) 2023-06-13 11:37:47 -04:00
Brandon Pfeifer 6d4cdffd15
chore: upgrade changelogger to latest version (#24245)
This allows changelogs to be built from "non-release" tags. These
changelogs use "UNRELEASED" as the first section header. Commits
from these sections are eventually rolled into a proper "release"
tag (e.g v2.7.0).
2023-05-26 12:09:57 -04:00
Jeffrey Smith II 407fa622e9
fix: update ui to remove new data explorer (#24221) 2023-04-27 15:36:53 -04:00
Brandon Pfeifer ed9f021926
feat: implement remote package signing (#24196) 2023-04-12 11:41:54 -04:00
Brandon Pfeifer a7a6e92983
fix: use Amazon EC2 Image instead of CentOS EC2 Image (#24183) 2023-04-05 17:43:30 -04:00
dependabot[bot] 85f725f8b9
build(deps): bump github.com/docker/docker (#24179)
Bumps [github.com/docker/docker](https://github.com/docker/docker) from 23.0.0+incompatible to 23.0.3+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v23.0.0...v23.0.3)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 10:03:06 -04:00
Jeffrey Smith II 01dda5d9f2
chore: update UI to latest version (#24171) 2023-04-04 12:13:29 -04:00
Jeffrey Smith II c854e53c2b
fix: chmod'ing the manifest is unnecessary (#24165) 2023-04-03 13:09:01 -04:00
dependabot[bot] eac0ee0acc
build(deps): bump github.com/opencontainers/runc from 1.1.3 to 1.1.5 (#24163)
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.3 to 1.1.5.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/v1.1.5/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.3...v1.1.5)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-29 14:36:44 -04:00
Eng Zer Jun 903d30d658
test: use `T.TempDir` to create temporary test directory (#23258)
* test: use `T.TempDir` to create temporary test directory

This commit replaces `os.MkdirTemp` with `t.TempDir` in tests. The
directory created by `t.TempDir` is automatically removed when the test
and all its subtests complete.

Prior to this commit, temporary directory created using `os.MkdirTemp`
needs to be removed manually by calling `os.RemoveAll`, which is omitted
in some tests. The error handling boilerplate e.g.
	defer func() {
		if err := os.RemoveAll(dir); err != nil {
			t.Fatal(err)
		}
	}
is also tedious, but `t.TempDir` handles this for us nicely.

Reference: https://pkg.go.dev/testing#T.TempDir
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* test: fix failing TestSendWrite on Windows

=== FAIL: replications/internal TestSendWrite (0.29s)
    logger.go:130: 2022-06-23T13:00:54.290Z	DEBUG	Created new durable queue for replication stream	{"id": "0000000000000001", "path": "C:\\Users\\circleci\\AppData\\Local\\Temp\\TestSendWrite1627281409\\001\\replicationq\\0000000000000001"}
    logger.go:130: 2022-06-23T13:00:54.457Z	ERROR	Error in replication stream	{"replication_id": "0000000000000001", "error": "remote timeout", "retries": 1}
    testing.go:1090: TempDir RemoveAll cleanup: remove C:\Users\circleci\AppData\Local\Temp\TestSendWrite1627281409\001\replicationq\0000000000000001\1: The process cannot access the file because it is being used by another process.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* test: fix failing TestStore_BadShard on Windows

=== FAIL: tsdb TestStore_BadShard (0.09s)
    logger.go:130: 2022-06-23T12:18:21.827Z	INFO	Using data dir	{"service": "store", "path": "C:\\Users\\circleci\\AppData\\Local\\Temp\\TestStore_BadShard1363295568\\001"}
    logger.go:130: 2022-06-23T12:18:21.827Z	INFO	Compaction settings	{"service": "store", "max_concurrent_compactions": 2, "throughput_bytes_per_second": 50331648, "throughput_bytes_per_second_burst": 50331648}
    logger.go:130: 2022-06-23T12:18:21.828Z	INFO	Open store (start)	{"service": "store", "op_name": "tsdb_open", "op_event": "start"}
    logger.go:130: 2022-06-23T12:18:21.828Z	INFO	Open store (end)	{"service": "store", "op_name": "tsdb_open", "op_event": "end", "op_elapsed": "77.3µs"}
    testing.go:1090: TempDir RemoveAll cleanup: remove C:\Users\circleci\AppData\Local\Temp\TestStore_BadShard1363295568\002\data\db0\rp0\1\index\0\L0-00000001.tsl: The process cannot access the file because it is being used by another process.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* test: fix failing TestPartition_PrependLogFile_Write_Fail and TestPartition_Compact_Write_Fail on Windows

=== FAIL: tsdb/index/tsi1 TestPartition_PrependLogFile_Write_Fail/write_MANIFEST (0.06s)
    testing.go:1090: TempDir RemoveAll cleanup: remove C:\Users\circleci\AppData\Local\Temp\TestPartition_PrependLogFile_Write_Failwrite_MANIFEST656030081\002\0\L0-00000003.tsl: The process cannot access the file because it is being used by another process.
    --- FAIL: TestPartition_PrependLogFile_Write_Fail/write_MANIFEST (0.06s)

=== FAIL: tsdb/index/tsi1 TestPartition_Compact_Write_Fail/write_MANIFEST (0.08s)
    testing.go:1090: TempDir RemoveAll cleanup: remove C:\Users\circleci\AppData\Local\Temp\TestPartition_Compact_Write_Failwrite_MANIFEST3398667527\002\0\L0-00000003.tsl: The process cannot access the file because it is being used by another process.
    --- FAIL: TestPartition_Compact_Write_Fail/write_MANIFEST (0.08s)

We must close the open file descriptor otherwise the temporary file
cannot be cleaned up on Windows.

Fixes: 619eb1cae6 ("fix: restore in-memory Manifest on write error")
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* test: fix failing TestReplicationStartMissingQueue on Windows

=== FAIL: TestReplicationStartMissingQueue (1.60s)
    logger.go:130: 2023-03-17T10:42:07.269Z	DEBUG	Created new durable queue for replication stream	{"id": "0000000000000001", "path": "C:\\Users\\circleci\\AppData\\Local\\Temp\\TestReplicationStartMissingQueue76668607\\001\\replicationq\\0000000000000001"}
    logger.go:130: 2023-03-17T10:42:07.305Z	INFO	Opened replication stream	{"id": "0000000000000001", "path": "C:\\Users\\circleci\\AppData\\Local\\Temp\\TestReplicationStartMissingQueue76668607\\001\\replicationq\\0000000000000001"}
    testing.go:1206: TempDir RemoveAll cleanup: remove C:\Users\circleci\AppData\Local\Temp\TestReplicationStartMissingQueue76668607\001\replicationq\0000000000000001\1: The process cannot access the file because it is being used by another process.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* test: update TestWAL_DiskSize

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* test: fix failing TestWAL_DiskSize on Windows

=== FAIL: tsdb/engine/tsm1 TestWAL_DiskSize (2.65s)
    testing.go:1206: TempDir RemoveAll cleanup: remove C:\Users\circleci\AppData\Local\Temp\TestWAL_DiskSize2736073801\001\_00006.wal: The process cannot access the file because it is being used by another process.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

---------

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-03-21 16:22:11 -04:00
anon8675309 96d6dc3d82
fix: Removed timeout which is hit with large databases or slow servers #22803 (#23400)
Co-authored-by: anon8675309 <m7gy7uav@duck.com>
2023-03-21 10:47:55 -04:00
L1Cafe 5a7ce078f5
fix: scraping failed when Content-Type header is not set (#24135)
Co-authored-by: L1Cafe <L1Cafe@donotemail.me>
2023-03-14 10:13:28 -04:00
Jeffrey Smith II e1d0102a6f
fix: add error message when attempting to delete by field (#24131)
* fix: add error message when attempting to delete by field

* test: add test for delete by field
2023-03-10 09:13:24 -05:00
Jeffrey Smith II b819edf095
fix: rename replication fields for better clarity (#24126)
* fix: rename replication fields for better clarity

* fix: dont rename, only add new field
2023-03-09 13:11:43 -05:00
Jeffrey Smith II 77fd64a975
fix: handle replication missing queue (#24123)
* fix: replications should startup after backup/restore

* chore: refactor

* test: improve logging and handle test better
2023-03-09 13:10:53 -05:00
Ikko Eltociear Ashimine 387d9007a7
chore: fix typo in functions.go (#24133)
intial -> initial
2023-03-09 12:40:17 -05:00
fuyou 22d698bd7e
fix(sec): upgrade containerd to 1.6.18 (#24129) 2023-03-09 12:39:30 -05:00
Jamie Strandboge 569e84d4a7
chore: use go 1.20.1 (#24114) 2023-03-01 15:49:27 -06:00
dependabot[bot] 23446cc371
build(deps): bump golang.org/x/net from 0.5.0 to 0.7.0 (#24112)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-28 12:30:15 -05:00
Christopher M. Wolff a035bcfb6e
build(flux): update flux to v0.193.0 (#24103) 2023-02-23 10:18:46 -08:00
wiedld 4fc73ea221
feat(monitor-ci/415): get oss-e2es working locally in UI repo (#24098)
* feat(monitor-ci/415): get oss-e2es working locally in UI repo

* chore: remove old, unused artifact directories

* fix: handle import cycle caused by trying to use the onboarding client

---------

Co-authored-by: Jeffrey Smith II <jsmith@influxdata.com>
2023-02-22 09:28:46 -05:00
Manuel de la Peña 260d88b45d
chore: bump testcontainers-go to 0.18.0 (#24097) 2023-02-21 10:07:17 -05:00
Jeffrey Smith II f74c69c5e4
chore: update to go 1.20 (#24088)
* build: upgrade to go 1.19

* chore: bump go.mod

* chore: `gofmt` changes for doc comments

https://tip.golang.org/doc/comment

* test: update tests for new sort order

* chore: make generate-sources

* chore: make generate-sources

* chore: go 1.20

* chore: handle rand.Seed deprecation

* chore: handle rand.Seed deprecation in tests

---------

Co-authored-by: DStrand1 <dstrandboge@influxdata.com>
2023-02-09 14:14:35 -05:00
Jeffrey Smith II 8ad6e17265
chore: add additional error logging when deleting shard (#24038)
* chore: add additional error logging when deleting shard

* chore: better logging message
2023-02-09 09:10:25 -05:00
Jeffrey Smith II 06a59020d0
fix: prevent unauthorized writes in flux "to" function (#24077)
* fix: prevent unauthorized writes in flux "to" function

* test: add test for "to" permissions fix
2023-02-06 10:07:18 -05:00
suitableZebraCaller ec7fdd3a58
fix: Show Replication Queue size and Replication TCP Errors (#23960)
* feat: Show remaining replication queue size

* fix: Show non-http related error messages

* fix: Show non-http related error messages with backoff

* fix: Updates for replication tests

* chore: formatting

* chore: formatting

* chore: formatting

* chore: formatting

* chore: lowercase json field

---------

Co-authored-by: Geoffrey <suitableZebraCaller@users.noreply.github.com>
Co-authored-by: Jeffrey Smith II <jeffreyssmith2nd@gmail.com>
2023-02-02 09:47:45 -05:00
dependabot[bot] e2f835bb0f
build(deps): bump github.com/aws/aws-sdk-go from 1.30.12 to 1.33.0 (#24070)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.30.12 to 1.33.0.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/v1.33.0/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.30.12...v1.33.0)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: indirect
...

closes https://github.com/influxdata/edge/issues/371

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-30 15:08:33 -08:00
Joshua Powers 109bc88512
chore: update package repo GPG key (#24061) 2023-01-26 16:10:09 -07:00
Chunchun Ye 8ed55e72b8
build(flux): update flux to v0.192.0 (#24028) 2023-01-13 10:22:57 -06:00
Jeffrey Smith II 6b60728843
fix: Update UI to resolve Dashboard crash and All Access Token creati… (#24017)
* fix: Update UI to resolve Dashboard crash and All Access Token creation (#24014)

* chore: update docs around ui releases
2023-01-04 09:49:21 -05:00
Jeffrey Smith II 24a2b621ea
fix: Pin UI to older version to address Dashboard issues (#23980) 2022-12-15 11:49:43 -05:00
Jeffrey Smith II ffd069a8a5
fix: handle NaN in scraper (#23944)
* fix: handle NaN values in scraper

* chore: a converted int will never be NaN
2022-12-13 15:58:50 -05:00
Brandon Pfeifer ade21ad9a1
fix: restrict file permissions by default (#23959)
Most of these changes can be overridden by the system
maintainer with environment variables or systemd
override snippets.
2022-12-13 11:00:50 -05:00
Jamie Strandboge cee487fe21
chore: update Go to 1.18.9 (#23973) 2022-12-07 15:25:06 -06:00
Brandon Pfeifer 853d6157e3
feat: perform basic package validation (#23863)
* chore: remove unused build/ci scripts

* feat: validate packages during build

* chore: test CentOS aarch64 package

* fix: remove x86_64 from parameterized workflow

* fix: don't upgrade packages

Since some unrelated packages break during upgrade, this
no longer upgrades the system before installing
influxdb.
2022-12-01 10:58:33 -05:00