CodeGravity

Root privileges for local user

Recently, there was announcememnt of CVE-2021-3156 - a linux sudo security issue, which allows local user to gain root privileges. https://cve.mitre.org/cgi-bin/cvename.cgi?name=2021-3156

This is very unpleasant and security fix was published recently.

Checking

...

Continue reading... Buffer Overflow in Sudo

Use case: getting last entries from kafka topic within a limit. How to do that?

After several attempts how to do it properly, I've created this method, which works well and returns latest x records from kafka topic you specified.

  private Iterable> getLatestConsumerRec...

Continue reading... Kafka data from topic with limit

This article is for users, who are familiar with Kubernetes cluster, its basic principles and Kafka and solves a specific data persistence problem related to running a "Confluent Platform" in Kubernetes cluster. It took me several hours to study the priciples and come up with this solution which w...

Continue reading... Kafka local persistent volume with Kubernetes