libddwaf 1.0.12.0.0.beta1 → 1.0.13.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/package.yml +70 -3
- data/.github/workflows/test.yml +24 -0
- data/lib/datadog/security/waf/version.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02ee495cf1f3bca929d2c0a3afb73a9bfef8cf8115524bad227ce46436bef622
|
4
|
+
data.tar.gz: f7dc161b2893d6f3734305b88ffc53c5932686231619d27591e5b6efbd6f1cb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88ec57821ecd93d212bc5445a264532905e5959be6156a67daa949fdf51499d86bb5aeffa9130f88edfb2135823b5346cd5368d843490304d1c46968df7a5a87
|
7
|
+
data.tar.gz: 83e4017745d6b85f3a2b6a71d915cd897b893a4a1dff261b8c86a9ccab2446c59767fa96487e7820e7e6e6d7975e472033f4eb543e5b5bf832897017999b3721
|
@@ -3,7 +3,34 @@ on:
|
|
3
3
|
- push
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
package:
|
6
|
+
package-ruby:
|
7
|
+
strategy:
|
8
|
+
fail-fast: false
|
9
|
+
matrix:
|
10
|
+
include:
|
11
|
+
- os: ubuntu-20.04
|
12
|
+
cpu: x86_64
|
13
|
+
platform: ruby
|
14
|
+
name: Build package (${{ matrix.platform }})
|
15
|
+
runs-on: ${{ matrix.os }}
|
16
|
+
steps:
|
17
|
+
- name: Checkout
|
18
|
+
uses: actions/checkout@v2
|
19
|
+
- name: Install Linux build tools
|
20
|
+
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
|
21
|
+
run: sudo apt-get install -y ruby ruby-bundler
|
22
|
+
- name: Bundle
|
23
|
+
run: |
|
24
|
+
bundle install
|
25
|
+
- name: Build package
|
26
|
+
run: |
|
27
|
+
bundle exec rake build
|
28
|
+
- name: Upload gem
|
29
|
+
uses: actions/upload-artifact@v2
|
30
|
+
with:
|
31
|
+
name: libddwaf-${{ matrix.platform }}-${{ github.run_id }}-${{ github.sha }}
|
32
|
+
path: pkg
|
33
|
+
package-binary:
|
7
34
|
strategy:
|
8
35
|
fail-fast: false
|
9
36
|
matrix:
|
@@ -45,8 +72,48 @@ jobs:
|
|
45
72
|
with:
|
46
73
|
name: libddwaf-${{ matrix.platform }}-${{ github.run_id }}-${{ github.sha }}
|
47
74
|
path: pkg
|
75
|
+
test-ruby:
|
76
|
+
needs: package-ruby
|
77
|
+
strategy:
|
78
|
+
fail-fast: false
|
79
|
+
matrix:
|
80
|
+
include:
|
81
|
+
- os: ubuntu-20.04
|
82
|
+
cpu: x86_64
|
83
|
+
platform: ruby
|
84
|
+
image: ruby:2.6
|
85
|
+
qemu: amd64
|
86
|
+
libc: gnu
|
87
|
+
name: Test package (${{ matrix.platform }}-${{ matrix.libc }})
|
88
|
+
runs-on: ${{ matrix.os }}
|
89
|
+
steps:
|
90
|
+
- name: Enable ${{ matrix.qemu }} platform
|
91
|
+
id: qemu
|
92
|
+
if: ${{ matrix.cpu != 'amd64' }}
|
93
|
+
run: |
|
94
|
+
docker run --privileged --rm tonistiigi/binfmt:latest --install ${{ matrix.qemu }} | tee platforms.json
|
95
|
+
echo "::set-output name=platforms::$(cat platforms.json)"
|
96
|
+
- name: Start container
|
97
|
+
id: container
|
98
|
+
run: |
|
99
|
+
echo ${{ matrix.image }} > container_image
|
100
|
+
docker run --rm -d -v "${PWD}":"${PWD}" -w "${PWD}" --platform linux/${{ matrix.qemu }} ${{ matrix.image }} /bin/sleep 64d | tee container_id
|
101
|
+
docker exec -w "${PWD}" $(cat container_id) uname -a
|
102
|
+
echo "::set-output name=id::$(cat container_id)"
|
103
|
+
- uses: actions/download-artifact@v2
|
104
|
+
with:
|
105
|
+
name: libddwaf-${{ matrix.platform }}-${{ github.run_id }}-${{ github.sha }}
|
106
|
+
path: pkg
|
107
|
+
- name: List artifact files
|
108
|
+
run: find .
|
109
|
+
working-directory: pkg
|
110
|
+
- name: Install gem
|
111
|
+
run: docker exec -w "${PWD}" ${{ steps.container.outputs.id }} gem install --verbose pkg/*.gem
|
112
|
+
- name: Run smoke test
|
113
|
+
run: |
|
114
|
+
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ruby -e 'begin require "libddwaf"; rescue LoadError => e; puts e.message; else fail "loaded when it should not"; end'
|
48
115
|
test-linux:
|
49
|
-
needs: package
|
116
|
+
needs: package-binary
|
50
117
|
strategy:
|
51
118
|
fail-fast: false
|
52
119
|
matrix:
|
@@ -107,7 +174,7 @@ jobs:
|
|
107
174
|
run: |
|
108
175
|
docker exec -w "${PWD}" ${{ steps.container.outputs.id }} ruby -r 'libddwaf' -e 'v = Datadog::Security::WAF::LibDDWAF::Version.new; Datadog::Security::WAF::LibDDWAF.ddwaf_get_version(v); p [v[:major], v[:minor], v[:patch]]'
|
109
176
|
test-darwin:
|
110
|
-
needs: package
|
177
|
+
needs: package-binary
|
111
178
|
strategy:
|
112
179
|
fail-fast: false
|
113
180
|
matrix:
|
data/.github/workflows/test.yml
CHANGED
@@ -8,6 +8,18 @@ jobs:
|
|
8
8
|
fail-fast: false
|
9
9
|
matrix:
|
10
10
|
include:
|
11
|
+
- os: ubuntu-20.04
|
12
|
+
cpu: x86_64
|
13
|
+
platform: x86_64-linux
|
14
|
+
image: ruby:3.1-rc
|
15
|
+
qemu: amd64
|
16
|
+
libc: gnu
|
17
|
+
- os: ubuntu-20.04
|
18
|
+
cpu: aarch64
|
19
|
+
platform: aarch64-linux
|
20
|
+
image: ruby:3.1-rc
|
21
|
+
qemu: arm64
|
22
|
+
libc: gnu
|
11
23
|
- os: ubuntu-20.04
|
12
24
|
cpu: x86_64
|
13
25
|
platform: x86_64-linux
|
@@ -74,6 +86,18 @@ jobs:
|
|
74
86
|
image: ruby:2.1
|
75
87
|
qemu: amd64
|
76
88
|
libc: gnu
|
89
|
+
- os: ubuntu-20.04
|
90
|
+
cpu: x86_64
|
91
|
+
platform: x86_64-linux
|
92
|
+
image: ruby:3.1-rc-alpine
|
93
|
+
qemu: amd64
|
94
|
+
libc: musl
|
95
|
+
- os: ubuntu-20.04
|
96
|
+
cpu: aarch64
|
97
|
+
platform: aarch64-linux
|
98
|
+
image: ruby:3.1-rc-alpine
|
99
|
+
qemu: arm64
|
100
|
+
libc: musl
|
77
101
|
- os: ubuntu-20.04
|
78
102
|
cpu: x86_64
|
79
103
|
platform: x86_64-linux
|
@@ -2,10 +2,10 @@ module Datadog
|
|
2
2
|
module Security
|
3
3
|
module WAF
|
4
4
|
module VERSION
|
5
|
-
BASE_STRING = '1.0.
|
5
|
+
BASE_STRING = '1.0.13'
|
6
6
|
STRING = "#{BASE_STRING}.0.0.beta1"
|
7
7
|
MINIMUM_RUBY_VERSION = '2.1'
|
8
|
-
MAXIMUM_RUBY_VERSION = '3.
|
8
|
+
MAXIMUM_RUBY_VERSION = '3.2'
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libddwaf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.13.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Datadog, Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
- BSD-3-Clause
|
53
53
|
metadata:
|
54
54
|
allowed_push_host: https://rubygems.org
|
55
|
-
post_install_message:
|
55
|
+
post_install_message:
|
56
56
|
rdoc_options: []
|
57
57
|
require_paths:
|
58
58
|
- lib
|
@@ -63,15 +63,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '2.1'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '3.
|
66
|
+
version: '3.2'
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: 2.0.0
|
72
72
|
requirements: []
|
73
|
-
rubygems_version: 3.2
|
74
|
-
signing_key:
|
73
|
+
rubygems_version: 3.1.2
|
74
|
+
signing_key:
|
75
75
|
specification_version: 4
|
76
76
|
summary: Datadog WAF
|
77
77
|
test_files: []
|