Skip to content

Commit 7cc2832

Browse files
committed
Remove appsec socket/lock_file_path
1 parent b8fe9e1 commit 7cc2832

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

datadog-sidecar/src/config.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ const ENV_SIDECAR_WATCHDOG_MAX_MEMORY: &str = "_DD_SIDECAR_WATCHDOG_MAX_MEMORY";
3131
const ENV_SIDECAR_CRASHTRACKER_ENDPOINT: &str = "_DD_SIDECAR_CRASHTRACKER_ENDPOINT";
3232

3333
const ENV_SIDECAR_APPSEC_SHARED_LIB_PATH: &str = "_DD_SIDECAR_APPSEC_SHARED_LIB_PATH";
34-
const ENV_SIDECAR_APPSEC_SOCKET_FILE_PATH: &str = "_DD_SIDECAR_APPSEC_SOCKET_FILE_PATH";
35-
const ENV_SIDECAR_APPSEC_LOCK_FILE_PATH: &str = "_DD_SIDECAR_APPSEC_LOCK_FILE_PATH";
3634
const ENV_SIDECAR_APPSEC_LOG_FILE_PATH: &str = "_DD_SIDECAR_APPSEC_LOG_FILE_PATH";
3735
const ENV_SIDECAR_APPSEC_LOG_LEVEL: &str = "_DD_SIDECAR_APPSEC_LOG_LEVEL";
3836

@@ -89,8 +87,6 @@ pub struct Config {
8987
#[derive(Debug, Clone)]
9088
pub struct AppSecConfig {
9189
pub shared_lib_path: std::ffi::OsString,
92-
pub socket_file_path: std::ffi::OsString,
93-
pub lock_file_path: std::ffi::OsString,
9490
pub log_file_path: std::ffi::OsString,
9591
pub log_level: String,
9692
}
@@ -138,14 +134,6 @@ impl AppSecConfig {
138134
ENV_SIDECAR_APPSEC_SHARED_LIB_PATH,
139135
self.shared_lib_path.to_owned(),
140136
),
141-
(
142-
ENV_SIDECAR_APPSEC_SOCKET_FILE_PATH,
143-
self.socket_file_path.to_owned(),
144-
),
145-
(
146-
ENV_SIDECAR_APPSEC_LOCK_FILE_PATH,
147-
self.lock_file_path.to_owned(),
148-
),
149137
(
150138
ENV_SIDECAR_APPSEC_LOG_FILE_PATH,
151139
self.log_file_path.to_owned(),
@@ -245,15 +233,11 @@ impl FromEnv {
245233

246234
fn appsec_config() -> Option<AppSecConfig> {
247235
let shared_lib_path = std::env::var_os(ENV_SIDECAR_APPSEC_SHARED_LIB_PATH)?;
248-
let socket_file_path = std::env::var_os(ENV_SIDECAR_APPSEC_SOCKET_FILE_PATH)?;
249-
let lock_file_path = std::env::var_os(ENV_SIDECAR_APPSEC_LOCK_FILE_PATH)?;
250236
let log_file_path = std::env::var_os(ENV_SIDECAR_APPSEC_LOG_FILE_PATH)?;
251237
let log_level = std::env::var(ENV_SIDECAR_APPSEC_LOG_LEVEL).ok()?;
252238

253239
Some(AppSecConfig {
254240
shared_lib_path,
255-
socket_file_path,
256-
lock_file_path,
257241
log_file_path,
258242
log_level,
259243
})

0 commit comments

Comments
 (0)