Hi, We added a managed Kafka on the Databases section. The SSL certificates are available on that Kafka instance. We planned to have a worker that will be deployed on an App Platform. The Kafka config on our worker requires to have the certificate file on disk. I have two questions. First is the Kafka certificate provisionned for all App Platforms instance and how do we access it from an App Platform environment variables (Something like KAFKA_CERTICATE={kafka.CA_ERT}?)? Because its not possible to push a certificate on disk on an App Platform, what will be the workaround?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
In order for the certificate, and all other Kafka details, to be available as env variables to your app, you need to make sure that you’ve added the Kafka cluster as a component to your App Platform first.
You can now add existing Kafka databases to App Platform apps but keep in mind that this feature is in beta.
Once you’ve followed the steps above the App Platform will provide the bindable environment variables that automatically provide connection details for your Kafka database.
To integrate an existing Kafka database, follow the steps to add the database to your app, then add the following environment variable key value pairs to your app, replacing
your-kafka-instance-name
with your database cluster’s name:Let me know how this goes!
- Bobby
Hey PapaSougouWele,
App Platform doesn’t manage certificates directly, but there are workarounds! For Kafka with App Platform, consider using a Secret Manager or mounting a volume with the certificate.