Skip to content
Browse files
January 2022 blog "Tightening Security for Apache Cassandra Part: 1"
patch by Maulin Vasavada, Diogenese Topper; reviewed by Eric Ramirez for

Add blog post titled "Tightening Security for Apache Cassandra Part: 1"
update blog index
add 2 images for blog
  • Loading branch information
dtopdontstop authored and blerer committed Jan 31, 2022
1 parent 1286a7d commit 395d33b7d5b38e06754c71210ec9a6577beac6f4
Showing 4 changed files with 69 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
- Replace post tile, date, description and link to you post.

//start card
[openblock,card shadow relative test]
=== Tightening Security for Apache Cassandra: Part 1
==== January 31, 2022
The growth in ecommerce has demanded a greater focus on data security, Maulin Vasavada begins a mini-series on how to customize SSL/TLS configurations to tighten security in Cassandra 4.0+.

[openblock,card-btn card-btn--blog]
xref:blog/Tightening-Security-for-Apache-Cassandra-Part-1.adoc[Read More]

//end card

//start card
[openblock,card shadow relative test]
@@ -0,0 +1,45 @@
= Tightening Security for Apache Cassandra: Part 1
:page-layout: single-post
:page-role: blog-post
:page-post-date: January, 31 2022
:page-post-author: Maulin Vasavada
:description: The Apache Cassandra Community

image::blog/tighten-security-p1-unsplash.jpg[secure lock and chain across a door]

Image credit:[Thom Milkovic on Unsplash^]

This series will show you how Apache Cassandra 4.0+ enables users to customize SSL/TLS configuration flexibly and enhance the database’s security posture. First, we will start with some context before diving into the technical details.

According to eMarketer’s[forecast in 2021^]: “US e-commerce sales are projected to continue to grow by double digits, up 17.9% in 2021 to $933.30 billion. E-commerce penetration will continue to increase, more than doubling from 2019 to 23.6% in 2025.” While eMarketer’s data is only for the US, the global trend is seeing a similar upward swing. With this growth in buying online, there is an increased focus on security and how to protect customers’ data and secure communication between computers, especially with databases such as Apache Cassandra that store customer and transaction data.

image::blog/emarketer-chart.png[eMarketer chart]
The growth in ecommerce also demands software that's both secure and scalable.

=== Adoption of Apache Cassandra & Securing Data

Apache Cassandra is the open source NoSQL database for mission-critical data. Its adoption grows day-by-day in the industry, and it’s used by all sizes of organizations serving varied technical and business domains, such as IT Financial Services, Healthcare, Retail, Government, and Education, to name a few. You can find some xref:blog/Apache-Cassandra-Usage-Report-2020.adoc[interesting statistics] from the 2020 survey about Apache Cassandra’s usage in the industry.

As the web traffic grows for business-to-consumer interactions, service providers need to ensure customer data is securely protected and the backing software can scale to handle growing demand without outages. Service providers use various technologies to support their business functions such as Online Transaction Processing (OLTP), serving internal analytical needs for customer insights, running risk and fraud detection systems, etc. As traffic grows, each sub-system and technology will need to scale with traffic while satisfying security requirements.

Primarily there are two avenues to consider for securing data: data in transit and data at rest.

Data in transit refers to the data traveling between computers over the network (sometimes referred as ‘over-the-wire’). For example, a customer’s credit card details travel to the service provider for payment processing, and, of course, customers expect that to be done securely.

Data at rest refers to the data digitally stored for durability. Like data in transit, data at rest needs to be secured with appropriate access control mechanisms and data encryption.

In this series, we’re focused on securing data in transit. We will cover the security aspects in more detail in Part 2, but first, a few basics of security followed by how Apache Cassandra enables operators with configurable options for securing data in transit, meaning between client nodes and Cassandra server nodes and from server to server.

=== Using TLS to secure data-in-transit

TLS (Transport Layer Security) is an industry-standard cryptographic protocol to secure data over the wire between two computers. Typically, this is between a web server and a browser. It is a successor of SSL (Secure Socket Layer) protocol and many times you would notice SSL and TLS are used interchangeably by technologists for higher-level discussions. Here are some good[guides^] for learning about TLS basics and understanding the[TLS Handshake^] between client and server.

TLS requires the server to have an asymmetric key pair[digital certificate^]. This enables the client to trust the server is what it claims to be, but the server will trust any client. In order to limit which clients the server trusts, you must provide the server with a similar certificate for each allowed client so the server can[authenticate a client^]. This is also known as Client-TLS Auth, Two-way-SSL, Mutual-TLS, or mTLS (most commonly used) for short.

Apart from some[higher level challenges^] with TLS, there are also operational challenges you will need to consider, which we will cover in Part 2. Next time, we will look at storing your private key and password, credential rotations, operations at scale, and how to configure TLS/mTLS on the server-side.

=== Want to learn more about Apache Cassandra’s security features?

Head to our[Security documentation] section for more details.

0 comments on commit 395d33b

Please sign in to comment.