Skip to content

Commit 97afd73

Browse files
committed
Set rasp capabilities properly
1 parent 008d6ed commit 97afd73

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Diff for: appsec/src/helper/remote_config/product.hpp

-11
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ struct known_products {
2929
static inline constexpr product ASM_DATA{std::string_view{"ASM_DATA"}};
3030
static inline constexpr product ASM_FEATURES{
3131
std::string_view{"ASM_FEATURES"}};
32-
static inline constexpr product ASM_RASP_LFI{
33-
std::string_view{"ASM_RASP_LFI"}};
34-
static inline constexpr product ASM_RASP_SSRF{
35-
std::string_view{"ASM_RASP_SSRF"}};
3632
static inline constexpr product UNKNOWN{std::string_view{"UNKOWN"}};
3733

3834
static product for_name(std::string_view name)
@@ -49,13 +45,6 @@ struct known_products {
4945
if (name == ASM_FEATURES.name()) {
5046
return ASM_FEATURES;
5147
}
52-
if (name == ASM_RASP_LFI.name()) {
53-
return ASM_RASP_LFI;
54-
}
55-
if (name == ASM_RASP_SSRF.name()) {
56-
return ASM_RASP_SSRF;
57-
}
58-
5948
return UNKNOWN;
6049
}
6150
};

Diff for: components-rs/remote_config.rs

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ pub unsafe extern "C" fn ddog_init_remote_config(
120120
RemoteConfigCapabilities::AsmCustomRules,
121121
RemoteConfigCapabilities::AsmCustomBlockingResponse,
122122
RemoteConfigCapabilities::AsmTrustedIps,
123+
RemoteConfigCapabilities::AsmRaspLfi,
124+
RemoteConfigCapabilities::AsmRaspSsrf,
123125
]
124126
.iter()
125127
.for_each(|c| DDTRACE_REMOTE_CONFIG_CAPABILITIES.push(*c));

0 commit comments

Comments
 (0)