Aiven Blog

Jun 24, 2019

Aiven Kafka now supports SASL authentication

Aiven Kafka users can now enable SASL authentication between their applications and Aiven Kafka; find out more about it in this post.

john-hammink

John Hammink

|RSS Feed

Developer Advocate at Aiven

Aiven Kafka now supports SASL as a complementary authentication method between your Kafka-powered applications and your Kafka endpoint. This gives you the option to replace your access key and access certificate with a username and password that you specify.

Note that with SASL enabled, you'll still require a CA (certificate authority) certificate to connect your producers and consumers to your Aiven Kafka endpoint.

SASL stands for Simple Authentication and Security Layer and is a popular authentication framework already used widely across many established internet protocols, including AMQP, IMAP, IRC, and memcached.

Aiven Kafka supports the following SASL mechanisms:

  • SASL Plain: a basic, cleartext password handler based on RFC 4616;
  • SCRAM (or Salted Challenge Response Authentication Mechanism): a more complex challenge-response authentication method.

How SASL works

To turn on SASL support, just enable the kafka_authentication_methods.sasl setting within your advanced configuration settings.

Showing how to enable SASL

You can then configure your producers and consumers to use SASL authentication to your endpoint accordingly.

Showing SASL auth settings

Wrapping up

You now have two options — Client Certificate or SASL — for connecting your Kafka producers and consumers to your Aiven Kafka endpoint. We’ll always be adding more options, so stay up to date from our blog, changelog RSS feeds, or follow us on Twitter or LinkedIn.


Subscribe to the Aiven newsletter

All things open source, plus our product updates and news in a monthly newsletter.

Related resources

  • Announcing Aiven for OpenSearch® illustration

    Sep 27, 2021

    Aiven is happy to announce the newest arrival on the OpenSearch scene! Read more about Aiven for OpenSearch® and how to upgrade from Elasticsearch.

  • Hi, would you have time to discuss the product updates from Aiven from this quarter?

    Oct 31, 2022

    The team at Aiven has been busy last quarter with new releases across several of our services. Starting from the announcement of our ClickHouse Beta being available, we have lots of good stuff here. Read on for details about what’s been going on last quarter!

  • The words "Cluster program interview: 4.screen" against a blue background, with the AIven logo in the corner

    May 4, 2023

    We want to highlight the startups participating in the Cluster Startup Program and building on top of Aiven services. Today, we’re excited to introduce 4.Screen.