From 49dd57e5628efcdf9980d73f3cd036edde3b6506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Smolarek?= <34063647+Razz4780@users.noreply.github.com> Date: Tue, 13 Aug 2024 16:11:41 +0200 Subject: [PATCH] 3.113.0 (#2646) --- CHANGELOG.md | 70 +++++++++++++++++++ Cargo.lock | 54 +++++++------- Cargo.toml | 2 +- ...dd-execution_kind-to-analytics.internal.md | 1 - .../+dedup-analytics-reporter.internal.md | 1 - .../+remove-unused-dependencies.internal.md | 1 - .../+tweak-container-command.internal.md | 12 ---- changelog.d/+update-actions.internal.md | 1 - changelog.d/1658.added.md | 24 ------- changelog.d/2456.fixed.md | 1 - changelog.d/2632.internal.md | 1 - changelog.d/2647.fixed.md | 1 - 12 files changed, 98 insertions(+), 71 deletions(-) delete mode 100644 changelog.d/+add-execution_kind-to-analytics.internal.md delete mode 100644 changelog.d/+dedup-analytics-reporter.internal.md delete mode 100644 changelog.d/+remove-unused-dependencies.internal.md delete mode 100644 changelog.d/+tweak-container-command.internal.md delete mode 100644 changelog.d/+update-actions.internal.md delete mode 100644 changelog.d/1658.added.md delete mode 100644 changelog.d/2456.fixed.md delete mode 100644 changelog.d/2632.internal.md delete mode 100644 changelog.d/2647.fixed.md diff --git a/CHANGELOG.md b/CHANGELOG.md index d7aba48c08c..8eae3c082a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,76 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [3.113.0](https://github.com/metalbear-co/mirrord/tree/3.113.0) - 2024-08-12 + + +### Added + +- Add new api to run mirrord inside container + + ``` + mirrord container [options] -- run ... + ``` + + Because we need to run internal proxy process on the same network as the + process loaded with `mirrord-layer`, to keep config and kubernetes + comparability the communication to mirrord agent is made via external proxy + that will run on the host machine. + ``` + ┌────────────────┐ + k8s │ mirrord agent │ + └─────┬────▲─────┘ + │ │ + │ │ + ┌─────▼────┴─────┐ + container host │ external proxy │ + └─────┬────▲─────┘ + │ │ + │ │ + ┌─────▼────┴─────┐◄──────┐ + sidecar container │ internal proxy │ │ + └──┬─────────────┴──┐ │ + run container │ mirrord-layer ├────┘ + └────────────────┘ + ``` + [#1658](https://github.com/metalbear-co/mirrord/issues/1658) + + +### Fixed + +- Add custom handling for istio ambient mode where we set + `/proc/sys/net/ipv4/conf/all/route_localnet` to `1` so it does require + `agent.privileged = true` to work. (See + [#2456](https://github.com/metalbear-co/mirrord/issues/2456)) + [#2456](https://github.com/metalbear-co/mirrord/issues/2456) +- Fix issue introduced in #2612 that broke configs with one-value definition + for IncomingConfig for network feature. + [#2647](https://github.com/metalbear-co/mirrord/issues/2647) + + +### Internal + +- Fixed a flake in layer integration tests. + [#2632](https://github.com/metalbear-co/mirrord/issues/2632) +- Add `execution_kind` into analytics `event_properties` where `mirrord + container` results in 1 and `mirrord exec` results in 2. +- Cleanup unused dependencies +- Remove double analytics reporting by setting so intproxy will only report + errors if it is running inside a container. +- Update actions +- Update the location of `--` in container command + ``` + mirrord container [options] run -- ... + ``` + Now will be + ``` + mirrord container [options] -- run ... + ``` + or simply + ``` + mirrord container [options] run ... + ``` + ## [3.112.1](https://github.com/metalbear-co/mirrord/tree/3.112.1) - 2024-08-05 diff --git a/Cargo.lock b/Cargo.lock index 6f0a0f99a7a..402c60b56e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2079,7 +2079,7 @@ dependencies = [ [[package]] name = "fileops" -version = "3.112.1" +version = "3.113.0" dependencies = [ "libc", ] @@ -3073,7 +3073,7 @@ checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" [[package]] name = "issue1317" -version = "3.112.1" +version = "3.113.0" dependencies = [ "actix-web", "env_logger 0.11.5", @@ -3083,7 +3083,7 @@ dependencies = [ [[package]] name = "issue1776" -version = "3.112.1" +version = "3.113.0" dependencies = [ "errno 0.3.9", "libc", @@ -3092,7 +3092,7 @@ dependencies = [ [[package]] name = "issue1776portnot53" -version = "3.112.1" +version = "3.113.0" dependencies = [ "libc", "socket2", @@ -3100,14 +3100,14 @@ dependencies = [ [[package]] name = "issue1899" -version = "3.112.1" +version = "3.113.0" dependencies = [ "libc", ] [[package]] name = "issue2001" -version = "3.112.1" +version = "3.113.0" dependencies = [ "libc", ] @@ -3426,7 +3426,7 @@ checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" [[package]] name = "listen_ports" -version = "3.112.1" +version = "3.113.0" [[package]] name = "local-channel" @@ -3665,7 +3665,7 @@ checksum = "c9be0862c1b3f26a88803c4a49de6889c10e608b3ee9344e6ef5b45fb37ad3d1" [[package]] name = "mirrord" -version = "3.112.1" +version = "3.113.0" dependencies = [ "actix-codec", "clap", @@ -3711,7 +3711,7 @@ dependencies = [ [[package]] name = "mirrord-agent" -version = "3.112.1" +version = "3.113.0" dependencies = [ "actix-codec", "async-trait", @@ -3766,7 +3766,7 @@ dependencies = [ [[package]] name = "mirrord-analytics" -version = "3.112.1" +version = "3.113.0" dependencies = [ "assert-json-diff", "base64 0.22.1", @@ -3780,7 +3780,7 @@ dependencies = [ [[package]] name = "mirrord-auth" -version = "3.112.1" +version = "3.113.0" dependencies = [ "bcder", "chrono", @@ -3801,7 +3801,7 @@ dependencies = [ [[package]] name = "mirrord-config" -version = "3.112.1" +version = "3.113.0" dependencies = [ "bimap", "bitflags 2.6.0", @@ -3823,7 +3823,7 @@ dependencies = [ [[package]] name = "mirrord-config-derive" -version = "3.112.1" +version = "3.113.0" dependencies = [ "proc-macro2", "proc-macro2-diagnostics", @@ -3833,7 +3833,7 @@ dependencies = [ [[package]] name = "mirrord-console" -version = "3.112.1" +version = "3.113.0" dependencies = [ "bincode", "drain", @@ -3849,7 +3849,7 @@ dependencies = [ [[package]] name = "mirrord-intproxy" -version = "3.112.1" +version = "3.113.0" dependencies = [ "bytes", "futures", @@ -3876,7 +3876,7 @@ dependencies = [ [[package]] name = "mirrord-intproxy-protocol" -version = "3.112.1" +version = "3.113.0" dependencies = [ "bincode", "mirrord-protocol", @@ -3886,7 +3886,7 @@ dependencies = [ [[package]] name = "mirrord-kube" -version = "3.112.1" +version = "3.113.0" dependencies = [ "actix-codec", "base64 0.22.1", @@ -3913,7 +3913,7 @@ dependencies = [ [[package]] name = "mirrord-layer" -version = "3.112.1" +version = "3.113.0" dependencies = [ "actix-codec", "base64 0.22.1", @@ -3960,7 +3960,7 @@ dependencies = [ [[package]] name = "mirrord-layer-macro" -version = "3.112.1" +version = "3.113.0" dependencies = [ "proc-macro2", "quote", @@ -3969,7 +3969,7 @@ dependencies = [ [[package]] name = "mirrord-macros" -version = "3.112.1" +version = "3.113.0" dependencies = [ "proc-macro2", "proc-macro2-diagnostics", @@ -3979,7 +3979,7 @@ dependencies = [ [[package]] name = "mirrord-operator" -version = "3.112.1" +version = "3.113.0" dependencies = [ "base64 0.22.1", "bincode", @@ -4013,7 +4013,7 @@ dependencies = [ [[package]] name = "mirrord-progress" -version = "3.112.1" +version = "3.113.0" dependencies = [ "enum_dispatch", "indicatif", @@ -4047,7 +4047,7 @@ dependencies = [ [[package]] name = "mirrord-sip" -version = "3.112.1" +version = "3.113.0" dependencies = [ "apple-codesign", "object 0.36.2", @@ -4391,7 +4391,7 @@ dependencies = [ [[package]] name = "outgoing" -version = "3.112.1" +version = "3.113.0" [[package]] name = "overload" @@ -5431,21 +5431,21 @@ dependencies = [ [[package]] name = "rust-bypassed-unix-socket" -version = "3.112.1" +version = "3.113.0" dependencies = [ "tokio", ] [[package]] name = "rust-e2e-fileops" -version = "3.112.1" +version = "3.113.0" dependencies = [ "libc", ] [[package]] name = "rust-unix-socket-client" -version = "3.112.1" +version = "3.113.0" dependencies = [ "tokio", ] diff --git a/Cargo.toml b/Cargo.toml index a60cedda4b2..66b0232c0e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ resolver = "2" # latest commits on rustls suppress certificate verification [workspace.package] -version = "3.112.1" +version = "3.113.0" edition = "2021" license = "MIT" readme = "README.md" diff --git a/changelog.d/+add-execution_kind-to-analytics.internal.md b/changelog.d/+add-execution_kind-to-analytics.internal.md deleted file mode 100644 index 988fa127a94..00000000000 --- a/changelog.d/+add-execution_kind-to-analytics.internal.md +++ /dev/null @@ -1 +0,0 @@ -Add `execution_kind` into analytics `event_properties` where `mirrord container` results in 1 and `mirrord exec` results in 2. diff --git a/changelog.d/+dedup-analytics-reporter.internal.md b/changelog.d/+dedup-analytics-reporter.internal.md deleted file mode 100644 index 5c23f950e57..00000000000 --- a/changelog.d/+dedup-analytics-reporter.internal.md +++ /dev/null @@ -1 +0,0 @@ -Remove double analytics reporting by setting so intproxy will only report errors if it is running inside a container. diff --git a/changelog.d/+remove-unused-dependencies.internal.md b/changelog.d/+remove-unused-dependencies.internal.md deleted file mode 100644 index c0d1b80a3ed..00000000000 --- a/changelog.d/+remove-unused-dependencies.internal.md +++ /dev/null @@ -1 +0,0 @@ -Cleanup unused dependencies \ No newline at end of file diff --git a/changelog.d/+tweak-container-command.internal.md b/changelog.d/+tweak-container-command.internal.md deleted file mode 100644 index 2134087db11..00000000000 --- a/changelog.d/+tweak-container-command.internal.md +++ /dev/null @@ -1,12 +0,0 @@ -Update the location of `--` in container command -``` -mirrord container [options] run -- ... -``` -Now will be -``` -mirrord container [options] -- run ... -``` -or simply -``` -mirrord container [options] run ... -``` diff --git a/changelog.d/+update-actions.internal.md b/changelog.d/+update-actions.internal.md deleted file mode 100644 index 1fbfea0cf1d..00000000000 --- a/changelog.d/+update-actions.internal.md +++ /dev/null @@ -1 +0,0 @@ -Update actions \ No newline at end of file diff --git a/changelog.d/1658.added.md b/changelog.d/1658.added.md deleted file mode 100644 index d9f611348fd..00000000000 --- a/changelog.d/1658.added.md +++ /dev/null @@ -1,24 +0,0 @@ -Add new api to run mirrord inside container - -``` -mirrord container [options] run -- ... -``` - -Because we need to run internal proxy process on the same network as the process loaded with `mirrord-layer`, to keep config and kubernetes comparability the communication to mirrord agent is made via external proxy that will run on the host machine. -``` - ┌────────────────┐ - k8s │ mirrord agent │ - └─────┬────▲─────┘ - │ │ - │ │ - ┌─────▼────┴─────┐ - container host │ external proxy │ - └─────┬────▲─────┘ - │ │ - │ │ - ┌─────▼────┴─────┐◄──────┐ - sidecar container │ internal proxy │ │ - └──┬─────────────┴──┐ │ - run container │ mirrord-layer ├────┘ - └────────────────┘ -``` diff --git a/changelog.d/2456.fixed.md b/changelog.d/2456.fixed.md deleted file mode 100644 index f14441a7af9..00000000000 --- a/changelog.d/2456.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Add custom handling for istio ambient mode where we set `/proc/sys/net/ipv4/conf/all/route_localnet` to `1` so it does require `agent.privileged = true` to work. (See [#2456](https://github.com/metalbear-co/mirrord/issues/2456)) diff --git a/changelog.d/2632.internal.md b/changelog.d/2632.internal.md deleted file mode 100644 index 533bf5d39fc..00000000000 --- a/changelog.d/2632.internal.md +++ /dev/null @@ -1 +0,0 @@ -Fixed a flake in layer integration tests. \ No newline at end of file diff --git a/changelog.d/2647.fixed.md b/changelog.d/2647.fixed.md deleted file mode 100644 index dc46cada71b..00000000000 --- a/changelog.d/2647.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Fix issue introduced in #2612 that broke configs with one-value definition for IncomingConfig for network feature.