cds add enterprise-messaging
This commit is contained in:
31
event-mesh.json
Normal file
31
event-mesh.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"emname": "samples-emname",
|
||||
"version": "1.1.0",
|
||||
"namespace": "default/samples/1",
|
||||
"options": {
|
||||
"management": true,
|
||||
"messagingrest": true,
|
||||
"messaging": true
|
||||
},
|
||||
"rules": {
|
||||
"topicRules": {
|
||||
"publishFilter": [
|
||||
"${namespace}/*"
|
||||
],
|
||||
"subscribeFilter": [
|
||||
"*"
|
||||
]
|
||||
},
|
||||
"queueRules": {
|
||||
"publishFilter": [
|
||||
"${namespace}/*"
|
||||
],
|
||||
"subscribeFilter": [
|
||||
"${namespace}/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"authorities": [
|
||||
"$ACCEPT_GRANTED_AUTHORITIES"
|
||||
]
|
||||
}
|
||||
7
mta.yaml
7
mta.yaml
@@ -28,6 +28,7 @@ modules:
|
||||
requires:
|
||||
- name: samples-db
|
||||
- name: samples-auth
|
||||
- name: samples-messaging
|
||||
|
||||
- name: samples-db-deployer
|
||||
type: hdb
|
||||
@@ -85,3 +86,9 @@ resources:
|
||||
config:
|
||||
xsappname: samples-${org}-${space}
|
||||
tenant-mode: dedicated
|
||||
- name: samples-messaging
|
||||
type: org.cloudfoundry.managed-service
|
||||
parameters:
|
||||
service: enterprise-messaging
|
||||
service-plan: default
|
||||
path: ./event-mesh.json
|
||||
|
||||
@@ -49,6 +49,9 @@
|
||||
"requires": {
|
||||
"[production]": {
|
||||
"auth": "xsuaa"
|
||||
},
|
||||
"messaging": {
|
||||
"kind": "enterprise-messaging"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,19 +1,34 @@
|
||||
{
|
||||
"scopes": [
|
||||
{
|
||||
"name": "$XSAPPNAME.admin",
|
||||
"name": "$XSAPPNAME.admin",
|
||||
"description": "admin"
|
||||
},
|
||||
{
|
||||
"name": "$XSAPPNAME.emcallback",
|
||||
"description": "Enterprise-Messaging Callback Access",
|
||||
"grant-as-authority-to-apps": [
|
||||
"$XSSERVICENAME(samples-messaging)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "$XSAPPNAME.emmanagement",
|
||||
"description": "Enterprise-Messaging Management Access"
|
||||
}
|
||||
],
|
||||
"attributes": [],
|
||||
"role-templates": [
|
||||
{
|
||||
"name": "admin",
|
||||
"scope-references": [
|
||||
"name": "admin",
|
||||
"scope-references": [
|
||||
"$XSAPPNAME.admin"
|
||||
],
|
||||
],
|
||||
"description": "cap samples multi-service shared-db"
|
||||
}
|
||||
],
|
||||
"authorities-inheritance": false
|
||||
"authorities-inheritance": false,
|
||||
"authorities": [
|
||||
"$XSAPPNAME.emmanagement",
|
||||
"$XSAPPNAME.mtcallback"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user