A demo of Red Hat Advanced Cluster Security
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

57 lines
1.1 KiB

kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: vulnerable-log4j
namespace: vulnerable-cicd
spec:
output:
to:
kind: ImageStreamTag
name: 'vulnerable-log4j:latest'
strategy:
type: Source
sourceStrategy:
from:
kind: ImageStreamTag
namespace: openshift
name: 'java:11'
source:
type: Git
git:
uri: 'https://github.com/nmasse-itix/demo-rhacs.git'
ref: main
contextDir: src
triggers:
- type: ImageChange
imageChange: {}
- type: ConfigChange
runPolicy: Serial
---
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: exploitkit-log4j
namespace: vulnerable-cicd
spec:
output:
to:
kind: ImageStreamTag
name: 'exploitkit-log4j:latest'
strategy:
type: Docker
dockerStrategy:
from:
kind: ImageStreamTag
namespace: openshift
name: 'java:11'
source:
type: Git
git:
uri: 'https://github.com/nmasse-itix/demo-rhacs.git'
ref: main
contextDir: exploit/image
triggers:
- type: ImageChange
imageChange: {}
- type: ConfigChange
runPolicy: Serial