Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump junit-jupiter-api from 5.8.2 to 5.9.0 #692

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e94da70
Reskin for the elastic CTF
jkakavas May 4, 2022
3b2a5f0
Merge pull request #23 from elastic/dev
ismisepaul May 4, 2022
47b882f
Adding client validation for email
ismisepaul May 4, 2022
c17ef58
removing capturing groups and making the regex case insensitive
ismisepaul May 5, 2022
0530948
Merge pull request #24 from elastic/check_email
ismisepaul May 5, 2022
3271bbd
Changing how the login and registration pages look to improve UX.
ismisepaul May 6, 2022
8da976d
Merge pull request #25 from elastic/login_registration_ux
ismisepaul May 6, 2022
5ffa44b
Adding a breakdown of points (#26)
ismisepaul May 6, 2022
10e6df2
Adding CTF rules and changing achievements based on feedback (#28)
ismisepaul May 12, 2022
6874f3c
Grabbing upstream changes (#29)
ismisepaul May 16, 2022
ab80e40
Merge branch 'OWASP:dev' into dev
ismisepaul May 16, 2022
b7d2e3e
Updating from dev (#30)
ismisepaul May 16, 2022
bbd9ad3
adding disclaimer to CTF rules and registration page
ismisepaul May 17, 2022
a1d0eec
ability to set mongo bind address and docker mapping
ismisepaul May 23, 2022
8f4e6c1
hunting down null pointer caused by spring-data-mongodb https://jira.…
ismisepaul May 23, 2022
8e7fd94
fixing lint issue
ismisepaul May 23, 2022
17e9b11
Fixing issue where you cannot see the result key for XXE Challenge 1 …
ismisepaul May 26, 2022
cebf7c7
Merge branch 'elastic-gah-edition' into dev
ismisepaul May 26, 2022
14e5a37
Bump junit-jupiter-api from 5.8.2 to 5.9.0
dependabot[bot] Aug 1, 2022
8eca506
Add a GitHub workflow for Build/Pushing the Dev container images
SpencerLN Aug 22, 2022
8cf41a0
Don't create database.properties file in Docker image
SpencerLN Aug 22, 2022
771d9c3
Merge pull request #48 from elastic/add-github-workflow-dev
SpencerLN Aug 23, 2022
99e18bf
Add id-token permissions to enable federated workload identity, use G…
SpencerLN Aug 23, 2022
19135fe
Merge pull request #49 from elastic/add-github-workflow-dev
SpencerLN Aug 23, 2022
6e4441e
Add id-token "write"
SpencerLN Aug 23, 2022
ea2d25d
Merge pull request #50 from elastic/add-github-workflow-dev
SpencerLN Aug 23, 2022
d7fe2ed
Add java setup and maven steps
SpencerLN Aug 23, 2022
da4bb95
Merge pull request #51 from elastic/add-github-workflow-dev
SpencerLN Aug 23, 2022
aef5aa7
Create tmate session for debuggin
SpencerLN Aug 23, 2022
656b4e8
Merge pull request #52 from elastic/add-github-workflow-dev
SpencerLN Aug 23, 2022
96773e2
Run tmate when previous steps fail
SpencerLN Aug 23, 2022
276961f
Merge pull request #53 from elastic/add-github-workflow-dev
SpencerLN Aug 23, 2022
8b780e1
Comment out tmate debugging code
SpencerLN Aug 23, 2022
31717d7
Merge pull request #57 from elastic/add-github-workflow-dev
SpencerLN Aug 23, 2022
82aeb17
Bump docker-maven-plugin from 0.40.1 to 0.40.2
dependabot[bot] Aug 1, 2022
11cef0a
Merge branch 'dev' into dev
ismisepaul Aug 24, 2022
b6c2cb2
Merge branch 'dev' into dependabot/maven/org.junit.jupiter-junit-jupi…
ismisepaul Sep 12, 2022
78ca8fc
Merge branch 'dev' into dependabot/maven/org.junit.jupiter-junit-jupi…
ismisepaul Nov 17, 2022
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
63 changes: 63 additions & 0 deletions .github/workflows/build-and-publish-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: build-and-publish-dev
on:
push:
branches:
- "dev"

permissions:
contents: read
id-token: write

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- id: "auth"
name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@v0"
with:
token_format: "access_token"
workload_identity_provider: ${{secrets.WORKLOAD_IDENTITY_PROVIDER_DEV}}
service_account: ${{secrets.SERVICE_ACCOUNT_ID_DEV}}

- name: Login to GCR
uses: docker/login-action@v2
with:
registry: us-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.auth.outputs.access_token }}

- name: Set environment variables
uses: c-py/action-dotenv-to-setenv@v2
with:
env-file: .env

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build Maven with Docker Profile
run: mvn clean install -Pdocker -DskipTests -B
- name: Build and push
uses: docker/bake-action@master
with:
push: true
env:
IMAGE_TOMCAT: us-docker.pkg.dev/elastic-infosec-dev/security-shepherd/security-shepherd:latest
IMAGE_MARIADB: us-docker.pkg.dev/elastic-infosec-dev/security-shepherd/security-shepherd_mariadb:latest
IMAGE_MONGO: us-docker.pkg.dev/elastic-infosec-dev/security-shepherd/security-shepherd_mongo:latest
CONTAINER_TOMCAT: secshep-tomcat
CONTAINER_MARIADB: secshep-mariadb
CONTAINER_MONGO: secshep-mongo
MONGO_BIND_ADDRESS: "0.0.0.0"
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
# if: ${{ failure() }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ COPY target/docker/tomcat/$TLS_KEYSTORE_FILE $TLS_KEYSTORE_FILE
COPY docker/tomcat/serverxml.patch serverxml.patch
COPY docker/tomcat/webxml.patch webxml.patch

RUN printf "databaseConnectionURL=$MARIADB_URI/\nDriverType=$DB_DRIVER\ndatabaseSchema=$DB_SCHEMA\ndatabaseUsername=$DB_USER\ndatabasePassword=$DB_PASS\ndatabaseOptions=useUnicode=true&character_set_server=utf8mb4\n" >> database.properties
# RUN printf "databaseConnectionURL=$MARIADB_URI/\nDriverType=$DB_DRIVER\ndatabaseSchema=$DB_SCHEMA\ndatabaseUsername=$DB_USER\ndatabasePassword=$DB_PASS\ndatabaseOptions=useUnicode=true&character_set_server=utf8mb4\n" >> database.properties
RUN printf "connectionHost=$MONGO_HOST\nconnectionPort=$MONGO_PORT\ndatabaseName=shepherdGames\nconnectTimeout=$MONGO_CONN_TIMEOUT\nsocketTimeout=$MONGO_SOCK_TIMEOUT\nserverSelectionTimeout=$MONGO_SVR_TIMEOUT" >> mongo.properties
RUN sed -i 's/keystoreFile="conf\/TLS_KEYSTORE_FILE" keystorePass="TLS_KEYSTORE_PASS" keyAlias="ALIAS">/keystoreFile="conf\/'"$TLS_KEYSTORE_FILE"'" keystorePass="'"$TLS_KEYSTORE_PASS"'" keyAlias="'"$ALIAS"'">/g' serverxml.patch &&\
sed -i 's/redirectPort="HTTPS_PORT" \/>/redirectPort="'"$HTTPS_PORT"'" \/>/g' serverxml.patch
Expand All @@ -35,7 +35,7 @@ COPY --from=builder /workdir/ROOT.war /usr/local/tomcat/webapps/
COPY --from=builder /workdir/$TLS_KEYSTORE_FILE /usr/local/tomcat/conf/
COPY --from=builder /workdir/serverxml.patch /usr/local/tomcat/conf/
COPY --from=builder /workdir/webxml.patch /usr/local/tomcat/conf/
COPY --from=builder /workdir/database.properties /usr/local/tomcat/conf/
# COPY --from=builder /workdir/database.properties /usr/local/tomcat/conf/
COPY --from=builder /workdir/mongo.properties /usr/local/tomcat/conf/

ENV RUN_USER tomcat
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.40.1</version>
<version>0.40.2</version>
<executions>
<execution>
<id>start</id>
Expand Down
Binary file added src/main/webapp/css/images/grassTile-elastic.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/webapp/css/images/resized-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 5 additions & 6 deletions src/main/webapp/css/lessonCss/theCss.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ p, ul, ol {
}

a {
color: #9B1AC8;
color: #FF957D;
word-wrap: break-word;
}

Expand All @@ -49,7 +49,6 @@ b {

a:hover {
text-decoration: none;
color: #E6B715;
}

td {
Expand All @@ -70,7 +69,7 @@ td {

#header h1, #header p {
margin: 0;
color: #A878EF;
color: #FA744E;
}

#header h1 {
Expand All @@ -83,7 +82,7 @@ td {
}

#header a {
color: #A878EF;
color: #FA744E;
text-decoration: none;
}

Expand Down Expand Up @@ -131,7 +130,7 @@ td {
.title {
margin: 0;
padding-bottom: 5px;
border-bottom: 2px solid #A878EF;
border-bottom: 2px solid #FA744E;
}

#sidebar {
Expand Down Expand Up @@ -196,4 +195,4 @@ td {
word-wrap: break-word;
z-index: 1000000;
-webkit-font-smoothing: subpixel-antialiased;
}
}
38 changes: 17 additions & 21 deletions src/main/webapp/css/theCss.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,11 @@ p, ul, ol {
}

a {
color: #9B1AC8;
color: #FF957D;
}

a:hover {
text-decoration: none;
color: #E6B715;
}

#wrapper {
Expand All @@ -54,14 +53,14 @@ a:hover {

#header {
width: 757px;
height: 240px;
height: 340px;
margin: 0 auto;
background: url(images/shepherd_and_sheep_v2.png) no-repeat right top;
}

#header h1, #header p {
margin: 0;
color: #A878EF;
color: #FA744E;
}

#header h1 {
Expand All @@ -74,7 +73,7 @@ a:hover {
}

#header a {
color: #A878EF;
color: #FA744E;
text-decoration: none;
}

Expand Down Expand Up @@ -116,7 +115,7 @@ a:hover {
.title {
margin: 0;
padding-bottom: 5px;
border-bottom: 2px solid #A878EF;
border-bottom: 2px solid #FA744E;
}

#sidebar {
Expand Down Expand Up @@ -196,30 +195,27 @@ a:hover {

.menuButton {
display: block;
border-bottom: 3px solid #A878EF;
background: #D4D4D4;
background: #0077CC;
padding: 5px 5px;
border-radius: 5px;
color: black;
font-size: 1.5em;
color: white;
text-align: center;
text-decoration: none;
vertical-align: middle;
margin-bottom: 5px;
}

.menuButton:hover {
border-top-color: #CC99FF;
background: #BFBFBF;
background: #005A9E;
}

.menuButton:active {
border-top-color: #8660BF;
background: #8660BF;
border-top-color: #005A9E;
background: #005A9E;
}

.scoreBar {
background-color: #965BED;
background-color: #FA744E;
height: 30px;
position: relative;
font-size: 25px;
Expand All @@ -234,7 +230,7 @@ a:hover {
}

.scoreBar:hover {
background-color: #AC7DF2;
background-color: #F990C6;
height: 30px;
position: relative;
font-size: 25px;
Expand Down Expand Up @@ -332,9 +328,9 @@ a:hover {

.informationBox {
display: block; margin 0;
border-color: #A878EF;
border-color: #FA744E;
border-style: dashed;
background-color: #D4D4D4;
background-color: #E6EbF2;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 5px;
Expand All @@ -345,9 +341,9 @@ a:hover {
.cheatBox {
float: right; margin 0;
width: 685px;
border-color: #A878EF;
border-color: #FA744E;
border-style: dashed;
background-color: #D4D4D4;
background-color: #E6EBF2;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 5px;
Expand Down Expand Up @@ -498,4 +494,4 @@ a:hover {
width: 100%;
margin-top: 0;
}
}
}
3 changes: 1 addition & 2 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if (request.getSession() != null)
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>OWASP Security Shepherd</title>
<title>Elastic CTF - Powered by OWASP Security Shepherd</title>

<!--
<fmt:message key="generic.text.commentMessage.1" />
Expand Down Expand Up @@ -90,7 +90,6 @@ if (request.getSession() != null)
<div id="wrapper">
<jsp:include page="translation-select.jsp" />
<div id="header">
<h1>Security Shepherd</h1>
<div style="position: absolute; top: 12px; right: 130px;">
<p>
<strong><%= userName %>&nbsp;&#x7c;&nbsp;<a
Expand Down
Loading