-
Notifications
You must be signed in to change notification settings - Fork 53
Pb active transport #1464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pb active transport #1464
Conversation
Summary
Previous Results
Insights
Slowest Tests
🎉 No failed tests in this run. | 🍂 No flaky tests in this run. Github Test Reporter by CTRF 💚 🔄 This comment has been updated |
|
Tested on imix and imixv2.
|
| "SetCallbackIntervalMessage: beacon is missing from config" | ||
| )), | ||
| }?; | ||
| // TODO: we can probably just modify the interval not rebuild the entire beacon see set_callback_uri.rs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is 1v we let it die 🫡
implants/lib/pb/src/config.rs
Outdated
| use crate::c2::beacon::Transport; | ||
| use crate::c2::ActiveTransport; | ||
|
|
||
| //TODO: Migrate most of this into a config crate or as a part of the agent. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like a good follow on PR
implants/lib/pb/src/config.rs
Outdated
| #[prost(uint64, tag = "4")] | ||
| pub retry_interval: u64, | ||
| #[prost(bool, tag = "5")] | ||
| // #[prost(string, tag = "2")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete dead code.
| let transport = crate::c2::beacon::Transport::Grpc; | ||
| #[cfg(not(any(feature = "dns", feature = "http1", feature = "grpc")))] | ||
| let transport = crate::c2::beacon::Transport::Unspecified; | ||
| let transport_type = match CALLBACK_URI.split(":").nth(0).unwrap_or("unspecified") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably need to add some testing to make sure the transport exists in the complied agent.
jabbate19
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider changes for rust code to make the unboxing cleaner, but otherwise ![]()
What type of PR is this?
/kind feature
What this PR does / why we need it:
Refactor transport configuration.
IMIX_PROXY_URItoIMIX_TRANSPORT_EXTRA_HTTP_PROXY