From fa5520e0d19bc0a1dff9f5de95266777fbfa5a1b Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Tue, 15 Sep 2026 11:16:28 +0800 Subject: [PATCH 1/3] Add export control notice for bundled cryptography Justin Mclean noted during the 2.2.0-rc1 IPMC vote that the release has no crypto export notice despite shipping contrib/pgcrypto, and that Cloudberry does not appear on https://www.apache.org/licenses/exports/. infra.apache.org/crypto.html requires the notice in the README of each distribution, so add it there, listing the components of the release that involve cryptography: OpenSSL for TLS and SCRAM-SHA-256, optional GSSAPI and LDAP over TLS, and the bundled pgcrypto extension. The build links against the operating system's OpenSSL and does not ship it, which the notice states because it determines who is named as manufacturer in the BIS notification. This commit only covers the README. Two steps remain, and neither lives in the source tree: - adding Cloudberry to https://www.apache.org/licenses/exports/, which is a pull request against apache/www-site, file data/eccn/eccnmatrix.yaml. Podlings do not get their own top-level entry there; sixteen of them sit as products under a single - href: https://incubator.apache.org/ name: Apache Incubator Project contact: Apache Incubator PMC umbrella, so Cloudberry belongs under that one, with the contact inherited from the Incubator PMC rather than one of our own lists. - sending the ECCN 5D002 notification to crypt@bis.doc.gov, enc@nsa.gov and web_site@bis.doc.gov. This is a named legal notification submitted on behalf of the ASF. The procedure describes it as coming from the PMC chair, and for a project in incubation the PMC is the Incubator PMC; infra.apache.org/crypto.html says nothing about podlings, so who sends it is a question for our mentors. The site build generates the text of this email from the matrix entry, so it does not have to be written by hand. Per the same page those are supposed to happen before the code is posted publicly, so they are overdue rather than new; the notification names the product without a version and does not need repeating per release. Assisted-by: Claude Code Backpatch-through: REL_2_STABLE --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index e332b06b309..2ec74410703 100644 --- a/README.md +++ b/README.md @@ -132,6 +132,37 @@ Apache Cloudberry has a sound foundation. Cloudberry is licensed under the Apache License, Version 2.0. For details, see the [LICENSE](./LICENSE). +## Export control + +This distribution includes cryptographic software. The country in which you +currently reside may have restrictions on the import, possession, use, and/or +re-export to another country, of encryption software. BEFORE using any +encryption software, please check your country's laws, regulations and +policies concerning the import, possession, or use, and re-export of +encryption software, to see if this is permitted. See + for more information. + +The U.S. Government Department of Commerce, Bureau of Industry and Security +(BIS), has classified this software as Export Commodity Control Number (ECCN) +5D002.C.1, which includes information security software using or performing +cryptographic functions with asymmetric algorithms. The form and manner of +this Apache Software Foundation distribution makes it eligible for export +under the License Exception ENC Technology Software Unrestricted (TSU) +exception (see the BIS Export Administration Regulations, Section 740.13) for +both object code and source code. + +The following provides more details on the included cryptographic software: + +- Apache Cloudberry uses OpenSSL for TLS support on client and server + connections, and for the SCRAM-SHA-256 authentication method. +- Apache Cloudberry optionally uses GSSAPI (Kerberos) for authentication and + connection encryption, and LDAP over TLS for authentication. +- The bundled `pgcrypto` extension provides cryptographic functions to SQL, + using either OpenSSL or its own built-in implementations. + +Apache Cloudberry does not ship OpenSSL itself; it links against the OpenSSL +provided by the operating system. + ## ASF Incubator disclaimer Apache Cloudberry is an effort undergoing incubation at The Apache Software From 3e6d744bc6ce7baabbb03e50306a6123024282b6 Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Thu, 17 Sep 2026 18:05:14 +0800 Subject: [PATCH 2/3] Update text for cypto export control --- README.md | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 2ec74410703..70ec2505abd 100644 --- a/README.md +++ b/README.md @@ -132,26 +132,27 @@ Apache Cloudberry has a sound foundation. Cloudberry is licensed under the Apache License, Version 2.0. For details, see the [LICENSE](./LICENSE). -## Export control - -This distribution includes cryptographic software. The country in which you -currently reside may have restrictions on the import, possession, use, and/or -re-export to another country, of encryption software. BEFORE using any -encryption software, please check your country's laws, regulations and -policies concerning the import, possession, or use, and re-export of -encryption software, to see if this is permitted. See - for more information. - -The U.S. Government Department of Commerce, Bureau of Industry and Security -(BIS), has classified this software as Export Commodity Control Number (ECCN) -5D002.C.1, which includes information security software using or performing -cryptographic functions with asymmetric algorithms. The form and manner of -this Apache Software Foundation distribution makes it eligible for export -under the License Exception ENC Technology Software Unrestricted (TSU) -exception (see the BIS Export Administration Regulations, Section 740.13) for -both object code and source code. - -The following provides more details on the included cryptographic software: +## Crypto Export Notice + +This distribution includes cryptographic software. The country in +which you currently reside may have restrictions on the import, +possession, use, and/or re-export to another country, of +encryption software. BEFORE using any encryption software, please +check your country's laws, regulations and policies concerning the +import, possession, or use, and re-export of encryption software, to +see if this is permitted. See http://www.wassenaar.org for +more information. + +The Apache Software Foundation has classified this software as Export Commodity +Control Number (ECCN) 5D002, which includes information security +software using or performing cryptographic functions with asymmetric +algorithms. The form and manner of this Apache Software Foundation +distribution makes it eligible for export under the "publicly available" +Section 742.15(b) exemption (see the BIS Export Administration Regulations, +Section 742.15(b)) for both object code and source code. + +The following provides more details on the included cryptographic +software: - Apache Cloudberry uses OpenSSL for TLS support on client and server connections, and for the SCRAM-SHA-256 authentication method. From e09798a4eba08f1cc81baaf909e990105a469a8f Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Fri, 18 Sep 2026 10:04:21 +0800 Subject: [PATCH 3/3] Add gpfdist to the export control notice Leonid Borchuk pointed out on the pull request that gpfdist guards openssl/ssl.h, openssl/rand.h and openssl/err.h behind USE_SSL, and can be given SSL certificates, so it involves asymmetric cryptography too. That is right, and the notice missed it: the first pass covered the server process and pgcrypto but not the separate binaries. Checked against a release-configuration build on Rocky 9: - pg_config.h carries USE_OPENSSL - bin/gpfdist ships in the packages and links libssl.so.3 and libcrypto.so.3, with 14 SSL symbols - its help text offers "--ssl dir : start HTTPS server. Use the certificates from the specified directory" - gpfdist.c calls SSL_CTX_use_certificate_chain_file to load the chain It is listed on its own line rather than folded into the first entry because it is a standalone executable that is often deployed on hosts away from the database, and because it terminates TLS as a server using X.509 certificates rather than merely encrypting a client connection. The eccnmatrix entry in apache/www-site#749 needs no change: its source link covers the whole cloudberry repository, gpfdist included. Assisted-by: Claude Code Backpatch-through: REL_2_STABLE --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 70ec2505abd..938367b8669 100644 --- a/README.md +++ b/README.md @@ -160,6 +160,9 @@ software: connection encryption, and LDAP over TLS for authentication. - The bundled `pgcrypto` extension provides cryptographic functions to SQL, using either OpenSSL or its own built-in implementations. +- The `gpfdist` external table file server can serve over HTTPS, using OpenSSL + and X.509 certificates supplied through its `--ssl ` + option. Apache Cloudberry does not ship OpenSSL itself; it links against the OpenSSL provided by the operating system.