21833 Commits

Author SHA1 Message Date
Baek
69ebaaebca featuregate: adds EtcdServer.FeatureEnabled interface.
The interface can be used throughout the etcd server binary to check if
the feature is enabled or not.

Note that this commit also copies necessary FeatureGate interface from
k8s component-base.

Signed-off-by: Baek <seungtackbaek@google.com>
2024-06-15 05:34:58 +00:00
Benjamin Wang
d09c935736
Merge pull request #18178 from henrybear327/changelog/Fix-govulncheck-CI-check
Update release-3.5 changelog
2024-06-15 06:24:34 +01:00
Siyuan Zhang
aaa6e9ef8c robustness: Separate compaction and LazyFS test scenario for cluster size 1.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-06-14 13:33:50 -07:00
Chun-Hung Tseng
84c68f391c
Update release-3.5 changelog
Fully address CVE-2023-45288 and fix govulncheck CI check

Reference:
- https://github.com/etcd-io/etcd/pull/18170

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-06-14 22:12:35 +02:00
ArkaSaha30
6ca3b6ba88
Remove robustness presubmits and periodics workflows
This commit will remove robustness presubmits
for both `amd64` and `arm64` archs, periodics for
`amd64` arch since it has been migrated to test-infra
as prowjobs:
https://github.com/kubernetes/test-infra/blob/master/config/jobs/etcd/etcd-periodics.yaml#L61-L230
https://github.com/kubernetes/test-infra/blob/master/config/jobs/etcd/etcd-presubmits.yaml#L240-L279

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-06-14 23:22:14 +05:30
Benjamin Wang
45f14539e0
Merge pull request #18164 from andyxning/bugfix_register_of_walWriteSec
bugfix: register of walWriteSec
2024-06-14 18:32:15 +01:00
Benjamin Wang
d2b6423a5c
Merge pull request #18171 from henrybear327/ci/fix_govulncheck_release_main
Fix govulncheck CI check on main branch
2024-06-14 18:27:40 +01:00
Chun-Hung Tseng
bc1aed1936
Fix govulncheck CI check on main branch
This commit fixed the Go Vulnerability Checker CI job, which isn't
scanning for all go.mod files within the project.

Reference:
- https://github.com/etcd-io/etcd/discussions/18168

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-06-14 11:30:10 +02:00
James Blair
3be7dbeb36
Merge pull request #18167 from ivanvc/update-robustness-test-documentation-to-point-to-prow
tests/robustness: update documentation to reflect Prow migration
2024-06-14 10:55:38 +12:00
Ivan Valdes
d73cc2bb65
tests/robustness: update documentation to reflect Prow migration
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-06-13 10:20:32 -07:00
Benjamin Wang
260dd77ed4
Merge pull request #18166 from lubronzhan/topic/lubron/fix-typo
Fix typo in mvcc comment
2024-06-13 16:51:18 +01:00
lubronzhan
0b6529c462 mvcc: fix typo
Signed-off-by: lubronzhan <lubronzhan@gmail.com>
2024-06-13 00:15:37 -07:00
Andy Xie
4a555fead3 bugfix: register of walWriteSec
Signed-off-by: Andy Xie <andy.xning@gmail.com>
2024-06-13 15:12:58 +08:00
Benjamin Wang
5c3190903f
Merge pull request #18143 from henrybear327/ci/add_coverage_tool
Update codecov config to support commenting in PR
2024-06-12 12:47:36 +01:00
James Blair
a6bb22d2c3
Merge pull request #18161 from henrybear327/dependency_update/6_12_24
[2024-06-10] Bump dependency updates identified by dependabot
2024-06-12 23:08:54 +12:00
Chun-Hung Tseng
1579c57729 Update codecov config to support commenting code coverage in PRs
Add missing directory fixing go.etcd.io/etcd/etcdutl/v3/::etcdutl/

