Skip to content

Commit b514593

Browse files
committed
Set rasp capabilities properly
1 parent f44027c commit b514593

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

Diff for: appsec/src/helper/remote_config/listeners/engine_listener.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class engine_listener : public listener_base {
3434
[[nodiscard]] std::unordered_set<product> get_supported_products() override
3535
{
3636
return {known_products::ASM, known_products::ASM_DD,
37-
known_products::ASM_DATA, known_products::ASM_RASP_LFI, known_products::ASM_RASP_SSRF};
37+
known_products::ASM_DATA};
3838
}
3939

4040
protected:

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)