-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add essential Kafka client security config #174
Conversation
This commit updates the generated markdown so that it includes the essential Kafka config required for clients. This makes it easier for someone using the markdown doc from an AsyncAPI doc to get started with creating a Kafka client. Signed-off-by: Dale Lane <dale.lane@uk.ibm.com>
inspired by a discussion on Slack |
Example output: AsyncAPI: asyncapi: '2.2.0'
info:
title: Streetlights Kafka API
version: '1.0.0'
description: |
The Smartylighting Streetlights API allows you to remotely manage the city lights.
servers:
test:
url: test.mykafkacluster.org:8092
protocol: kafka
description: Test broker will generate: # Streetlights Kafka API 1.0.0 documentation
The Smartylighting Streetlights API allows you to remotely manage the city lights.
## Table of Contents
* [Servers](#servers)
* [Channels](#channels)
## Servers
### **test** Server
| URL | Protocol | Description |
|---|---|---|
| test.mykafkacluster.org:8092 | kafka | Test broker |
#### Security Requirements
| Type | Description | security.protocol | sasl.mechanism |
|---|---|---|---|
| - | - | PLAINTEXT | - | rendered as: Streetlights Kafka API 1.0.0 documentationThe Smartylighting Streetlights API allows you to remotely manage the city lights. Table of ContentsServerstest Server
Security Requirements
|
Example output: AsyncAPI: asyncapi: '2.2.0'
info:
title: Streetlights Kafka API
version: '1.0.0'
description: |
The Smartylighting Streetlights API allows you to remotely manage the city lights.
servers:
test:
url: test.mykafkacluster.org:8092
protocol: kafka-secure
description: Test broker will generate: # Streetlights Kafka API 1.0.0 documentation
The Smartylighting Streetlights API allows you to remotely manage the city lights.
## Table of Contents
* [Servers](#servers)
* [Channels](#channels)
## Servers
### **test** Server
| URL | Protocol | Description |
|---|---|---|
| test.mykafkacluster.org:8092 | kafka | Test broker |
#### Security Requirements
| Type | Description | security.protocol | sasl.mechanism |
|---|---|---|---|
| - | - | SSL | - | rendered as: Streetlights Kafka API 1.0.0 documentationThe Smartylighting Streetlights API allows you to remotely manage the city lights. Table of ContentsServerstest Server
Security Requirements
|
Example output: AsyncAPI: asyncapi: '2.2.0'
info:
title: Streetlights Kafka API
version: '1.0.0'
description: |
The Smartylighting Streetlights API allows you to remotely manage the city lights.
servers:
test:
url: test.mykafkacluster.org:8092
protocol: kafka-secure
description: Test broker
security:
- saslScram: []
components:
securitySchemes:
saslScram:
type: scramSha512
description: create credentials in the dev portal will generate: # Streetlights Kafka API 1.0.0 documentation
The Smartylighting Streetlights API allows you to remotely manage the city lights.
## Table of Contents
* [Servers](#servers)
* [Channels](#channels)
## Servers
### **test** Server
| URL | Protocol | Description |
|---|---|---|
| test.mykafkacluster.org:8092 | kafka-secure | Test broker |
#### Security Requirements
| Type | Description | security.protocol | sasl.mechanism |
|---|---|---|---|
| scramSha512 | create credentials in the dev portal | SASL_SSL | SCRAM-SHA-512 | rendered as: Streetlights Kafka API 1.0.0 documentationThe Smartylighting Streetlights API allows you to remotely manage the city lights. Table of ContentsServerstest Server
Security Requirements
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dalelane Thanks for another contribution! :) Only some small suggestions, overall good 👍🏼
A few minor fixes Signed-off-by: Dale Lane <dale.lane@uk.ibm.com>
Thanks for the review! I've added a commit to address the bits you caught. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dalelane Thanks! I don't have any comments to code, it's great :)
Kudos, SonarCloud Quality Gate passed! |
🎉 This PR is included in version 0.15.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@all-contributors please add @dalelane for code, ideas |
I've put up a pull request to add @dalelane! 🎉 |
This commit updates the generated markdown so that it includes
the essential Kafka config required for clients.
This makes it easier for someone using the markdown doc from an
AsyncAPI doc to get started with creating a Kafka client.
Signed-off-by: Dale Lane dale.lane@uk.ibm.com