Skip to content

@mkjsix mkjsix released this Jun 13, 2019

Release 3.10.1

Set MongoDB "config" database as reserved resource, so that is not exposed via RESTHeart.

Ref issue #347

Assets 5

@mkjsix mkjsix released this Apr 27, 2019

Release 3.10.0

This release fixes issue #345 "If you were to put a wrong/typo name for a transformer (phase = REQUEST), you cant use the PATCH request on a collection to unset it". Now if a transformer or checker fails (for instance, if its name contains a typo and cannot be found in configuration) the request is executed, a warn is added to the response and the error is logged. This way this issue can be fixed PATCHing the rts metadata.

Then we changed the Dockerfile, moving to gcr.io/distroless/java:8 as the new base for our RESTHeart Docker image. Distroless images combines the small size of an Alpine distribution with a minimal security attack surface.

pioneered by Google. With this technique, the footprint of the image is reduced to the application, its resources and language runtime dependencies, without operating system distribution. The advantages of this technique include reduced noise of security scanners, smaller security attack surface, reduced overhead of patching vulnerabilities and even smaller image size for higher performance.

If you want to know more about Distroless images, read this.

As usual, we added a set of minor bug fixes.

Commits

  • 14f35bd - (tag: 3.10.0) Release 3.10.0 (Fixed Docker Hub credentials)
  • 03d35ff - Remove expired credentials from travis.yml
  • 0e23469 - Edit comment in docker-compose.yml file
  • fccf1b8 - Fix #345
  • 7e0bb75 - Upgrade travis-ci build using dist: xenial
  • 24e38e1 - Rename scripts to avoid future merge conflicts
  • 6c639e0 - Fix build.sh
  • 31e11a7 - Fix the surefire plugin bug on Linux
  • b55692a - Add build.sh script to build with docker
  • 52c4740 - Use gcr.io/distroless/java:8 as base image
  • 132be45 - [skip ci] fix comment
  • c4d7dc0 - [skip ci] ITs refactoring
  • 210ab2e - Improve log message in overriddenValueFromEnv method
  • 888b6a0 - [skip ci] Ignore testConfigurationTemplate
  • 8070425 - (documentdb) Always use etc/test/restheart-integrationtest.yml config for tests
  • 12a5660 - Pass MongoClientURI in MongoDBClientSingleton.init
  • 7e01d4d - added contributor agreement
  • dd7b154 - Improve maven-deploy.sh script
  • c41c809 - Optimize deployment pipeline
  • b9c3fdd - Indent document
Assets 5

@mkjsix mkjsix released this Mar 21, 2019

Release 3.9.0

What's new

