Close Menu
Şevket Ayaksız
    What's Hot

    Windows 11 Now Holds Restart-Requiring Driver Updates Until Patch Tuesday

    December 5, 2026

    House Panel Publishes Breakdown of Oracle’s 17 Billion Dollar VA Contract Increase

    December 5, 2026

    Spring Vault Revisits Secret Rotation With the ManagedSecret API

    December 5, 2026
    • software
    • Gadgets
    Şevket AyaksızŞevket Ayaksız
    • Home
    • Technology

      Apple: iPhone 17 and Older Models Hit With Unexpected $100 Price Increase

      September 10, 2026

      Apple Watch Intelligence Could Be a Major Accessibility Breakthrough

      September 10, 2026

      Apple May Skip the Base iPhone 18 This Year

      September 10, 2026

      FCC changes robot vacuum rules, potentially affecting future models

      August 8, 2026

      Samsung’s new 2TB 990 SSD drops to its lowest price yet

      August 6, 2026
    • Adobe

      Adobe Adds Three AI Modules to Creative Studio for Advertisers

      December 5, 2026

      Adobe Research and Cornell Unveil Micro-Edits, a System for Fine-Tuning Film Cuts

      December 4, 2026

      Adobe Acrobat 26.003.22182 Update Targets Crashes, Search and Outlook Add-in Bugs

      December 3, 2026

      Anil Chakravarthy Takes Over as Adobe CEO, Narayen Becomes Executive Chair

      December 2, 2026

      Adobe Sets December 9 Date for Q4 and Fiscal 2026 Results

      December 1, 2026
    • Microsoft

      Microsoft Shareholders Vote December 8 on Board, AI Human Rights Proposals

      December 5, 2026

      Microsoft’s Voluntary Exit Offer to 60,000 Staff Nears Its Deadline

      December 4, 2026

      Microsoft AI Chief Suleyman Rejects AI Consciousness and Model Welfare Approach

      December 3, 2026

      Microsoft Says November Outlook Outage Will Dent Microsoft 365 Cloud Growth

      December 2, 2026

      Microsoft 365 Copilot No Longer Requires a Base License for New Buyers

      December 1, 2026
    • java

      Spring Vault Revisits Secret Rotation With the ManagedSecret API

      December 5, 2026

      Spring Team Launches Spring AI Agent for Type-Safe Java and Kotlin Agents

      December 4, 2026

      Datadog State of Java 2026: Java 21 Overtakes Java 17 in Production

      December 3, 2026

      Spring Team Unveils Stream-Source, a Virtual-Thread Friendly Streaming Library for Java

      December 2, 2026

      Spring AI Replaces ChatMemory With New Session API

      December 1, 2026
    • Oracle

      House Panel Publishes Breakdown of Oracle’s 17 Billion Dollar VA Contract Increase

      December 5, 2026

      Oracle Open-Sources Locus, a Multi-Agent SDK Built Around OCI and Database 26ai

      December 4, 2026

      Oracle Offers About $592 Million More in Project Jupiter Community Benefits

      December 3, 2026

      Oracle Health Chairman David Feinberg Steps Down, Will Stay On as Adviser

      December 2, 2026

      Oracle Job Ads Shift Toward Cloud Infrastructure After 21,000 Net Cuts

      December 1, 2026
    Şevket Ayaksız
    Anasayfa » Spring Vault Revisits Secret Rotation With the ManagedSecret API
    java

    Spring Vault Revisits Secret Rotation With the ManagedSecret API

    By sevketayaksizDecember 5, 2026Updated:December 5, 2026No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Abstract illustration of code blocks and a coffee cup
    Share
    Facebook Twitter LinkedIn Pinterest Email

    The Spring team has published a fresh look at secret management for Java applications, ten years after its first guide to using HashiCorp Vault with Spring. In a post on the Spring blog dated December 4, 2026, Spring Vault lead Mark Paluch explains how the ManagedSecret API, introduced in Spring Vault 4.1, aims to close a long-standing gap between rotating credentials in Vault and the database connection pools that actually use them. The post is the first of two parts, with the second planned to cover managed certificates.

    From key value store to rotation engine

    According to the post, Vault began as a simple store for credentials and has grown into a system that can issue and rotate secrets for databases and other services. Spring Vault already renews leases while an application runs and revokes them on a normal shutdown, so that credentials expire if the app crashes or loses its connection to Vault. Paluch distinguishes two rotation models. With dynamic roles, Vault creates a new login and renews its lease until it expires. With static roles, Vault changes the password of an existing user, and because that is not tied to a lease, the application has to poll or refresh on its own.

    The connection pool problem

    The harder part, the post argues, is getting new credentials into a connection pool that holds long-lived database connections. Few JDBC pools can change their username and password at runtime, with HikariCP named as one of the exceptions. In a typical setup, a secret declaration, a listener and the pool are wired together loosely, which Paluch describes as error prone. He identifies three gaps: no uniform approach to rotation, limited support in drivers and pools, and no coordination between the pieces.

    How ManagedSecret works

    ManagedSecret ties the declaration of a secret to the code that consumes it in a single place, typically a Spring bean method. Spring Vault calls that consumer whenever Vault creates or rotates the secret, and an optional error handler can be added. A helper type for username and password pairs, designed for Vault’s dynamic database engines, lets developers apply new credentials straight to a HikariCP data source and gradually evict old connections. The Spring Vault reference documentation for version 4.1.2 shows the same pattern and notes that it builds on the existing SecretLeaseContainer, which fires events when leases are renewed, rotated, expire or fail.

    Startup order and pitfalls

    The post warns that ordering matters in Spring Cloud Vault applications. Secrets imported through Spring configuration data are fetched first, while ManagedSecret beans register later, so they receive rotation and error notifications rather than the initial secret. Spring Vault does not cache secrets. The documentation similarly cautions that credentials are not available until the lease container has started, so components that need them during early initialisation may run too soon.

    Availability

    ManagedSecret has been available since Spring Vault 4.1, which reached general availability on June 10, 2026, together with a fluent VaultClient API, ManagedCertificate and a CertificateContainer for certificate rotation. The new post mainly brings the feature and revised rotation guidance to a wider audience, and it points readers to a full example in the Spring Cloud Vault samples repository.

    Sources:

    • Spring Blog (Managed Secrets revisited)
    • Spring Vault reference docs
    • Spring Blog (Spring Vault 4.1 GA)
    Views: 5
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    sevketayaksiz
    • Website

    Related Posts

    Spring Team Launches Spring AI Agent for Type-Safe Java and Kotlin Agents

    December 4, 2026

    Datadog State of Java 2026: Java 21 Overtakes Java 17 in Production

    December 3, 2026

    Spring Team Unveils Stream-Source, a Virtual-Thread Friendly Streaming Library for Java

    December 2, 2026
    Add A Comment

    Comments are closed.

    Şevket Ayaksız
    Instagram
    • Home
    • Adobe
    • microsoft
    • java
    • Oracle
    • Contact
    © 2026 Theme Designed by Şevket Ayaksız.

    Type above and press Enter to search. Press Esc to cancel.