Integrating Open Policy Agent with Spring Security Reactive and JSON Web Tokens

We present a Java library that simplifies adopting the Open Policy Agent server to manage user authorization for a Spring Boot microservice, while also managing API Token (JWT) authentication. Motivation Spring Security assumes a fairly simplistic Role-Based access control (RBAC) where the service authenticates the user (via some credentials, typically username/password) and returns a UserDetails … More Integrating Open Policy Agent with Spring Security Reactive and JSON Web Tokens

Implement the Envelope Wrapper Pattern in C++ using Google Protocol Buffers

The Envelope Wrapper pattern This pattern, described in “Enterprise Integration Patterns” (Ch. 8, “The Envelope Wrapper”), is used typically in messaging systems, when a number of metadata fields (for routing, security, etc.) are kept in a header, while the data used by service endpoints is serialized in a payload. For the system to be generically … More Implement the Envelope Wrapper Pattern in C++ using Google Protocol Buffers

Ubuntu: adjust mouse scroll wheel sensitivity

Honestly, it should be easier – then again, it’s Gnome, nothing really is easy. Collecting a combination of various pages (this one finally yielded the right directions) it turns out one has to install imwheel and then adjust the ~/.imwheelrc file: The magic incantation is in the first couple of lines and the value (3 … More Ubuntu: adjust mouse scroll wheel sensitivity

filecrypt — OpenSSL-based file encryption, release 0.7.2

Almost four years after its initial inception and release, I have entirely rewritten the CLI invocation, streamlined the encryption secrets management, and created a self-contained executable. Once you have a private/public key pair, a file can be simply encrypted using: ./filecrypt.pyz -o my_file.enc /path/to/plain.txt and decrypted using: ./filecrypt.pyz¬† -o /path/to/plain.txt -d my_file.enc The –send option … More filecrypt — OpenSSL-based file encryption, release 0.7.2