Note: we have some of the tests written in a way that is
non-deterministic across runs, thus, even when there is no code changes
there might still have slight variation for test coverage [2]

Reference:
[1] https://github.com/etcd-io/etcd/issues/18131
[2] https://docs.codecov.com/docs/unexpected-coverage-changes#reasons-for-indirect-changes

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-06-12 11:23:31 +02:00
Chun-Hung Tseng
706c324c77 dependency: bump golang.org/x/text from 0.15.0 to 0.16.0
Reference:
- https://github.com/etcd-io/etcd/pull/18146

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-06-12 09:45:47 +02:00
Chun-Hung Tseng
293d979759 dependency: bump golang.org/x/net from 0.25.0 to 0.26.0
Reference:
- https://github.com/etcd-io/etcd/pull/18150
- https://github.com/etcd-io/etcd/pull/18146

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-06-12 09:45:04 +02:00
Chun-Hung Tseng
e1d7af5a0c dependency: bump golang.org/x/crypto from 0.23.0 to 0.24.0
Reference:
- https://github.com/etcd-io/etcd/pull/18149

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-06-12 09:37:07 +02:00
Ryan Leung
d9cb8b80f5 address the comment
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2024-06-12 11:38:41 +08:00
James Blair
57907746e3
Merge pull request #18152 from etcd-io/dependabot/github_actions/github/codeql-action-3.25.8
build(deps): bump github/codeql-action from 3.25.7 to 3.25.8
2024-06-11 20:29:55 +12:00
James Blair
4f9808d9a7
Merge pull request #18151 from etcd-io/dependabot/github_actions/aquasecurity/trivy-action-0.22.0
build(deps): bump aquasecurity/trivy-action from 0.21.0 to 0.22.0
2024-06-11 20:19:56 +12:00
dependabot[bot]
59ba0d4ebb
build(deps): bump github/codeql-action from 3.25.7 to 3.25.8
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.7 to 3.25.8.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](f079b84933...2e230e8fe0)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 17:32:50 +00:00
dependabot[bot]
90540f2586
build(deps): bump aquasecurity/trivy-action from 0.21.0 to 0.22.0
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) from 0.21.0 to 0.22.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases)
- [Commits](fd25fed697...595be6a0f6)

---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 17:32:26 +00:00
James Blair
8a0054fecb
Merge pull request #18140 from lhy1024/cn-log
CHANGELOG: support multiple values for allowed client and peer TLS identities
2024-06-08 17:30:15 +12:00
Marek Siarkowicz
2c56e8edc1
Merge pull request #18107 from serathius/e2e-error-log
Improve e2e error reporting
2024-06-07 13:58:59 +02:00
Marek Siarkowicz
b38d863a89
Merge pull request #17833 from serathius/robustness-compact
Implement compaction support in robustness test
2024-06-07 13:35:11 +02:00
Ryan Leung
29abd62338 introduce GRPCAdditionalServerOptions
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2024-06-07 16:39:35 +08:00
Marek Siarkowicz
5959110f4a Implement Compaction support in robustness test
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-06-07 10:33:57 +02:00
Marek Siarkowicz
3c5684967f Improve e2e error reporting
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
Co-authored-by: James Blair <mail@jamesblair.net>
Co-authored-by: chao <chaochn@amazon.com>
2024-06-07 10:24:52 +02:00
Marek Siarkowicz
2ffaf5fba4
Merge pull request #18133 from serathius/robustness-connection-reset
Ignore connection reset error when triggering a failpoint
2024-06-07 10:23:14 +02:00
Marek Siarkowicz
d9dcf62558
Merge pull request #18135 from fuweid/fix-17968
tests/robustness: unlock Delete/LeaseRevoke ops
2024-06-07 10:22:53 +02:00
Marek Siarkowicz
75ad7a82f2
Merge pull request #18108 from chaochn47/fix-ts-with-no-trailing-zeros
fix ts with no trailing zeros
2024-06-07 10:12:31 +02:00
lhy1024
e389b4cc4b CHANGELOG: support multiple values for allowed client and peer TLS identities
Signed-off-by: lhy1024 <admin@liudos.us>
2024-06-07 11:44:04 +08:00
James Blair
8a376e8e19
Merge pull request #18015 from lhy1024/cn
Support multiple values for allowed client and peer TLS identities
2024-06-07 15:23:19 +12:00
Chao Chen
7211d9fb94 fix ts with no trailing zeros
Signed-off-by: Chao Chen <chaochn@amazon.com>
2024-06-06 17:20:37 -07:00
lhy1024
acc9d7c9fe Support multiple values for allowed client and peer TLS identities
Signed-off-by: lhy1024 <admin@liudos.us>
2024-06-06 21:25:17 +08:00
Wei Fu
fc1863086c tests/robustness: unlock Delete/LeaseRevoke ops
We should return token to that bucket if `nonUniqueWriteLimiter.Take()`
return true. After unlock Delete/LeaseRevoke ops, the model should be
updated for replay function. There are two updates for `toWatchEvents`.

