Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions lib/datadog/appsec/remote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class << self
CAP_ASM_CUSTOM_RULES = 1 << 8
CAP_ASM_CUSTOM_BLOCKING_RESPONSE = 1 << 9
CAP_ASM_TRUSTED_IPS = 1 << 10
CAP_ASM_PROCESSOR_OVERRIDES = 1 << 16
CAP_ASM_CUSTOM_DATA_SCANNERS = 1 << 17
CAP_ASM_RASP_SSRF = 1 << 23
CAP_ASM_RASP_SQLI = 1 << 21
CAP_ASM_AUTO_USER_INSTRUM_MODE = 1 << 31
Expand All @@ -43,6 +45,8 @@ class << self
CAP_ASM_CUSTOM_RULES,
CAP_ASM_CUSTOM_BLOCKING_RESPONSE,
CAP_ASM_TRUSTED_IPS,
CAP_ASM_PROCESSOR_OVERRIDES,
CAP_ASM_CUSTOM_DATA_SCANNERS,
CAP_ASM_RASP_SSRF,
CAP_ASM_RASP_SQLI,
CAP_ASM_AUTO_USER_INSTRUM_MODE,
Expand Down
4 changes: 4 additions & 0 deletions sig/datadog/appsec/remote.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ module Datadog

CAP_ASM_TRUSTED_IPS: ::Integer

CAP_ASM_PROCESSOR_OVERRIDES: ::Integer

CAP_ASM_CUSTOM_DATA_SCANNERS: ::Integer

CAP_ASM_RASP_SSRF: ::Integer

CAP_ASM_RASP_SQLI: ::Integer
Expand Down
2 changes: 1 addition & 1 deletion spec/datadog/appsec/remote_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

it 'returns capabilities' do
expect(described_class.capabilities).to eq([
4, 128, 16, 32, 64, 8, 256, 512, 1024, 8_388_608, 2_097_152, 2_147_483_648,
4, 128, 16, 32, 64, 8, 256, 512, 1024, 65_536, 131_072, 8_388_608, 2_097_152, 2_147_483_648,
4_294_967_296, 8_589_934_592, 17_179_869_184, 34_359_738_368, 8_796_093_022_208
])
end
Expand Down