[ 
https://issues.apache.org/jira/browse/HBASE-30387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Luca Kovacs updated HBASE-30387:
--------------------------------
    Release Note: 
Adds support for single-EKU certificates, where a certificate is valid only for 
TLS server authentication or only for TLS client authentication, not both.
HBase can now use a separate keystore and truststore for each TLS role it 
plays, instead of one shared keystore.

New role-scoped configuration keys:

RPC:
    - hbase.rpc.tls.server.{keystore,truststore}.{location,password,type}
    - hbase.rpc.tls.client.{keystore,truststore}.{location,password,type}
The server keys are used by the RPC server and the client keys by the RPC 
client. This includes server processes when they act as clients, e.g. 
RegionServer to Master. Certificate file reloading watches whichever store is 
actually in use.

REST server:
    - hbase.rest.ssl.server.keystore.{store,password,keypassword,type}
    - hbase.rest.ssl.server.truststore.{store,password,type}
    - hbase.rest.ssl.server.client.auth.mode (NONE | WANT | NEED, default NONE)

Thrift server:
    - hbase.thrift.ssl.server.keystore.{store,password,keypassword,type}
    - hbase.thrift.ssl.server.truststore.{store,password,type}   (new; no 
legacy equivalent)
    - hbase.thrift.ssl.server.client.auth.mode (NONE | WANT | NEED, default 
NONE)

Web UI (InfoServer):
    - hbase.ui.ssl.server.<key>   (e.g. hbase.ui.ssl.server.keystore.location)
    - hbase.ui.ssl.server.client.auth.mode (NONE | WANT | NEED, default NONE)
Each key is looked up in order: hbase.ui.ssl.server.*, then hbase.ui.ssl.*, 
then ssl.server.*.

Backward compatibility:
The existing unscoped keys (hbase.rpc.tls.*, hbase.rest.ssl.*, 
hbase.thrift.ssl.*, hbase.ui.ssl.*) still work as a fallback, so existing 
deployments need no changes. For RPC, REST and Thrift, the choice of prefix is 
made once per store, based on whether the role-scoped location key is set. All 
attributes of that store then come from the same prefix, so a role-scoped 
location is never paired with a legacy password or type. If role-scoped keys 
are in use and legacy keys for the same store are still present, a WARN lists 
the legacy keys that are now unused so they can be removed after migration.

Startup fails with a clear error message in these cases:
    - Any role-scoped key of a store is set (e.g. 
hbase.rpc.tls.server.keystore.password) but that store's role-scoped location 
key is not.
    - client.auth.mode is WANT or NEED but no truststore is configured. Without 
this check, Jetty would quietly trust the keystore or the JVM cacerts for 
client certificates.

Client certificate authentication (mTLS) on the REST, Thrift HTTP and Web UI 
connectors is opt-in. The default of NONE keeps today's behavior of never 
requesting a client certificate.
    


> Support SingleEKU certificates
> ------------------------------
>
>                 Key: HBASE-30387
>                 URL: https://issues.apache.org/jira/browse/HBASE-30387
>             Project: HBase
>          Issue Type: Improvement
>          Components: security
>            Reporter: Luca Kovacs
>            Assignee: Luca Kovacs
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0-alpha-1, 2.7.0, 3.1.0, 3.0.1, 2.6.8
>
>
> h2. Motivation
> HBase currently only supports dual-purpose certificates. These certificate 
> carry both the serverAuth and clientAuth Extended Key Usages (EKUs), meaning 
> the same key and certificate is used whether the service running on the host 
> is acting as a TLS server or as a client in a mutual-TLS (mTLS) handshake.
> Industry standards and public CA-s (like DigiCert) are sunsetting multi-use 
> certificates, making the current requirement for dual serverAuth and 
> clientAuth EKUs difficult to manage.
> h2. Goal
> Allow configuring a separate client keystore and server truststore so that 
> single-EKU certificates work out of the box, while maintaining full backward 
> compatibility when only the existing properties are set.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to