-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from asteurer/main
renaming some things
- Loading branch information
Showing
9 changed files
with
35 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM golang | ||
|
||
COPY main.go go.mod go.sum ./ | ||
|
||
RUN go mod download && \ | ||
go build -o main main.go | ||
|
||
ENTRYPOINT [ "./main" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
apiVersion: v2 | ||
name: sql-injection | ||
description: A chart that installs a PostgreSQL database with a database client has SQL injection vulnerabilities. | ||
description: A chart that deploys a PostgreSQL database with a database client that has SQL injection vulnerabilities. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.0 | ||
version: 0.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: postgres-client | ||
name: client-sql-injection | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: postgres-client | ||
app: client-sql-injection | ||
template: | ||
metadata: | ||
labels: | ||
app: postgres-client | ||
app: client-sql-injection | ||
spec: | ||
containers: | ||
- name: postgres-client | ||
- name: client-sql-injection | ||
image: ghcr.io/kube-hack/sql-injection:latest | ||
imagePullPolicy: Always | ||
ports: | ||
- containerPort: 8080 | ||
envFrom: | ||
- configMapRef: | ||
name: postgres-secret | ||
name: creds-db-sql-injection | ||
|
||
--- | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: postgres-client | ||
name: client-sql-injection | ||
labels: | ||
app: postgres-client | ||
app: client-sql-injection | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: 3000 | ||
targetPort: 8080 | ||
selector: | ||
app: postgres-client | ||
app: client-sql-injection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/asteurer/kh-sql-injection | ||
module sql-injection | ||
|
||
go 1.22.4 | ||
|
||
|