Skip to content

JBoss EAP – Credential Store vs Password Vault

  •  
  • 3 min read
  • 4,089 reads

JBoss EAP configuration files are accessible and not encrypted (xml files), moreover, some sensitive strings could/should be store there… For obvious security reasons, JBoss EAP allows the encryption of the sensitive strings outside the configurations files.

The sensitive strings can be stored in a keystore, and subsequently decrypted for applications and systems. There is two ways to encrypt sensitive strings outside JBoss EAP configuration files:

  • Credential Store
  • Password Vault

Please note that even with credential store or password vault, it is recommended to limit the access of configuration files (EAP_HOME/standalone/configuration or EAP_HOME/domain/configuration) to few users.

Let’s understand each one first.

Credential Store

The Credential Store has been introduced in JBoss EAP 7.1 with the elytron subsystem, it can safely secure sensitive and plan text strings by encryption them in a storage file. Each JBoss EAP server can contain multiple credential stores.

Questions about your own setup? A dbi services consultant can look at your case.

Talk to an expert (opens in a new tab)

The default credential store implementation uses a JCEKS keystore file to store credentials. When creating a new credential store, the default implementation also allows you to reference an existing keystore file or have JBoss EAP automatically create one for you.

Please note that elytron subsystem doesn’t provide any checks for using the same file storage to multiple credential stores, but it is strongly recommended not to use the same file for multiple credential stores.

I will share with you in a next blog how to:

  • Create a Credential Store in Standalone and domain mode
  • Add a Credential to the Credential Store
  • Use the stored Credential in the configuration
  • List the Credentials in the Credentials store
  • Remove a Credential from a Credential Store

Password Vault

The Password Vault uses the Java Keystore as its storage mechanism. Password vault consists of two parts: storage and key storage. Java keystore is used to store the key, which is used to encrypt or decrypt sensitive strings in Vault storage.

I already explained what is the Password vault and how to use it with example in this blog.

Credential Store vs Password Vault

Well, if you are reading this blog this means that you have probably not yet secured your sensitive strings 😀

Please note that both methods are supported by Red Hat, however, using a Credential Store is preferred to using a Password Vault, because of the following reasons:

  • Credential Store allow for easier credential management with the JBoss EAP management CLI, while you need to use an external tool with Password Vault (see blog)
  • Using multiple Credential Stores is allowed, while you are limited to only one Password Vault per JBoss EAP server.

So, if you are about to secure your sensitive string, no doubt go with Credential Store. Otherwise, if you are already using Password Vault you have the choice to keep it or migrate your sensitive strings to Credential Store.

I hope that this blog helped you to understand the difference between both, you can now make your choice.

As promised, I will share more details about the Credential Store configuration, so stay connected 😉

Let’s work together

Ready to operate at
the next level?

Tell us about your challenge. We’ll bring the depth, the expertise, and the Swiss precision.

David Diab

David Diab

David Diab has more than 10 years of experience deploying and administering enterprise applications. His expertise spans Elastic Stack, WebLogic, JBoss, Tomcat, and Documentum, plus DevOps tooling (Kubernetes, CI/CD), scheduling solutions (Control-M, Dollar Universe), backup (NetBackup, Backup Exec), and file transfer (CFT). He holds certifications including Elastic Certified Engineer, OpenText Certified Documentum Administrator, Oracle Certified Professional WebLogic Server 12c, Certified Kubernetes Administrator, and ITIL V3 Foundation. Prior to dbi services, David worked as Integration and Operations Engineer at PSA Peugeot Citroën and at Atos. He holds an Engineering degree in Computer Science from UTBM. His industry experience covers automotive, banking, cosmetics, pharmaceutical, insurance, and chemical sectors.View Author posts

75 posts since January 2019

Most read in Application Server

The Application Server posts our readers open most: the all-time favourites, and what is trending right now.

Leave a Comment

Your email address will not be published. Required fields are marked *