Skip to content

Commit 92f77ce

Browse files
committed
Update POM file with new version: heroku-tst-5
1 parent a56239f commit 92f77ce

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

.github/scripts/docker-create-and-push.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ openssl rand -base64 32 | tr -d '\n' > yourkey.txt
5454
#echo "</settings>"
5555

5656
echo "Building and updating pom.xml file so we can use it in our docker"
57-
cd ../.. && mvn clean && mvn --batch-mode release:update-versions -DdevelopmentVersion=${tag}-SNAPSHOT && mvn install -DskipTests
57+
cd ../.. && mvn clean && mvn --batch-mode release:update-versions -DdevelopmentVersion=${tag}-SNAPSHOT && mvn install
5858
git add pom.xml
5959
git commit -am "Update POM file with new version: ${tag}"
6060
cd .github/scripts && git push

Dockerfile.web

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM jeroenwillemsen/wrongsecrets:heroku-tst-4-no-vault
1+
FROM jeroenwillemsen/wrongsecrets:heroku-tst-5-no-vault
22

33
ARG argBasedVersion="1.3.10"
44
ARG CANARY_URLS="http://canarytokens.com/terms/about/s7cfbdakys13246ewd8ivuvku/post.jsp,http://canarytokens.com/terms/about/y0all60b627gzp19ahqh7rl6j/post.jsp"

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</parent>
1010
<groupId>org.owasp</groupId>
1111
<artifactId>wrongsecrets</artifactId>
12-
<version>heroku-tst-4-SNAPSHOT</version>
12+
<version>heroku-tst-5-SNAPSHOT</version>
1313
<name>OWASP WrongSecrets</name>
1414
<description>Examples with how to not use secrets</description>
1515
<url>https://owasp.org/www-project-wrongsecrets/</url>

src/main/java/org/owasp/wrongsecrets/HerokuWebSecurityConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
@Configuration
1010
@EnableWebSecurity(debug = true)
11-
@Order(0)
11+
@Order(1)
1212
public class HerokuWebSecurityConfig extends WebSecurityConfigurerAdapter {
1313

1414
@Override

src/main/java/org/owasp/wrongsecrets/canaries/TokenCallbackSecurityConfiguration.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@
88

99
@Configuration
1010
@EnableWebSecurity(debug = true)
11-
@Order(1)
11+
@Order(0)
1212
public class TokenCallbackSecurityConfiguration extends WebSecurityConfigurerAdapter {
1313

1414
@Override
1515
protected void configure(HttpSecurity http) throws Exception {
16-
http.authorizeRequests().requestMatchers(r -> r.getRequestURL().toString().contains("canaries")).permitAll()
17-
.and().requestMatcher(r -> r.getRequestURL().toString().contains("canaries")).csrf().disable().httpBasic().disable().sessionManagement().disable();
16+
http.requestMatcher(r -> r.getRequestURL().toString().contains("canaries")).csrf().disable();
1817
}
1918
}

0 commit comments

Comments
 (0)