mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 08:38:45 +05:00
Add support for kafka ssl encryption
For both poster and reader. Added integration test.
This commit is contained in:
committed by
Dan Christian Bogos
parent
e0d15f1a9e
commit
36bdc41e97
85
data/conf/samples/kafka_ssl/cgrates.json
Normal file
85
data/conf/samples/kafka_ssl/cgrates.json
Normal file
@@ -0,0 +1,85 @@
|
||||
{
|
||||
|
||||
"logger": {
|
||||
"type": "*syslog",
|
||||
"level": 7
|
||||
},
|
||||
|
||||
"listen": {
|
||||
"rpc_json": ":2012",
|
||||
"rpc_gob": ":2013",
|
||||
"http": ":2080"
|
||||
},
|
||||
|
||||
"data_db": {
|
||||
"db_type": "redis",
|
||||
"db_port": 6379,
|
||||
"db_name": "10"
|
||||
},
|
||||
|
||||
"ees": {
|
||||
"enabled": true,
|
||||
"exporters": [
|
||||
{
|
||||
"id": "*default",
|
||||
"type": "*kafka_json_map",
|
||||
"export_path": "localhost:9093",
|
||||
"opts": {
|
||||
"kafkaTopic": "ssl-topic",
|
||||
"kafkaTLS": true,
|
||||
"kafkaCAPath": "/home/kafka/kafka/ssl/ca.pem",
|
||||
"kafkaSkipTLSVerify": false
|
||||
},
|
||||
"failed_posts_dir": "/var/spool/cgrates/failed_posts"
|
||||
},
|
||||
{
|
||||
"id": "kafka_processed",
|
||||
"type": "*kafka_json_map",
|
||||
"export_path": "localhost:9092",
|
||||
"opts": {
|
||||
"kafkaTopic": "processed-topic",
|
||||
"kafkaTLS": false,
|
||||
"kafkaCAPath": "/home/kafka/kafka/ssl/ca.pem",
|
||||
"kafkaSkipTLSVerify": false
|
||||
},
|
||||
"failed_posts_dir": "/var/spool/cgrates/failed_posts"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"ers": {
|
||||
"enabled": true,
|
||||
"sessions_conns":[],
|
||||
"ees_conns": ["*internal"],
|
||||
"readers": [
|
||||
{
|
||||
"id": "*default",
|
||||
"type": "*kafka_json_map",
|
||||
"run_delay": "-1",
|
||||
"flags": ["*dryRun"],
|
||||
"source_path": "localhost:9093",
|
||||
"ees_success_ids": ["kafka_processed"],
|
||||
"opts": {
|
||||
"kafkaTopic": "ssl-topic",
|
||||
"kafkaTLS": true,
|
||||
"kafkaCAPath": "/home/kafka/kafka/ssl/ca.pem",
|
||||
"kafkaSkipTLSVerify": false
|
||||
},
|
||||
"fields": [
|
||||
{"tag": "ToR", "path": "*cgreq.ToR", "type": "*variable", "value": "~*req.ToR", "mandatory": true},
|
||||
{"tag": "OriginID", "path": "*cgreq.OriginID", "type": "*variable", "value": "~*req.OriginID", "mandatory": true},
|
||||
{"tag": "RequestType", "path": "*cgreq.RequestType", "type": "*variable", "value": "~*req.RequestType", "mandatory": true},
|
||||
{"tag": "Tenant", "path": "*cgreq.Tenant", "type": "*variable", "value": "~*req.Tenant", "mandatory": true},
|
||||
{"tag": "Category", "path": "*cgreq.Category", "type": "*variable", "value": "~*req.Category", "mandatory": true},
|
||||
{"tag": "Account", "path": "*cgreq.Account", "type": "*variable", "value": "~*req.Account", "mandatory": true},
|
||||
{"tag": "Subject", "path": "*cgreq.Subject", "type": "*variable", "value": "~*req.Subject", "mandatory": true},
|
||||
{"tag": "Destination", "path": "*cgreq.Destination", "type": "*variable", "value": "~*req.Destination", "mandatory": true},
|
||||
{"tag": "SetupTime", "path": "*cgreq.SetupTime", "type": "*variable", "value": "~*req.SetupTime", "mandatory": true},
|
||||
{"tag": "AnswerTime", "path": "*cgreq.AnswerTime", "type": "*variable", "value": "~*req.AnswerTime", "mandatory": true},
|
||||
{"tag": "Usage", "path": "*cgreq.Usage", "type": "*variable", "value": "~*req.Usage", "mandatory": true}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user