-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(transparent-proxy): allow
--kuma-dp-user
to accept UIDs and de…
…precate `--kuma-dp-uid` flag (#10920) * Unembed `Executables` from `InitializedExecutables` Removing the embedding of the `Executables` struct from `InitializedExecutables` as it is unnecessary. The fields from `Executables` are not used directly in `InitializedExecutables`, and unembedding helps to reduce clutter and improve code clarity. * Add `IPFamilyMode` to `Config` and Remove `IPv6` Field Replaced the `IPv6` field in `Config` with the `IPFamilyMode` field. This change centralizes the processing of IP family modes within the `Config` struct, simplifying the configuration and usage. * Adjust Unit Tests for `kumactl install transparent-proxy` Updated the unit tests to align with recent changes in handling IPv4 and IPv6 rules generation. Removed the use of `subnetPlaceholder` and unified the IP address for inbound traffic in tests, as there is no different inbound redirection port for IPv6 now. * Move Owner UID/username processing to Config - Allow `--kuma-dp-user` flag in `kumactl install transparent-proxy` to accept both usernames and UIDs. - Deprecate `--kuma-dp-uid` flag in favor of the enhanced `--kuma-dp-user` flag. - Make `--kuma-dp-user` flag optional. If not specified, the system will attempt to use a default UID (`5678`) or the default username (`kuma-dp`). - Relocate the user processing logic (searching for the user) to the transparent proxy Config. Signed-off-by: Bart Smykla <[email protected]>
- Loading branch information
1 parent
c6d1949
commit 71e682c
Showing
98 changed files
with
287 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.