Merge branch 'fix/version-endpoint-permitall' into 'main'
fix(auth): permitAll /api/v1/version (UI polling работает до login) See merge request 2-6/2-6-4/terravault/ordinis!21
This commit is contained in:
@@ -42,6 +42,10 @@ public class SecurityConfig {
|
||||
.authorizeHttpRequests(auth -> {
|
||||
auth.requestMatchers("/actuator/**").permitAll();
|
||||
auth.requestMatchers("/error").permitAll();
|
||||
// Build-info endpoint — открыт без auth: UI polling с update-banner
|
||||
// должен работать ДО login (anonymous landing → "новая версия"
|
||||
// banner появится после Keycloak callback). См. VersionController.
|
||||
auth.requestMatchers("/api/v1/version").permitAll();
|
||||
// Swagger UI + OpenAPI spec — открыты для интеграторов (Альтум, ...).
|
||||
auth.requestMatchers(
|
||||
"/swagger-ui.html",
|
||||
|
||||
Reference in New Issue
Block a user