{"id":42501,"date":"2026-02-19T17:49:44","date_gmt":"2026-02-19T16:49:44","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/?p=42501"},"modified":"2026-02-19T17:49:46","modified_gmt":"2026-02-19T16:49:46","slug":"jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/","title":{"rendered":"JBoss EAP &#8211; Credential Stores: from optional best practice to mandatory security baseline"},"content":{"rendered":"\n<p>One of the most impactful (and often underestimated) differences between JBoss EAP 7.4 and JBoss EAP 8 is how credentials are handled.<\/p>\n\n\n\n<p>This is not just a documentation tweak or a recommendation shift. It is a hard security enforcement change driven by modern platform standards and compliance expectations from Red Hat.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>If you remember only one thing from this article, remember this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>JBoss EAP 7.4 allows credentials to be defined in multiple ways, including clear text.<\/li>\n\n\n\n<li>JBoss EAP 8 forces the use of Credential Stores for sensitive resources such as datasources.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-jboss-eap-7-4-credential-stores-were-optional\"><strong>JBoss EAP 7.4: Credential Stores were OPTIONAL<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n<\/ol>\n\n\n\n<p>In EAP 7.4, Elytron credential stores were already available and recommended, but not enforced.<\/p>\n\n\n\n<p>All of the following were valid and supported:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clear-text passwords in standalone.xml<\/li>\n\n\n\n<li>Encrypted expressions<\/li>\n\n\n\n<li>Elytron credential-store<\/li>\n\n\n\n<li>Legacy vault-based approaches (deprecated, but still functional)<\/li>\n<\/ul>\n\n\n\n<p>A datasource like this was perfectly valid in 7.4:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;datasource jndi-name=\"java:\/jdbc\/MyDS\" pool-name=\"MyDS\"&gt;\n    &lt;connection-url&gt;jdbc:postgresql:\/\/db:5432\/app&lt;\/connection-url&gt;\n    &lt;user-name&gt;app&lt;\/user-name&gt;\n    &lt;password&gt;secret123&lt;\/password&gt;\n&lt;\/datasource&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-jboss-eap-8-credential-stores-are-effectively-mandatory\"><strong>JBoss EAP 8: Credential Stores are EFFECTIVELY MANDATORY<\/strong><\/h2>\n\n\n\n<p>With JBoss EAP 8, Red Hat made a clear and intentional decision, sensitive credentials must no longer be stored directly in configuration files.<\/p>\n\n\n\n<p>What changed in practice:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The element for datasources is no longer the supported approach<\/li>\n\n\n\n<li>Datasources are expected to use credential-reference<\/li>\n\n\n\n<li>Elytron is no longer just the default security framework, it is the only one<\/li>\n<\/ul>\n\n\n\n<p>A valid datasource configuration in EAP 8 looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;datasource jndi-name=\"java:\/jdbc\/MyDS\" pool-name=\"MyDS\"&gt;\n    &lt;connection-url&gt;jdbc:postgresql:\/\/db:5432\/app&lt;\/connection-url&gt;\n    &lt;user-name&gt;app&lt;\/user-name&gt;\n    &lt;credential-reference store=\"cs-db\" alias=\"db-password\"\/&gt;\n&lt;\/datasource&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-this-enforcement-exists-in-eap-8\">Why this enforcement exists in EAP 8<\/h2>\n\n\n\n<p>This change is not accidental or cosmetic. It aligns EAP with:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>OpenShift and container-native security expectations<\/li>\n\n\n\n<li>Compliance-driven environments (CIS, ISO, regulated industries)<\/li>\n\n\n\n<li>Modern \u201csecrets management\u201d practices<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-forced-does-not-mean-hard\">\u201cForced\u201d does not mean \u201chard\u201d<\/h2>\n\n\n\n<p>A common fear when moving to EAP 8 is: \u201cNow everything is complicated\u201d because of security!<\/p>\n\n\n\n<p>In reality, the operational model becomes cleaner and more consistent.<\/p>\n\n\n\n<p>Typical pattern:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create one credential store<\/li>\n\n\n\n<li>Add secrets once<\/li>\n\n\n\n<li>Reference them everywhere<\/li>\n<\/ol>\n\n\n\n<p>CLI example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/subsystem=elytron\/credential-store=cs-db:add(\n  path=cs-db.jceks,\n  relative-to=jboss.server.config.dir,\n  credential-reference={clear-text=changeit}\n)\n\n\/subsystem=elytron\/credential-store=cs-db:add-alias(\n  alias=db-password,\n  secret-value=secret123\n)\n<\/code><\/pre>\n\n\n\n<p>From that point on:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>No passwords in XML<\/li>\n\n\n\n<li>No passwords in Git<\/li>\n\n\n\n<li>No accidental leaks<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-migration-impact-where-most-upgrades-fail\">Migration impact: where most upgrades fail<\/h2>\n\n\n\n<p>When upgrading from EAP 7.4 to EAP 8, you must:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Identify all clear-text credentials<\/li>\n\n\n\n<li>Move them into credential stores<\/li>\n\n\n\n<li>Replace &lt;password&gt; with &lt;credential-reference&gt;<\/li>\n<\/ul>\n\n\n\n<p>This step is mandatory in EAP 8.<\/p>\n\n\n\n<p>Good news: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you already used credential stores in 7.4: migration is straightforward<\/li>\n\n\n\n<li>If you didn\u2019t: EAP 8 forces a long-overdue cleanup \ud83d\ude09<\/li>\n<\/ul>\n\n\n\n<p>If you\u2019re planning a move to JBoss EAP 8, I can help you get there safely.<br>From credential-store migration to full security hardening, I support organizations in turning a mandatory change into a controlled, successful upgrade.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the most impactful (and often underestimated) differences between JBoss EAP 7.4 and JBoss EAP 8 is how credentials are handled. This is not just a documentation tweak or a recommendation shift. It is a hard security enforcement change driven by modern platform standards and compliance expectations from Red Hat.<\/p>\n","protected":false},"author":46,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3687],"tags":[119,2564],"type_dbi":[],"class_list":["post-42501","post","type-post","status-publish","format-standard","hentry","category-jboss-eap","tag-jboss-eap","tag-security-3"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>JBoss EAP - Credential Stores: from optional best practice to mandatory security baseline - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JBoss EAP - Credential Stores: from optional best practice to mandatory security baseline\" \/>\n<meta property=\"og:description\" content=\"One of the most impactful (and often underestimated) differences between JBoss EAP 7.4 and JBoss EAP 8 is how credentials are handled. This is not just a documentation tweak or a recommendation shift. It is a hard security enforcement change driven by modern platform standards and compliance expectations from Red Hat.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-19T16:49:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-19T16:49:46+00:00\" \/>\n<meta name=\"author\" content=\"David Diab\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Diab\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/\"},\"author\":{\"name\":\"David Diab\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/deb907c3360cacdc6c7df54b4bac3c86\"},\"headline\":\"JBoss EAP &#8211; Credential Stores: from optional best practice to mandatory security baseline\",\"datePublished\":\"2026-02-19T16:49:44+00:00\",\"dateModified\":\"2026-02-19T16:49:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/\"},\"wordCount\":408,\"commentCount\":0,\"keywords\":[\"JBoss EAP\",\"Security\"],\"articleSection\":[\"JBoss EAP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/\",\"name\":\"JBoss EAP - Credential Stores: from optional best practice to mandatory security baseline - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2026-02-19T16:49:44+00:00\",\"dateModified\":\"2026-02-19T16:49:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/deb907c3360cacdc6c7df54b4bac3c86\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JBoss EAP &#8211; Credential Stores: from optional best practice to mandatory security baseline\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/deb907c3360cacdc6c7df54b4bac3c86\",\"name\":\"David Diab\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g\",\"caption\":\"David Diab\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/david-diab\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JBoss EAP - Credential Stores: from optional best practice to mandatory security baseline - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/","og_locale":"en_US","og_type":"article","og_title":"JBoss EAP - Credential Stores: from optional best practice to mandatory security baseline","og_description":"One of the most impactful (and often underestimated) differences between JBoss EAP 7.4 and JBoss EAP 8 is how credentials are handled. This is not just a documentation tweak or a recommendation shift. It is a hard security enforcement change driven by modern platform standards and compliance expectations from Red Hat.","og_url":"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/","og_site_name":"dbi Blog","article_published_time":"2026-02-19T16:49:44+00:00","article_modified_time":"2026-02-19T16:49:46+00:00","author":"David Diab","twitter_card":"summary_large_image","twitter_misc":{"Written by":"David Diab","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/"},"author":{"name":"David Diab","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/deb907c3360cacdc6c7df54b4bac3c86"},"headline":"JBoss EAP &#8211; Credential Stores: from optional best practice to mandatory security baseline","datePublished":"2026-02-19T16:49:44+00:00","dateModified":"2026-02-19T16:49:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/"},"wordCount":408,"commentCount":0,"keywords":["JBoss EAP","Security"],"articleSection":["JBoss EAP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/","url":"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/","name":"JBoss EAP - Credential Stores: from optional best practice to mandatory security baseline - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2026-02-19T16:49:44+00:00","dateModified":"2026-02-19T16:49:46+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/deb907c3360cacdc6c7df54b4bac3c86"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/jboss-eap-credential-stores-from-optional-best-practice-to-mandatory-security-baseline\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JBoss EAP &#8211; Credential Stores: from optional best practice to mandatory security baseline"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/deb907c3360cacdc6c7df54b4bac3c86","name":"David Diab","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/212b1b2e4650bad3116f644ab4fb4663786d94195d7685d0704c8426da088e60?s=96&d=mm&r=g","caption":"David Diab"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/david-diab\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/42501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/46"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=42501"}],"version-history":[{"count":2,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/42501\/revisions"}],"predecessor-version":[{"id":42996,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/42501\/revisions\/42996"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=42501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=42501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=42501"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=42501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}