Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
00ab751
compile succeed on windows, need to check linux build
bingyuyin Sep 16, 2025
8bf8dde
small optimize, to-do: unit test
bingyuyin Sep 16, 2025
89a4ea4
fixes for build
bingyuyin Sep 17, 2025
4fd830f
fixes for fmt
bingyuyin Sep 17, 2025
51edc68
fixes for win build
bingyuyin Sep 17, 2025
c51dc76
fixes for build
bingyuyin Sep 18, 2025
f86be1c
small changes with one unit test
bingyuyin Sep 18, 2025
de62b73
move common from proxy agent to shared
bingyuyin Sep 18, 2025
0497690
refactor
bingyuyin Sep 19, 2025
36ff387
build fixes
bingyuyin Sep 19, 2025
0bd95bd
fixes
bingyuyin Sep 19, 2025
8729c4c
build fixes on spell
bingyuyin Sep 19, 2025
7e3dc24
add logger to client
bingyuyin Sep 19, 2025
de8cc32
rename client folder, to-do: unit test coverage
bingyuyin Sep 19, 2025
4850732
unit test
bingyuyin Sep 19, 2025
21b69c8
unit tess
bingyuyin Sep 19, 2025
8ba4a22
fix spell
bingyuyin Sep 19, 2025
dffbc7e
fix spell
bingyuyin Sep 19, 2025
7f5e433
spell fixes
bingyuyin Sep 19, 2025
b91c2b4
more unit test
bingyuyin Sep 22, 2025
9c13ab1
client unit tests
bingyuyin Sep 22, 2025
c925a7d
aggregate status test
bingyuyin Sep 22, 2025
b54d7c9
more ut
bingyuyin Sep 22, 2025
d1b2312
fix ut
bingyuyin Sep 23, 2025
1b554ed
Merge branch 'dev' of https://github.com/bingyuyin/GuestProxyAgent in…
bingyuyin Sep 29, 2025
c667d2c
Merge branch 'ws_hostga_clients_setup' of https://github.com/bingyuyi…
bingyuyin Sep 29, 2025
d5e68d5
fix for ut in linux
bingyuyin Sep 29, 2025
2aac05b
more unit test
bingyuyin Sep 29, 2025
2a9d332
fixes
bingyuyin Sep 29, 2025
0a0db78
clippy fixes
bingyuyin Sep 29, 2025
45b6614
more unit test
bingyuyin Sep 29, 2025
13cb9f1
more unit tests
bingyuyin Sep 29, 2025
92f2c42
linux test fixes
bingyuyin Sep 29, 2025
bde00ad
linux tests
bingyuyin Sep 30, 2025
8d491af
ut for linux
bingyuyin Sep 30, 2025
b7552aa
more unit tests
bingyuyin Sep 30, 2025
ab7ecad
clippy fixes
bingyuyin Sep 30, 2025
d0c8ec8
Merge branch 'Azure:dev' into ws_hostga_clients_setup
bingyuyin Oct 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aab

Check warning on line 1 in .github/actions/spelling/expect.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Skipping `.github/actions/spelling/expect.txt` because it seems to have more noise (384) than unique words (0) (total: 385 / 0). (noisy-file)
AAFFBB
aarch
abe
Expand Down Expand Up @@ -364,4 +364,22 @@
xxxx
xxxxxxxx
xxxxxxxxxxx
zipsas
zipsas
CALG
CNG
detials
HCRYPTPROV
hostgap
innerbandwidth
innerlatency
KSP
ncrypt
outwardbandwidth
outwardlatency
PCWSTR
PSTR
psz
rsm
SELFSIGN
vmsettings
hostgaplugin

Check warning on line 385 in .github/actions/spelling/expect.txt

View workflow job for this annotation

GitHub Actions / Check Spelling

Missing newline at eof. (no-newline-at-eof)
100 changes: 89 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions proxy_agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ license = "MIT"

[dependencies]
proxy_agent_shared = { path ="../proxy_agent_shared"}
itertools = "0.10.5" # use to sort iterator elements into a new iterator in ascending order
once_cell = "1.17.0" # use Lazy
serde = "1.0.152"
serde_derive = "1.0.152"
serde_json = "1.0.91" # json Deserializer
serde-xml-rs = "0.8.1" # xml Deserializer with xml attribute
bitflags = "2.6.0" # support bitflag enum
hmac-sha256 = "1.1.6" # use HMAC using the SHA-256 hash function
hex = "0.4.3" # hex encode
regex = "1.11" # match process name in cmdline
tokio = { version = "1", features = ["rt", "rt-multi-thread", "time", "net", "macros", "sync"] }
tokio-util = "0.7.11"
Expand All @@ -28,7 +25,6 @@ hyper = { version = "1", features = ["server", "http1", "client"] }
hyper-util = { version = "0.1", features = ["tokio"] }
tower = { version = "0.5.2", features = ["full"] }
tower-http = { version = "0.6.2", features = ["limit"] }
clap = { version = "4.5.17", features =["derive"] } # Command Line Argument Parser
thiserror = "1.0.64"
ctor = "0.3.6" # used for test setup and clean up

Expand Down
2 changes: 1 addition & 1 deletion proxy_agent/src/acl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mod windows_acl;
#[cfg(not(windows))]
mod linux_acl;

use crate::common::result::Result;
use proxy_agent_shared::common::result::Result;
use std::path::PathBuf;

pub fn acl_directory(dir_to_acl: PathBuf) -> Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion proxy_agent/src/acl/linux_acl.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation
// SPDX-License-Identifier: MIT
use crate::common::{logger, result::Result};
use nix::unistd::{chown, Gid, Uid};
use proxy_agent_shared::common::{logger, result::Result};
use proxy_agent_shared::misc_helpers;
use std::fs;
use std::os::unix::fs::PermissionsExt;
Expand Down
2 changes: 1 addition & 1 deletion proxy_agent/src/acl/windows_acl.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation
// SPDX-License-Identifier: MIT

use crate::common::{
use proxy_agent_shared::common::{
error::{AclErrorType, Error},
logger,
result::Result,
Expand Down
51 changes: 0 additions & 51 deletions proxy_agent/src/common/cli.rs

This file was deleted.

2 changes: 1 addition & 1 deletion proxy_agent/src/host_clients/imds_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
//! ```

use super::instance_info::InstanceInfo;
use crate::common::{error::Error, hyper_client, logger, result::Result};
use crate::shared_state::key_keeper_wrapper::KeyKeeperSharedState;
use hyper::Uri;
use proxy_agent_shared::common::{error::Error, hyper_client, logger, result::Result};
use std::collections::HashMap;

pub struct ImdsClient {
Expand Down
14 changes: 6 additions & 8 deletions proxy_agent/src/host_clients/wire_server_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@
//! ```

use crate::host_clients::goal_state::{GoalState, SharedConfig};
use crate::{
common::{
error::{Error, WireServerErrorType},
hyper_client, logger,
result::Result,
},
shared_state::key_keeper_wrapper::KeyKeeperSharedState,
};
use crate::shared_state::key_keeper_wrapper::KeyKeeperSharedState;
use http::Method;
use hyper::Uri;
use proxy_agent_shared::common::{
error::{Error, WireServerErrorType},
hyper_client, logger,
result::Result,
};
use std::collections::HashMap;

pub struct WireServerClient {
Expand Down
Loading
Loading