Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# codegoat
Sample repo of errors, misconfigurations, and vulnerabilities for Bridgecrew and Prisma Cloud Code Security
new change
31 changes: 31 additions & 0 deletions newfile.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
resource "aws_ecs_task_definition" "service" {
family = "service"
container_definitions = jsonencode([
{
name = "first"
image = "nginx"
cpu = 10
memory = 512
essential = true
portMappings = [
{
containerPort = 80
hostPort = 80
}
]
},
{
name = "second"
image = "python:3.9-alpine"
cpu = 10
memory = 256
essential = true
portMappings = [
{
containerPort = 443
hostPort = 443
}
]
}
])
}
4 changes: 2 additions & 2 deletions sca-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ RUN groupadd -r johnnycodev && useradd -r -s /bin/false -g johnnycodev johnnycod
WORKDIR /app
COPY . /app
RUN chown -R johnnycodev:johnnycodev /app
USER johnnycodev
CMD node index.js
USER johnnycodevsasdf
CMD node index.js
2 changes: 1 addition & 1 deletion sca-package/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
django==1.2
flask==0.6
flask==0.12.3
requests==2.26.0
3 changes: 2 additions & 1 deletion secrets/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const SEC_1 = "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"
const SEC_3 = "dsapi45202d12abdce73c004a9e0be24a21b2"
const SEC_2 = "eyJrIjoiNUwyZU7TMmRxQXNVcnR7UXB0ME4zYkhRaTk2STVhR0MiLCJuIjoidGVtcCIsImlkIjoxfQ=="
const SEC_3 = "dsapi45202d12abdce73c004a9e0be24a21b2"
const SEC_3 = "dsapi45202d12abdce73c004a9e0be24a21b2"
1 change: 1 addition & 0 deletions terraform/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
new readme change
1 change: 1 addition & 0 deletions terraform/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ resource "aws_ecs_task_definition" "service" {
}
])
}
`
1 change: 1 addition & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,5 @@ module "instance" {
resource "aws_ebs_volume" "i" {
availability_zone = "${var.region}a"
size = 40
encrypted = true
}
33 changes: 33 additions & 0 deletions terraform/s3.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
resource "aws_ecs_task_definition" "service" {
family = "service"
container_definitions = jsonencode([
{
name = "first"
image = "nginx"
cpu = 10
memory = 512
essential = true
portMappings = [
{
containerPort = 80
hostPort = 80
}
]
},
{
name = "second"
image = "python:3.9-alpine"
cpu = 10
memory = 256
essential = true
portMappings = [
{
containerPort = 443
hostPort = 443
}
]
}
])
}
`