ActiveMQ 驗證配置

2021-09-21 02:10:07 字數 2894 閱讀 7280

"securityconstraint"

class

="org.eclipse.jetty.util.security.constraint"

>

name

="name"

value

="basic"

/>

name

="roles"

value

="user,admin"

/>

name

="authenticate"

value

="true"

/>

bean

>

admin: admin, admin

godme: godme, admin

producer: producer, user

consumer: consumer, user

user: user, user

admin=admin

godme=godme

producer=producer

consumer=consumer

# username=password

admins=admin,godme

producers=producer

consumers=consumer

# group=user1,user2...

>

configuration

="activemq"

/>

<******authenticationplugin

>

>

username

="producer"

password

="producer"

groups

="producer"

/>

users

>

******authenticationplugin

>

plugins

>

>

configuration

="activemq"

/>

>

>

>

>

topic

=">"

read

="admins"

write

="admins"

admin

="admins"

/>

queue

=">"

read

="admins"

write

="admins"

admin

="admins"

/>

topic

="activemq.advisory.>"

read

="admins"

write

="admins"

admin

="admins"

/>

queue

="activemq.advisory.>"

read

="admins"

write

="admins"

admin

="admins"

/>

authorizationentries

>

authorizationmap

>

map>

authorizationplugin

>

plugins

>

可以指定佇列和主題,還有許可權操作。

切記,都在broker標籤下面,兩者都在plugins標籤下定義。

>

>

>

>

topic

=">"

read

="consumers"

write

="producers"

admin

="producers"

/>

queue

=">"

read

="consumers"

write

="producers"

admin

="producers"

/>

topic

="activemq.advisory.>"

read

="consumers,producers"

write

="producers,consumers"

admin

="producers,consumers"

/>

queue

="activemq.advisory.>"

read

="consumers,producers"

write

="producers,consumers"

admin

="producers,consumers"

/>

authorizationentries

>

authorizationmap

>

map>

authorizationplugin

>

原本想配置成這樣

但是好像activemq.advisory.>也要進行配置來著。

ActiveMQ配置檔案及安全驗證機制

size large 1 修改控制台登入使用者密碼 size activemq的web管理介面 activemq管控臺使用jetty部署,需要修改密碼則修改對應的配置檔案c m apache activemq 5.14.1 conf jetty realm.properties quote admi...

ActiveMQ配置說明

配置 spring.activemq.broker url 指定activemq broker的url,預設自動生成.spring.activemq.in memory 是否是記憶體模式,預設為true.spring.activemq.password 指定broker的密碼.spring.acti...

學習activeMQ配置SSL

在網上看了些這方面的配置,具體配置檔案我就不說了,我寫點自己的經驗。整個過程就是先生成密碼,在進行配置。1 先生成伺服器端的證書 2 匯出該證書,用於後面客戶端證書的生成。3 生成客戶端證書 4 生成客戶端信任庫,並匯入伺服器證書,這樣就可以將客戶端證書和伺服器端證書分開存放。接下來時配置activ...