Prometheus database and collection labels for request to root metrics

  • provide all metrics per database and collection for prometheus using labels on root metrics endpoint only (#340).

Ref: https://restheart.org/learn/requests-metrics/

Additional configuration options

  • Enable select config file with env variable (#335)
  • Allows configuration override with java properties (#334)

Ref: http://restheart.org/learn/requests-metrics/#whats-new-in-39

Commits

  • 4ab5405 - provide all metrics per database and collection for prometheus using labels on root metrics endpoint only (#340)
  • c878326 - minor refactoring on account info in request log
  • 4cfbb71 - hide sensitive headers values from request dump
  • fb4040f - Better error message when conf file not found
  • 8543f8e - Activate HTTP listener in default configuration
  • 7ed4e8c - Enable select config file with env variable (#335)
  • edb911e - Allows config override with java properties (#334)
  • 45b77ed - Wrong license file in restheart.jar

Docker image

docker pull softinstigate/restheart:3.9.0

https://cloud.docker.com/u/softinstigate/repository/docker/softinstigate/restheart/general

Assets 5

@mkjsix mkjsix released this Mar 1, 2019

Release 3.8.1

This release fixes a problem with the PGP signature of maven artifacts which prevented the upload of the JAR to both Maven Central and Docker Hub.

Commits

  • ba19b4e - New bin/codesigning.asc.enc
  • a0d04ba - Wrong license file in restheart.jar
Assets 5

@mkjsix mkjsix released this Feb 13, 2019

Release 3.8.0

This release fix several minor bugs and introduces two main changes:

  1. Allow 'upsert' option when uploading a CSV file with query parameter "update=true" (see issue #328).
  2. RESTHeart now throws a better HTTP code when facing a duplicate key error. We replaced HTTP error 417 EXPECTATION FAILED with a more usual 409 CONFLICT (see issue #330).

New commits

  • 9830637 - (tag: 3.8.0) Release 3.8.0
  • 5668590 - Updated POM dependencies
  • f302668 - add upsert qparam in CsvLoaderHandler (#328)
  • 2437b99 - Raise error 409 CONFLICT when key is duplicate.
  • 823be13 - Create DUPLICATE_KEY_ERROR constant
  • c2ef4fb - Refactoring
  • f998dbb - updated undertow to v2.0.17.Final and its dependecies to avoid warning message with java 9+
  • 66eca10 - Version 3.8.0-SNAPSHOT
  • 4b1b6a6 - Fix Objects.requireNonNull(id)
  • 91a129e - Fix reliance on default encoding in JwtAuthenticationManagerFactory
  • 27902d0 - Fix redundant nullcheck of phase, which is known to be non-null
  • 269f1f9 - Fix impossible cast from org.bson.BsonValue to Integer
  • 8bbda6f - Fix reliance on default encoding
  • d94a657 - Useless condition: it's known that skipNotSupported == false at this point
  • 3c58a74 - Fix negating the result of compareTo()/compare()
  • 58de4ce - Remove redundant nullcheck of value known to be non-null
  • ff3a2f0 - Fix reliance on default encoding
  • 0749718 - Remove useless condition
  • 64c2423 - Fix redundant nullcheck of value known to be non-null
  • 1ca1936 - Remove useless object
  • 0db41b1 - throw IllegalArgumentException instead of System.exit
Assets 5

@mkjsix mkjsix released this Jan 24, 2019

Release 3.7.0

This releases fixes a bug with the new configuration file format and move configuration files in this new format.

Specifically, in the yml configuration file the properties were defined as {{mongo-uri}}, with two curly braces. However with mustache.java (the library used to replace variables):

Outputting data with {{data}} (double mustache) always escapes html characters. Use {{{data}}} (triple mustache) if you don't want it escaped.

In this release we just had to re-define vars as {{{mongo-uri}}}, so with three curly braces.

We also did some refactoring with old integration tests.

In general, you should be able safely upgrade to 3.7 from 3.6 and 3.5 without any problem.

Commits

  • 74d4e58 - (tag: 3.7.0, origin/master, origin/HEAD, master) Release 3.7.0
  • a3976b4 - Change testConfigurationTemplate to reproduce issue #327
  • 0c0f0f5 - using triple mustaches {{{ in conf file variables to avoid escaping special chars
  • 9e709e5 - Fix wrong mongouri to mongo-uri
  • 21396a6 - Sleep 1 second to avoid NoHttpResponseException in PutFileHandlerIT
  • 59706c3 - Add license headers on java files
  • ac7daab - io-threads: 4 and worker-threads: 32
  • f7b87e1 - Fix handling of MongoWriteException
  • 5fdac8b - Simplify testGetNotExistingFile
  • 890d194 - Fix relative path for security.yml
  • 3ef9dfa - Move etc/restheart-integrationtest.yml to etc/test/
  • c0cc179 - Remove references to static configuration file from tests
  • bcb3232 - Ignore unused test
  • ebdbca2 - ITs refactoring
  • 68c8aac - Remove duplicated ITs initialisation code
  • 5b5f371 - Add bin/build-docker.sh script
  • baf7593 - Remove unused push.sh script
  • 193b4ca - Fix properties
  • 359a6fe - Format yaml
  • 403615c - Pass --fork as a parameter to start.sh
  • 6f49708 - Merge dev and default configuration files
  • f1a591b - Indent yaml files
  • b5c6979 - Upgrade POM dependencies to latest patches
  • d70bf68 - Delete RequestDispacherHandlerTest.java
  • 356ced3 - Fix imports
  • caa7b4f - Add Docker/etc/config.properties to restheart configuration
  • bd7d2b7 - FROM openjdk:8u191-jre-alpine
  • 691ed04 - Add a comment to etc/dev.properties
  • 263ad8a - Remove redundant check
  • c8bfcc4 - A POST to a file bucket must be a multipart request
  • 13aca89 - updated tika to 1.20
  • 8947156 - fixed issue #299
  • f2b79b3 - added env argument to netbeans start conf
  • 7a66a95 - Bump to version 3.7.0-SNAPSHOT
Assets 5

@mkjsix mkjsix released this Jan 16, 2019

Release 3.6.2

Bugfix release

  • 58b2faf - A POST to a file bucket must be a multipart request #326
  • 78c8770 - Fixed issue: Exchange already complete exceptions #299
Assets 5

@mkjsix mkjsix released this Jan 3, 2019

Release 3.6.1

Minor bugfix

Vulnerabilities that will be fixed

pom.xml
org.apache.tika:tika-core@1.19.1 > org.apache.tika:tika-core@1.20
Denial of Service (DoS)

Assets 5

@mkjsix mkjsix released this Dec 20, 2018

Release 3.6.0

As usual, you can also pull the public Docker image from Docker Hub.

Release notes

Major improvements

Minor improvements

  • MongoDBClientSingleton detects if the MongoDb instance is running as a replica set, this is also logged at startup time
  • removed deprecated bufferPerRegion conf option from Configuration class
  • Updated dependencies (Undertow and Java MongoDB drivers)
  • Upgrade docker image to openjdk:8u181-jre-alpine
  • Many refactorings and minor bug fixes.

List of new commits

Commits since release 3.5.0

  • 6dfa275 - (tag: 3.6.0) Release 3.6.0
  • a2fbe13 - Upgrade maven-shade-plugin from 3.2.0 to 3.2.1
  • 37d4441 - Add comment: guava 27.0.1-jre fails integration tests, don't upgrade
  • 1376715 - Upgrade undertow-core from 2.0.15.Final to 2.0.16.Final
  • fdee06f - Upgrade mongo-driver from 3.9.0 to 3.9.1
  • c6399b2 - minor change to hint qparam parsing
  • b8f795c - added support for hint on query collections #316
  • cd11580 - Handle ENV variables in RH configuration
  • d27bdaa - deleted: src/test/java/org/restheart/test/integration/BootstrapperIT.java
  • d083b67 - Refactoring of Bootstrapper.java
  • ca189b3 - Fix path for ENVIRONMENT_FILE
  • f4dadee - [skip ci] Revert "Add Fossa reports (https://app.fossa.io/)"
  • 363ad7b - Add Fossa reports (https://app.fossa.io/)
  • 0888061 - git depth: 3
  • ff74668 - ignore jwt test
  • cb74c9c - minor change to SecurityAuthTokenIT
  • fb04727 - updated netbeans start options with env dev.properties
  • e391d53 - added instance-base-url configuration option
  • 1fb687d - fixed license source code header
  • 3ef1572 - Add description for help parameter
  • ef5ce10 - Refactoring
  • a0643bc - System.exit when wrong value for string parameter
  • ba110de - instance-name: development
  • 8e7162e - Parametric configuration from properties file
  • bb093be - updated links to undertow documentation in conf files
  • 064b1e2 - Check that LOGGER.isDebugEnabled() in logManifestInfo()
  • 66e0bc4 - removed deprecated bufferPerRegion conf option from Configuration class
  • 041295c - improved log messages that report if mongodb is running in standalone or as a replica set
  • 33a9a92 - git ingoring hidden dir
  • 32457eb - MongoDBClientSingleton detects if the MongoDb instance is running as a replica set, this is also logged at startup time
  • 70ebf7b - removed shade plugin warning message for guava overlapping classes
  • 4e0cca9 - removed uses of deprecated APIs
  • e25a4ea - Set the right program name in help instructions
  • c8c5d4c - Upgrade docker image to openjdk:8u181-jre-alpine
  • ef88f6e - Improve bootstrap logging sequence
  • cd4c1f2 - Make configPath parameter optional
  • 20336c2 - Remove the license from logs
  • 06cba07 - Add complete build information to bootstrap logs
  • 88a2299 - Refacroring of Bootstrapper.java
  • e19863c - Add JCommander to handle to parse command line parameters
  • 8ff27e6 - Refactoring of Configuration.java
  • c73ee31 - Update COMM-LICENSE.txt
  • c87e95a - added commercial license
  • c2c1bd9 - Fix Useless condition: it's known that page >= 2 at this point
  • c3ee62d - Update Maven dependencies to latest stable releases
  • 80fe99c - Update comments in docker-compose.yml [skip travis]
  • ce818b3 - Fix possible memory leak in CsvLoaderHandler
  • 64c8cfe - [skip travis] Update README
  • 2b9496b - [skip travis] center images
  • 6351818 - [skip travis] Update README
  • 2fe2662 - [skip travis] Update README
  • 8bca1d6 - Fix .gitignore [skip travis]
  • aac9f3d - Add the Maven Central badge
  • 67a699a - Fix the build matrix
  • a6b78dc - Fix .travis.yml errors which prevents deployment
  • de0a2d4 - Don't fail on javadoc errors
  • f375f65 - Add "set -e" to build shell scripts
  • a56ea07 - modified: .travis.yml
Assets 5

@mkjsix mkjsix released this Oct 18, 2018 · 159 commits to master since this release

Release 3.5.0

Most notable changes in this release:

  • Add Mongo 4.0 to the integration tests matrix
  • RESTHeart is now fully tested with both openjdk8 and openjdk11
  • Most maven dependencies have been upgraded to latest stable versions
  • Changed layout of prometheus metrics to a single timeseries allowing easier aggregation (#312)
  • Put for GridFS assets #308 (see also #303 for a discussion about this feature)
  • Avoid concurrent deletions of the same file (deletes are synchronized - see #304 and #306)
  • A lot of refactoring and bugs fixing!

List of commits

  • fdcaf3e - (tag: 3.5.0) Release 3.5.0
  • cf75b25 - updated apache tika library
  • 3bba469 - Revert "Extend the build matrix"
  • be7cdf7 - Extend the build matrix
  • 05c4e0b - Exclude the exact build matrix
  • d64414f - Esclude jobs
  • 28bb6f7 - Fix build script
  • ed23849 - MAVEN_DEPLOY=true only when openjdk8 AND MONGO=3.6
  • 725c54f - Add openjdk11 to the Travis-CI build matrix
  • 90c0233 - Upgrade mongodb-driver to v3.8.2
  • 9799102 - minor refactoring
  • 0fe933e - fixed auth token handler when requested URL contains escaped chars that lead to FORBIDDEN
  • 0bc65cc - removed unused import
  • fbdb40a - better error message on bulk write in case of dup key error due to filter
  • 8b9f2c8 - client roles definition order is preserved using LinkedHashSet
  • edcf18c - use apk --no-cache to reduce the Docker image size
  • 292f760 - Shorten database name for integration tests
  • b398d67 - minor change to conf files inline comments + nb 9.0 settings
  • ee9bf65 - Fix Maven site report generation error
  • 0cf90e4 - Upgrade maven dependencies to latest stable versions
  • 2a65a3c - Changed layout of prometheus metrics to a single timeseries allowing easier aggregation (#312)
  • 9525cb1 - Minor refactoring
  • d01904f - Put for assets (#308)
  • 6ff027e - Refactor duplicated code
  • 5ee1e90 - Rename method
  • eef154d - Remove duplicated code
  • 445fe19 - Add isResponseInConflict method to PipedHttpHandler
  • df9a4e3 - Add method isInvalidContent to PipedHttpHandler
  • ab1abda - deleted: src/main/java/org/restheart/db/Repository.java
  • 99556cd - Refactoring of TransformerHandler its and subclasses
  • bcc57ea - Remove duplicated code
  • 433c9fd - Refactoring of RequestContext
  • 68605b0 - Fix Table of Contents
  • e8b7242 - Update README.md
  • 1d6e324 - Comment out ignored tests
  • fddd510 - Refactoring
  • 7b5439d - Try to avoid concurrent deletions of the same file
  • b71c0e8 - Remove redundant else statement
  • ff73423 - Remove potential null pointer reference
  • c5927bc - handle MongoGridFSException when deleting a GriFS file (#306)
  • dcf6747 - Add Mongo 4.0 to integration tests matrix
  • ed097e1 - modified: etc/restheart.yml
  • 0ef3727 - modified: etc/restheart-integrationtest.yml
  • bf54e43 - modified: etc/restheart-dev.yml
  • 14ed275 - Update Docker/etc/restheart.yml
  • 2910b25 - Merge branch 'lenalebt-opentracing2'
    |\
    | * 0a60605 - Merge branch 'opentracing2' of git://github.com/lenalebt/restheart into lenalebt-opentracing2
    | |\
    |/ /
    | * dde5ee8 - Merge branch 'master' into opentracing2
    | |\
    | * | a6a15ba - removed explicit header handling and generation of trace ids, simplified implementation
    | * | 6859213 - added opentracing headers support, fixes #287
  • | | 312fa57 - Exit integration-tests.sh script at first error
  • | | 77b56c2 - Add the "allow-unescaped-characters-in-url" boolean configuration parameter
  • | | bdff084 - Minor refactoring
  • | | f89641c - Indent code and add a Javadoc
  • | | 8815993 - set undertow option ALLOW_UNESCAPED_CHARACTERS_IN_URL to true, this avoids BAD REQUEST for request with URL containing curly brackets #301
    | |/
    |/|
  • | 71d192c - fixes possible 500 error on concurrent collection create requests #297
  • | 2068738 - Upgrade Docker base image to openjdk:8u171-jre-alpine
    |/
  • 54d62a3 - avoid exchange.addExchangeCompleteListener() call if exchage is complete in MetricsInstrumentationHandler to debug issue #299
  • c19eb3c - Remove redundant quotes
  • b1838be - Don't push the Docker tag when it's a SNAPSHOT
Assets 5
You can’t perform that action at this time.