-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
SPRING_PROFILES_ACTIVE="artemis,scheduling,prod,docker" | ||
SPRING_PROFILES_ACTIVE="artemis,scheduling,core,prod,docker" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SPRING_PROFILES_ACTIVE='prod,localvc,localci,scheduling,docker' | ||
SPRING_PROFILES_ACTIVE='prod,localvc,localci,buildagent,core,scheduling,docker' | ||
EUREKA_INSTANCE_INSTANCEID='Artemis:1' | ||
EUREKA_INSTANCE_HOSTNAME='artemis-app-node-1' | ||
SPRING_HAZELCAST_INTERFACE='artemis-app-node-1' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SPRING_PROFILES_ACTIVE='prod,localvc,localci,docker' | ||
SPRING_PROFILES_ACTIVE='prod,localvc,localci,buildagent,core,docker' | ||
EUREKA_INSTANCE_INSTANCEID='Artemis:2' | ||
EUREKA_INSTANCE_HOSTNAME='artemis-app-node-2' | ||
SPRING_HAZELCAST_INTERFACE='artemis-app-node-2' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SPRING_PROFILES_ACTIVE='prod,localvc,localci,docker' | ||
SPRING_PROFILES_ACTIVE='prod,localvc,localci,buildagent,core,docker' | ||
EUREKA_INSTANCE_INSTANCEID='Artemis:3' | ||
EUREKA_INSTANCE_HOSTNAME='artemis-app-node-3' | ||
SPRING_HAZELCAST_INTERFACE='artemis-app-node-3' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package de.tum.in.www1.artemis.config; | ||
|
||
import static de.tum.in.www1.artemis.config.Constants.PROFILE_BUILDAGENT; | ||
import static de.tum.in.www1.artemis.config.Constants.PROFILE_CORE; | ||
|
||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.context.annotation.Profile; | ||
import org.springframework.security.authentication.AuthenticationManager; | ||
import org.springframework.security.authentication.AuthenticationServiceException; | ||
|
||
@Configuration | ||
public class ApplicationConfiguration { | ||
|
||
// this prevents default authentication when the build agent is enabled without the core profile | ||
@Profile({ "!" + PROFILE_CORE, PROFILE_BUILDAGENT }) | ||
@Bean | ||
public AuthenticationManager noopAuthenticationManager() { | ||
return authentication -> { | ||
throw new AuthenticationServiceException("Authentication is disabled"); | ||
}; | ||
} | ||
} |