Skip to content

Commit

Permalink
bypass auth
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas2bert committed Sep 25, 2024
1 parent e855e7b commit 88a9faf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.antMatchers(API_INFO).permitAll()
.antMatchers(HEALTH_CHECK_ENDPOINT).permitAll()
.antMatchers(OPEN_API, SWAGGER).permitAll() // swagger and openapi authorized
.anyRequest().authenticated()
.anyRequest().permitAll() // bypass auth for testing only
.and()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
.and()
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ osis.scality.vault.account.accessKey.durationSeconds=120
# Vault Config - Vault endpoint and admin port with super admin credentials
osis.scality.vault.endpoint=http://localhost:8600
osis.scality.vault.access-key=D4IT2AWSB588GO5J9T00
osis.scality.vault.decrypt-admin-credentials=true
osis.scality.vault.decrypt-admin-credentials=false
osis.scality.vault.admin-file-path=/vaultconf/admin-creds.json.encrypted
osis.scality.vault.master-keyfile-path=/vaultconf/credentials/keyfile
# If `decrypt-admin-credentials=false`, `secret-key` must be provided otherwise ignored
Expand Down Expand Up @@ -55,7 +55,7 @@ osis.scality.s3.capabilities-file-path=s3capabilities.json
osis.api.version=1.0.0

# Secure Config
security.require-ssl=true
security.require-ssl=false
security.jwt.enabled=false
security.jwt.access-token-expiration-time=15
security.jwt.refresh_token_expiration_time=262800
Expand All @@ -71,7 +71,7 @@ server.ssl.key-store=file:/app/lib/osis.p12
server.ssl.key-store-password=scality
server.ssl.key-store-type=PKCS12
server.ssl.key-alias=osis.dev.eng.scality.com
server.ssl.enabled=true
server.ssl.enabled=false

#Tomcat config
server.tomcat.basedir=./tomcat
Expand Down

0 comments on commit 88a9faf

Please sign in to comment.