Skip to content

Commit

Permalink
ENT-1249 - Downgrade to Artemis 2.2 to protect against rouge connecti…
Browse files Browse the repository at this point in the history
…ons causing OOM
  • Loading branch information
Tommy Lillehagen committed Dec 14, 2017
1 parent d5f8258 commit 4ad7b23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ buildscript {
ext.capsule_version = '1.0.1'

ext.asm_version = '0.5.3'
ext.artemis_version = '2.4.0'
ext.artemis_version = '2.2.0'
ext.jackson_version = '2.9.2'
ext.jetty_version = '9.4.7.v20170914'
ext.jersey_version = '2.25'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import org.apache.activemq.artemis.core.server.embedded.EmbeddedActiveMQ
import org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl
import org.apache.activemq.artemis.core.settings.impl.AddressFullMessagePolicy
import org.apache.activemq.artemis.core.settings.impl.AddressSettings
import org.apache.activemq.artemis.spi.core.protocol.RemotingConnection
import org.apache.activemq.artemis.spi.core.remoting.Connection
import org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager3
import java.lang.reflect.Method
import java.nio.file.Path
Expand Down Expand Up @@ -131,13 +131,14 @@ fun <A> rpcDriver(
}

private class SingleUserSecurityManager(val rpcUser: User) : ActiveMQSecurityManager3 {

override fun validateUser(user: String?, password: String?) = isValid(user, password)
override fun validateUserAndRole(user: String?, password: String?, roles: MutableSet<Role>?, checkType: CheckType?) = isValid(user, password)
override fun validateUser(user: String?, password: String?, remotingConnection: RemotingConnection?): String? {
override fun validateUser(user: String?, password: String?, remotingConnection: Connection?): String? {
return validate(user, password)
}

override fun validateUserAndRole(user: String?, password: String?, roles: MutableSet<Role>?, checkType: CheckType?, address: String?, connection: RemotingConnection?): String? {
override fun validateUserAndRole(user: String?, password: String?, roles: MutableSet<Role>?, checkType: CheckType?, address: String?, connection: Connection?): String? {
return validate(user, password)
}

Expand Down

0 comments on commit 4ad7b23

Please sign in to comment.