cds add enterprise-messaging

This commit is contained in:
Johannes Vogt
2025-03-21 16:54:37 +01:00
parent 89307140ad
commit 70d7e6ffea
4 changed files with 61 additions and 5 deletions

31
event-mesh.json Normal file
View 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"
]
}

View File

@@ -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

View File

@@ -49,6 +49,9 @@
"requires": {
"[production]": {
"auth": "xsuaa"
},
"messaging": {
"kind": "enterprise-messaging"
}
}
}

View File

@@ -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"
]
}