Commit c7a85260 authored by Siiri Tann's avatar Siiri Tann
Browse files

Merge branch 'develop' into 'master'

Release: merge 'develop' into 'master' created by Siiri Tann

See merge request teis/files-service!72
parents 53825b79 1278923f
......@@ -9,7 +9,6 @@ variables:
USE_S3: "true"
BUILD_SERVICE_PROJECT_NAME: "files-service"
BUILD_SERVICE_LIB_PROJECT_NAME: "files-service-lib"
USE_METRICS: "true"
include:
- project: "teis/dev-ops"
......
# Changelog
## [1.22.0] - 2021-12-16
* TEIS-2599: security and metrics update
* TEIS-2243: added drivers violation to drivers inspection bucket object types
## [1.21.0] - 2021-09-27
* TEIS-2241: refactored method for getting file reference by file id and object id
......
theGroup=ee.sm.ti.teis
theVersion=1.21.0
commonsVersion=1.27.0
commonApiGatewayVersion=1.27.0
pluginVersion=1.3.0
schedulerVersion=1.15.0
theVersion=1.22.0
commonsVersion=1.28.0
commonApiGatewayVersion=1.28.0
pluginVersion=1.4.1
schedulerVersion=1.17.0
......@@ -22,7 +22,6 @@ dependencies {
implementation "ee.sm.ti.teis:bpm-lib:${commonsVersion}"
implementation 'net.coobird:thumbnailator:0.4.12'
implementation "io.micrometer:micrometer-registry-prometheus"
integTestImplementation "ee.sm.ti.teis:files-client-lib:${commonsVersion}"
integTestImplementation "ee.sm.ti.teis:scheduler-service-lib:${schedulerVersion}"
......
package ee.sm.ti.teis.file.config;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Override
public void configure(HttpSecurity security) throws Exception {
security
.csrf().disable()
.authorizeRequests()
// Permit Camunda resources
.antMatchers("/app").permitAll()
.antMatchers("/api").permitAll()
.antMatchers("/actuator").permitAll()
.antMatchers("/applications/prometheus").permitAll()
.and().formLogin().disable();
}
}
......@@ -94,7 +94,7 @@ teis:
object-types: RISK_FACTOR
- bucket: teis-driversinspection
thumbnail-bucket: teis-driversinspection-thumbnail
object-types: DRIVERS_INSPECTION
object-types: DRIVERS_INSPECTION, DRIVERS_VIOLATION
- bucket: teis-accidentcase
object-types: ACCIDENT_CASE
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment