Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forwardport "Update to libddwaf 1.5.1" #2320

Merged
merged 31 commits into from
Oct 19, 2022
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f80e0a1
Update libddwaf to 1.5.1
lloeki Oct 5, 2022
891ffdf
Add AppSec spec rake tasks
lloeki Oct 11, 2022
7da6156
Update libddwaf in appraisal locks
lloeki Oct 11, 2022
ba1ef94
Use source for grpc and google-protobuf on Ruby preview
lloeki Oct 11, 2022
a7c03b5
Use source for nokogiri on 3.2 in appraisal
lloeki Oct 11, 2022
80220fc
Add rack-contrib to contrib appraisals
lloeki Oct 11, 2022
2b67d30
Update appraisal locks
lloeki Oct 11, 2022
23f77fd
Support verbs beyond GET in Rails test app routes
lloeki Oct 11, 2022
1f4d18a
Set appsec.event tag when span is still active
lloeki Oct 11, 2022
4d881c5
Make instrumentation gateway idempotent
lloeki Oct 11, 2022
b81054d
Make Rack and Rails parse known request bodies for AppSec analysis
lloeki Oct 11, 2022
f948cbb
Skip AppSec in a Rack context when AppSec is disabled
lloeki Oct 11, 2022
731028a
Release context, freeing backing C objects
lloeki Oct 11, 2022
35f67c4
Add AppSec integration specs
lloeki Oct 11, 2022
ed9a11f
Fix log for catchall case
lloeki Oct 11, 2022
eb0a401
Comply with linter
lloeki Oct 11, 2022
08d9b11
Run AppSec specs in CI
lloeki Oct 11, 2022
a961764
Handle old rack-contrib in specs
lloeki Oct 11, 2022
2990268
Handle old Rails in specs
lloeki Oct 11, 2022
052644c
Handle old rack-test
lloeki Oct 11, 2022
397ec9a
Remove useless reference to middleware
lloeki Oct 11, 2022
b24ac6a
Force grpc build CPU for integration test apps
lloeki Oct 14, 2022
3a5351f
Revert "Use source for grpc and google-protobuf on Ruby preview"
lloeki Oct 17, 2022
ef66af9
Simplify integration test spec requires
lloeki Oct 17, 2022
8798f66
Add disabled AppSec case for span shared examples on Rack
lloeki Oct 17, 2022
5fff719
Simplify result status being match
lloeki Oct 17, 2022
cdb04fe
Add spec comments explaining result.actions assertions
lloeki Oct 17, 2022
6be3263
Merge pull request #2306 from DataDog/update-libddwaf
lloeki Oct 17, 2022
759526d
Merge branch 'master' into forwardport/update-libddwaf
lloeki Oct 18, 2022
6b029c3
Revert "Force grpc build CPU for integration test apps"
lloeki Oct 19, 2022
4f19ab1
Add TODO for nokogiri on 3.2
lloeki Oct 19, 2022
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
Prev Previous commit
Next Next commit
Add AppSec spec rake tasks
  • Loading branch information
lloeki committed Oct 11, 2022
commit 891ffdf49e094ae65e2ce9db98c424860e195250
14 changes: 13 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ namespace :spec do
end

namespace :appsec do
task all: [:main]
task all: [:main, :rack, :rails, :sinatra]

# Datadog AppSec main specs
RSpec::Core::RakeTask.new(:main) do |t, args|
Expand All @@ -177,6 +177,18 @@ namespace :spec do
' spec/datadog/appsec/**/{auto_instrument,autoload}_spec.rb'
t.rspec_opts = args.to_a.join(' ')
end

# Datadog AppSec integrations
[
:rack,
:sinatra,
:rails,
].each do |contrib|
RSpec::Core::RakeTask.new(contrib) do |t, args|
t.pattern = "spec/datadog/appsec/contrib/#{contrib}/**/*_spec.rb"
t.rspec_opts = args.to_a.join(' ')
end
end
end

task appsec: [:'appsec:all']
Expand Down