1. When leaveRevokes op has deleted few keys, we should generate
   `delete-operation` events based on alphabetical order of deleted
   keys.
2. When putWithLease op hits non-exist lease, we should ignore that
   update event.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-06-06 20:40:08 +08:00
Marek Siarkowicz
b8eeaacbcb Ignore connection reset error when triggering a failpoint
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2024-06-05 17:58:46 +02:00
Benjamin Wang
6216cbf3f9
Merge pull request #18128 from ArkaSaha30/main-cve-2024-24790
Bump Go version to 1.22.4: CVE 2024-24790 fix
2024-06-05 10:37:13 +01:00
ArkaSaha30
2089857ab8
Bump Go version to 1.22.4: CVE 2024-24790 fix
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-06-05 14:12:52 +05:30
James Blair
179a09e73f
Merge pull request #18126 from siyuanfoundation/robust2
test: update CouldSetSnapshotCatchupEntries to use 3.5.14.
2024-06-05 19:06:50 +12:00
Siyuan Zhang
06f2746fc1 test: update CouldSetSnapshotCatchupEntries to use 3.5.14.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-06-04 10:47:54 -07:00
James Blair
a0aee63128
Merge pull request #18116 from etcd-io/dependabot/github_actions/github/codeql-action-3.25.7
build(deps): bump github/codeql-action from 3.25.6 to 3.25.7
2024-06-04 13:37:29 +12:00
James Blair
2f083a5733
Merge pull request #18120 from henrybear327/dependency_update/6_3_24
[2024-06-03] Bump dependency updates identified by dependabot
2024-06-04 12:41:06 +12:00
Chun-Hung Tseng
f77f422812 dependency: bump github.com/prometheus/common from 0.53.0 to 0.54.0
References:
- https://github.com/etcd-io/etcd/pull/18111
- https://github.com/etcd-io/etcd/pull/18118

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-06-03 22:15:31 +02:00
Benjamin Wang
dc8510ce47
Merge pull request #15965 from cenkalti/hashkv
cli: Add etcdutl snapshot hashkv command
2024-06-03 20:58:27 +01:00
dependabot[bot]
d88a1b3482
build(deps): bump github/codeql-action from 3.25.6 to 3.25.7
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.6 to 3.25.7.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](9fdb3e4972...f079b84933)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-03 17:16:24 +00:00
Cenk Alti
b107d2437f
cli: Add etcdutl snapshot hashkv command
Signed-off-by: Cenk Alti <cenkalti@gmail.com>

Apply suggestions from code review

Co-authored-by: Benjamin Wang <benjamin.wang@broadcom.com>
2024-06-02 00:07:50 -04:00
Marek Siarkowicz
0b2f15f616
Merge pull request #18098 from skitt/go-1.20-errors-join
Use Go 1.20 error joining instead of multierr
2024-06-01 07:21:50 +02:00