Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iwpnd/tile38-kafka-sasl
Used to test SCRAM-SHA-512 authentication between tile38 and apache kafka
https://github.com/iwpnd/tile38-kafka-sasl
kafka scram scram-sha-256 scram-sha-512 tile38
Last synced: 7 days ago
JSON representation
Used to test SCRAM-SHA-512 authentication between tile38 and apache kafka
- Host: GitHub
- URL: https://github.com/iwpnd/tile38-kafka-sasl
- Owner: iwpnd
- Created: 2021-07-25T16:22:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-12T08:51:20.000Z (over 1 year ago)
- Last Synced: 2024-12-08T19:36:13.569Z (14 days ago)
- Topics: kafka, scram, scram-sha-256, scram-sha-512, tile38
- Homepage:
- Size: 5.86 KB
- Stars: 4
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# tile38-kafka-sasl
Test SASL authentification (SCRAM-SHA-512) between Tile38 1.25.2 and Apache Kafka.
## Prerequisites
`brew install tile38`
## Usage
`docker-compose up`
Once tile38 and kafka have successfully started use `tile38-cli` to pass two commands:
Setup a hook
```
sethook test kafka://broker:9091/test?auth=sasl&sha512=true within fleet fence object '{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[13.388900756835938,52.465422868400594],[13.423233032226562,52.465422868400594],[13.423233032226562,52.47964385776367],[13.388900756835938,52.47964385776367],[13.388900756835938,52.465422868400594]]]}}'
```Set a test vehicle into the hook
```
set fleet test point 52.4723248048 13.4072685241
```This will prompt you with:
```
tile38 | [sarama] Successfully initialized new client
tile38 | [sarama] ClientID is the default of 'sarama', you should consider setting it to something application-specific.
tile38 | [sarama] producer/broker/1001 starting up
tile38 | [sarama] producer/broker/1001 state change to [open] on test/0
tile38 | [sarama] Successful SASL handshake. Available mechanisms: [SCRAM-SHA-512]
tile38 | [sarama] SASL authentication succeeded
tile38 | [sarama] Connected to broker at broker:9091 (registered as #1001)
tile38 | 2021/07/25 16:06:10 [DEBU] Endpoint send ok: 5: kafka://broker:9091/auth=sasl&sha512=true: ?
```