GNUPG and Google Cloud

David Gordon DavidWGordon1011 at
Wed Aug 17 00:22:11 CEST 2022


Pub/Sub & Data Flow would require us to have a larger "footprint" on-prem that we wanted. We want to keep our on-prem environment as small as possible. Additionally, most of our data will be transferred using flat files that do not lend themselves to being sent via pub-sub.

For the on-prem encrypting, could I have the GKE container(s), shell out to GnuPG to do the encrypting and then "send" the encrypted file to Cloud Storage? Would I then use Secret Manager or Cloud KMS to store my keys or would there be a way to use Kleopatra?

We need to encrypt the data all stages because it contains PII information and we don't want it un-encrypted at any stage especially when it is being sent to GCP.


From: C.J. Collier <cjac at>
Sent: Tuesday, August 16, 2022 4:29 PM
To: David Gordon <DavidWGordon1011 at>
Cc: gnupg-users at
Subject: Re: GNUPG and Google Cloud

Hi David,

I would take a look at Secret Manager[1] as a way to store your private key material confidentially.  Perhaps consider Cloud Run[2] as a mechanism for execution of arbitrary code, in this case for instance with the encryption/decryption pipeline using the python runtime and python-gnupg[3] library.

You might instead find Cloud Pub/Sub[4] and Dataflow[5] to be useful for streaming the data from your on-prem environment to GCS, and from GCS to BigQuery.

In short, yes, there are a variety of ways to perform the steps that you're talking about on GCP.  You should be able to develop a proof of concept on a small scale while staying within the limits of the free tier[6].  I'm not quite clear on why you would want to encrypt the data when you will eventually decrypt it for storage into BigQuery, but yes, it is feasible.



On Tue, Aug 16, 2022 at 11:33 AM David Gordon <DavidWGordon1011 at<mailto:DavidWGordon1011 at>> wrote:

We were looking for a server-less solution. What we want to do is take data from a legacy mainframe system, encrypt it via PGP, and then via GKE transfer it to Cloud Storage. From there we want to decrypt it via GnuPG, save it in Cloud Storage and then load it into Big Query.


From: C.J. Collier <cjac at<mailto:cjac at>>
Sent: Tuesday, August 16, 2022 10:23 AM
To: David Gordon <DavidWGordon1011 at<mailto:DavidWGordon1011 at>>
Cc: gnupg-users at<mailto:gnupg-users at>
Subject: Re: GNUPG and Google Cloud

Hi there!

Are you looking for a server-less solution or will a Debian instance on GCE or GKE suffice?

You can "deploy" GNUPG with apt-get.  Decrypting content would require getting a private key or an agent onto the system.

Can you give more details about what you're looking for?

C.J. in Cloud Support, Seattle
GCP Technical Solutions Engineer

On Tue, Aug 16, 2022, 05:49 David Gordon via Gnupg-users <gnupg-users at<mailto:gnupg-users at>> wrote:
Can GnuPG be deployed to GCP to decrypt files? If so, is there a recommended approach?


Sent from Mail<> for Windows

Gnupg-users mailing list
Gnupg-users at<mailto:Gnupg-users at><>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Gnupg-users mailing list