Commit eced86eb authored by cdanger's avatar cdanger
Browse files

Merge branch 'release/4.4.0'

parents 12924a2e df1f4d53
# Change log
All notable changes to this project are documented in this file following the [Keep a CHANGELOG](http://keepachangelog.com) conventions.
## 4.4.0
### Added
- XACML 3.0: Support for new XACML 3.0 standard string functions: type-from-string and string-from-type where type can be any XACML datatype (boolean, integer, double, time, date, etc.), string-starts-with, string-ends-with, anyURI-ends-with, anyURI-starts-with, string-contains, anyURI-contains, string-substring, anyURI-substring.
- XACML 3.0: Support new xacml 3.0 standard higher-order bag functions: any-of, all-of, any-of-any, map.
- XACML 3.0: Suppport for new XACML 3.0 standard date/time functions: dateTime-add-dayTimeDuration, dateTime-add-yearMonthDuration, dateTime-subtract-dayTimeDuration, dateTime-subtract-yearMonthDuration, date-add-yearMonthDuration, date-subtract-yearMonthDuration, dayTimeDuration-one-and-only, dayTimeDuration-bag-size, dayTimeDuration-is-in, dayTimeDuration-bag, yearMonthDuration-one-and-only, yearMonthDuration-bag-size.
- REST API: Enable/Disable logging of API requests and responses with access info (timestamp, source IP address, requested URL path, requested method, message body...) for audit, debugging, troubleshooting purposes
## 4.3.0
### Added
......
......@@ -3,7 +3,7 @@
<parent>
<groupId>org.ow2.authzforce</groupId>
<artifactId>authzforce-ce-server</artifactId>
<version>4.3.0</version>
<version>4.4.0</version>
<relativePath>..</relativePath>
</parent>
<artifactId>authzforce-ce-server-dist</artifactId>
......
......@@ -30,35 +30,49 @@
<MaxFileSize>100KB</MaxFileSize>
</triggeringPolicy>
</appender>
<appender name="access" class="ch.qos.logback.core.rolling.RollingFileAppender">
<File>${catalina.base}/logs/authzforce-ce/access.log</File>
<encoder>
<pattern>%date{ISO8601}|%msg|%n</pattern>
</encoder>
<rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
<maxIndex>1</maxIndex>
<FileNamePattern>${catalina.base}/logs/authzforce-ce/access.log.%i</FileNamePattern>
</rollingPolicy>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>100KB</MaxFileSize>
</triggeringPolicy>
</appender>
<!-- Enable 'access' appender only if you need application-level access logging -->
<!-- <appender name="access" class="ch.qos.logback.core.rolling.RollingFileAppender"> -->
<!-- <File>${catalina.base}/logs/authzforce-ce/access.log</File> -->
<!-- <encoder> -->
<!-- <pattern>%date{ISO8601}|%msg|%n</pattern> -->
<!-- </encoder> -->
<!-- <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> -->
<!-- <maxIndex>1</maxIndex> -->
<!-- <FileNamePattern>${catalina.base}/logs/authzforce-ce/access.log.%i</FileNamePattern> -->
<!-- </rollingPolicy> -->
<!-- <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> -->
<!-- <MaxFileSize>100KB</MaxFileSize> -->
<!-- </triggeringPolicy> -->
<!-- </appender> -->
<!--
<appender name="accessAsync" class="ch.qos.logback.classic.AsyncAppender">
<appender-ref ref="access" />
</appender>
-->
<!-- For access logging, see http://blog.xebia.fr/2013/10/10/logs-daudit-pour-les-services-rest/ -->
<logger name="access" additivity="false" level="INFO">
<!-- Use "accessAsync" appender for better performance (asynchronous logging) -->
<appender-ref ref="access" />
</logger>
<!--
Dumping HTTP requests and response with their headers for access logging
More info: http://blog.xebia.fr/2013/10/10/logs-daudit-pour-les-services-rest/
Use "accessAsync" appender for better performance (asynchronous logging)
-->
<!-- <logger name="RequestLoggerFilter.request" level="DEBUG" additivity="false"> -->
<!-- <appender-ref ref="access"/> -->
<!-- </logger> -->
<!-- <logger name="RequestLoggerFilter.response" level="DEBUG" additivity="false"> -->
<!-- <appender-ref ref="access"/> -->
<!-- </logger> -->
<!-- <logger name="RequestLoggerFilter.headers" level="INFO" additivity="false"> -->
<!-- <appender-ref ref="access"/> -->
<!-- </logger> -->
<logger name="com.sun.xacml" additivity="false" level="WARN">
<appender-ref ref="error" />
</logger>
<logger name="org.ow2.authzforce" additivity="false" level="WARN">
<appender-ref ref="error" />
</logger>
<!-- HTTP/JAX-RS/SOAP request/response debugging -->
<!-- For logging request/response to/from webapp, only logger "org.apache.cxf" in level INFO is required,
and you must add CXF org.apache.cxf.interceptor.LoggingInInterceptor/LoggingOutInterceptor to JAX-RS
......
......@@ -8,7 +8,7 @@
</parent>
<artifactId>authzforce-ce-server</artifactId>
<!-- FIWARE Versioning -->
<version>4.3.0</version>
<version>4.4.0</version>
<packaging>pom</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<description>AuthZForce CE Server</description>
......
......@@ -3,7 +3,7 @@
<parent>
<groupId>org.ow2.authzforce</groupId>
<artifactId>authzforce-ce-server</artifactId>
<version>4.3.0</version>
<version>4.4.0</version>
<relativePath>..</relativePath>
</parent>
<artifactId>authzforce-ce-server-rest-service</artifactId>
......
......@@ -3,7 +3,7 @@
<parent>
<groupId>org.ow2.authzforce</groupId>
<artifactId>authzforce-ce-server</artifactId>
<version>4.3.0</version>
<version>4.4.0</version>
<relativePath>..</relativePath>
</parent>
<artifactId>authzforce-ce-server-webapp</artifactId>
......@@ -50,6 +50,11 @@
<groupId>org.logback-extensions</groupId>
<artifactId>logback-ext-spring</artifactId>
</dependency>
<dependency>
<groupId>fr.xebia.extras</groupId>
<artifactId>xebia-logfilter-extras</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>${project.parent.artifactId}-rest-service</artifactId>
......
......@@ -62,6 +62,14 @@
<!-- <description>ServletContextListener that shuts down Ehcache CacheManager. Use this to shutdown Ehcache automatically when the web application is shutdown.</description> -->
<!-- <listener-class>net.sf.ehcache.constructs.web.ShutdownListener</listener-class> -->
<!-- </listener> -->
<!-- <filter> -->
<!-- <filter-name>requestLoggerFilter</filter-name> -->
<!-- <filter-class>fr.xebia.extras.filters.logfilters.RequestLoggerFilter</filter-class> -->
<!-- <init-param> -->
<!-- <param-name>maxDumpSizeInKB</param-name> -->
<!-- <param-value>500</param-value> -->
<!-- </init-param> -->
<!-- </filter> -->
<filter>
<description>Filter hiding certain exceptions, internal server errors in particular</description>
<filter-name>exceptionFilter</filter-name>
......@@ -76,6 +84,10 @@
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<!-- <filter-mapping> -->
<!-- <filter-name>requestLoggerFilter</filter-name> -->
<!-- <servlet-name>CXFServlet</servlet-name> -->
<!-- </filter-mapping> -->
<filter-mapping>
<filter-name>exceptionFilter</filter-name>
<servlet-name>CXFServlet</servlet-name>
......
Markdown is supported
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