Skip to content

Add export control notice for bundled cryptography - #2004

Merged
tuhaihe merged 3 commits into
apache:mainfrom
tuhaihe:add-export-control-notice
Sep 18, 2026
Merged

tuhaihe merged 3 commits into
apache:mainfrom
tuhaihe:add-export-control-notice

Conversation

@tuhaihe

@tuhaihe tuhaihe commented Sep 15, 2026

Copy link
Copy Markdown
Member

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 <private@incubator.apache.org>
    

    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

Fixes #ISSUE_Number

What does this PR do?

Type of Change

  • Bug fix (non-breaking change)
  • New feature (non-breaking change)
  • Breaking change (fix or feature with breaking changes)
  • Documentation update

Breaking Changes

Test Plan

  • Unit tests added/updated
  • Integration tests added/updated
  • Passed make installcheck
  • Passed make -C src/test installcheck-cbdb-parallel

Impact

Performance:

User-facing changes:

Dependencies:

Checklist

Additional Context

CI Skip Instructions


@tuhaihe tuhaihe added this to the 2.2 milestone Sep 15, 2026
@tuhaihe
tuhaihe marked this pull request as ready for review September 17, 2026 10:05
@tuhaihe

tuhaihe commented Sep 17, 2026

Copy link
Copy Markdown
Member Author

Now it's ready for review. This change primarily takes this document as a reference: https://infra.apache.org/crypto.html#inform.

cc @leborchuk

@tuhaihe
tuhaihe requested a review from leborchuk September 17, 2026 10:08

@leborchuk leborchuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I've read https://infra.apache.org/crypto.html#inform - all looks fine

Comment thread README.md Resolved
@tuhaihe

tuhaihe commented Sep 18, 2026

Copy link
Copy Markdown
Member Author

Good catch, thanks — you are right, and I have added it in b23b9e6.

I checked it against a release-configuration build on Rocky 9 rather than
going by the source alone:

  • pg_config.h carries #define USE_OPENSSL 1, so the USE_SSL blocks you
    found are compiled in
  • bin/gpfdist ships in the packages and links libssl.so.3 and
    libcrypto.so.3, with 14 SSL symbols in the binary
  • its help text offers --ssl dir : start HTTPS server. Use the certificates from the specified directory
  • gpfdist.c:4364 calls SSL_CTX_use_certificate_chain_file() to load the
    chain

So it terminates TLS as a server using X.509 certificates, which is squarely
within 5D002.

I listed it on its own line rather than folding it into the first entry, for
two reasons: it is a standalone executable that people often deploy on hosts
away from the database, and it acts as a TLS server loading certificates
rather than just encrypting a client connection.

My first pass covered the server process and pgcrypto and missed the separate
binaries, so this was a real gap.

One related note: the eccnmatrix entry in apache/www-site#749 does not need a
change for this. Its controlled-source link points at the whole cloudberry
repository, so gpfdist is already covered.

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 <private@incubator.apache.org>

    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
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
@tuhaihe
tuhaihe force-pushed the add-export-control-notice branch from b23b9e6 to e09798a Compare September 18, 2026 03:55
@tuhaihe
tuhaihe merged commit 2b46a45 into apache:main Sep 18, 2026
110 checks passed
leborchuk pushed a commit that referenced this pull request Oct 1, 2026
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 <private@incubator.apache.org>

    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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants