Menu

1 / 2

Time-Based One-Time Passwords with HashiCorp Vault and Quarkus

DEV Community: java·Nicolas DUMINIL·about 1 month ago
#aGcwMXiT
#devtojava#devto#dev#vault#totp
Long article (4769 words) — no AI summary yet.
Reading 0:00
15s threshold

Abstract

This article examines how the Time-Based One-Time Password algorithm (TOTP) can be delegated to the TOTP secrets engine of HashiCorp Vault and consumed by a Quarkus application. It first recalls the theoretical foundations of TOTP and the purpose of Vault. It then describes the use cases of the reference implementation with a UML diagram, analyses the Vault configuration and its bootstrap script, comments on the Java code and its integration tests, and finally presents the deployment topology defined by Docker Compose.

1. What is TOTP and what problem does it solve?

1.1 The weakness of the static password

The static password is the oldest and most widely deployed authentication mechanism in computing. It is also among the most fragile. A password is a shared secret that never changes unless its owner decides otherwise, which in practice means rarely.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.