Skip to content

Commit 163e36a

Browse files
authored
cert-manager: initial integration (#11261)
Cert-Manager is a cloud-native tool for provisioning and maintaining certficates in an automatic manner. Cert-Manager is often used to secure ingress cluster traffic, but is at its core a more general tool to secure traffic between any cluster asset. Its users include the following companies: - JFrog: https://jfrog.com/ - URSSAF (A provider to Frances national health system): https://www.urssaf.fr/portail/home.html - Diagrid: https://www.diagrid.io/ Source: https://github.com/cert-manager/community/blob/main/USERS.md Signed-off-by: AdamKorcz <[email protected]>
1 parent 8ae6ed7 commit 163e36a

File tree

4 files changed

+81
-0
lines changed

4 files changed

+81
-0
lines changed

projects/cert-manager/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 2024 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
################################################################################
16+
17+
FROM gcr.io/oss-fuzz-base/base-builder-go
18+
RUN git clone https://github.com/cert-manager/cert-manager --depth=1
19+
COPY build.sh pki_fuzzer.go $SRC/
20+
WORKDIR $SRC/cert-manager

projects/cert-manager/build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash -eu
2+
# Copyright 2024 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
################################################################################
17+
18+
cp -r $SRC/pki_fuzzer.go $SRC/cert-manager/pkg/util/pki/
19+
20+
compile_go_fuzzer github.com/cert-manager/cert-manager/pkg/util/pki FuzzParseSubjectStringToRawDERBytes FuzzParseSubjectStringToRawDERBytes
21+
compile_go_fuzzer github.com/cert-manager/cert-manager/pkg/util/pki FuzzDecodePrivateKeyBytes FuzzDecodePrivateKeyBytes
22+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright 2024 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
16+
package pki
17+
18+
func FuzzParseSubjectStringToRawDERBytes(data []byte) int {
19+
ParseSubjectStringToRawDERBytes(string(data))
20+
return 1
21+
}
22+
23+
func FuzzDecodePrivateKeyBytes(data []byte) int {
24+
DecodePrivateKeyBytes(data)
25+
return 1
26+
}

projects/cert-manager/project.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
homepage: "https://cert-manager.io"
2+
primary_contact: "[email protected]"
3+
auto_ccs:
4+
5+
6+
vendor_ccs :
7+
8+
language: go
9+
fuzzing_engines:
10+
- libfuzzer
11+
sanitizers:
12+
- address
13+
main_repo: 'https://github.com/cert-manager/cert-manager'

0 commit comments

Comments
 (0)