Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFeF5-00057N-0r for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jan 2023 16:46:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pFeF3-0006Su-O8 for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jan 2023 16:46:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFeF3-0006Sk-DS for pgsql-hackers@lists.postgresql.org; Wed, 11 Jan 2023 16:46:21 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pFeEy-0006RD-IT for pgsql-hackers@postgresql.org; Wed, 11 Jan 2023 16:46:20 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id t15-20020a4a96cf000000b0049f7e18db0dso4169630ooi.10 for ; Wed, 11 Jan 2023 08:46:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JRkFJr5K0QIk2YsX4UWPvoZp/tEn4D74pbuQtf60/IQ=; b=QRKkkbYGWtwSDVGnZdZfZIWNanQgpIhrGKe47CyBCFV9jU5uZyS90IjfT5vDn5KZkS 8pHxORRoyzhdeHbkXCJbv7Q0ZoTpE5H9XralnfBS7jWbrFNn9u4UryqjfD0Ic+my7bpA Fvl5SSId3E3qGqa+k5q498XWjb+gw6xRgqptc4PEQqPUkZXrZIkbU/tZaStlvSgGklNp 7FKLTV0ukQmcWy6KfgU31veY6H4IDrnOWPI1Y7UtJ+jKuO/+hMi0dqlyVIoCbNbKlRBa 3TGq8qZVrsuyBAvkCQ88tPHk43W4TtHnzQ0vqjvedbUNM7lbhGyje+zuJ4znnnVbgBhY So1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JRkFJr5K0QIk2YsX4UWPvoZp/tEn4D74pbuQtf60/IQ=; b=H9yZSQTAKY9KcP1TtCLUsRH1EexATLd8LSz509U6iukHsD/nkt6wvZC8fPBa7sUfP6 7hhCU3uT6gtj5XAwkvnOvfjqpXN1rvvKK6Rak6jrZqBHZ8QchnLgI0gkdsCna1fgTPBz n/6sna1NUZvErWNBmuhAG7e3b3fsjBWSbysLuVm4DeEkW+CJzoBgZn15BXfL8pbyVgQX sbY2YHfFPEXFVSwXWcoCaF7U+s31q6XpMBF6KRoLEWmvQSrakez5paMvZSoxVkdZ5Gj+ vtUIoI8QUwrYLTPuwJEqPBsuk+NHBYnOcW0qhl374YgCm28zTjvmNBrDnG+enlTlpFKL sOGA== X-Gm-Message-State: AFqh2kpIQoO4DhA8+7DWrZMqVfdJb97ofitb6MtOuv2i9ZhtRm7w4V0U CqoHSKWucDd4OiYqoKNdOryfFGZqCNdbaLcF5ILzkaN6Z9HbXA== X-Google-Smtp-Source: AMrXdXv1TfvrrAXnCY8IbUZ/GZKHG7G4ylUB0liPdlbPOqZX/o07wqYfzsX52brlT/LPVtHgpHZMHoIk9wEoPtQvvfU= X-Received: by 2002:a05:6820:1344:b0:4b0:5269:7717 with SMTP id b4-20020a056820134400b004b052697717mr3269636oow.5.1673455575557; Wed, 11 Jan 2023 08:46:15 -0800 (PST) MIME-Version: 1.0 References: <89157929-c2b6-817b-6025-8e4b2d89d88f@enterprisedb.com> <48a9f2c2-4a57-27d8-7c53-16a23a01014e@enterprisedb.com> <79f08a39-a7da-5157-cef4-378fb60c18f8@enterprisedb.com> <258c5064-437e-f41e-7537-5e8c343c33cc@enterprisedb.com> <6bd99fea-3298-854d-d37f-554151342f36@enterprisedb.com> <963aa100-7e78-3463-0645-700eaaa325f2@enterprisedb.com> <06830254-6d87-86b2-0280-bf2eee7736a5@enterprisedb.com> <75f394fa-f539-1875-079c-c654deceed41@enterprisedb.com> <8bcedb49-1496-0755-bd24-1cbabf30ec84@enterprisedb.com> In-Reply-To: From: vignesh C Date: Wed, 11 Jan 2023 22:16:02 +0530 Message-ID: Subject: Re: Transparent column encryption To: Peter Eisentraut Cc: pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 31 Dec 2022 at 19:47, Peter Eisentraut wrote: > > On 21.12.22 06:46, Peter Eisentraut wrote: > > And another update. The main changes are that I added an 'unspecified' > > CMK algorithm, which indicates that the external KMS knows what it is > > but the database system doesn't. This was discussed a while ago. I > > also changed some details about how the "cmklookup" works in libpq. Also > > added more code comments and documentation and rearranged some code. > > > > According to my local todo list, this patch is now complete. > > Another update, with some merge conflicts resolved. I also fixed up the > remaining TODO markers in the code, which had something to do with Perl > and Windows. I did some more work on schema handling, e.g., CREATE > TABLE / LIKE, views, partitioning etc. on top of encrypted columns, > mostly tedious and repetitive, nothing interesting. I also rewrote the > code that extracts the underlying tables and columns corresponding to > query parameters. It's now much simpler and better encapsulated. The patch does not apply on top of HEAD as in [1], please post a rebased patch: === Applying patches on top of PostgreSQL commit ID 5f6401f81cb24bd3930e0dc589fc4aa8b5424cdc === === applying patch ./v14-0001-Transparent-column-encryption.patch .... Hunk #1 FAILED at 1109. .... 1 out of 5 hunks FAILED -- saving rejects to file doc/src/sgml/protocol.sgml.rej .... patching file doc/src/sgml/ref/create_table.sgml Hunk #3 FAILED at 351. Hunk #4 FAILED at 704. 2 out of 4 hunks FAILED -- saving rejects to file doc/src/sgml/ref/create_table.sgml.rej .... Hunk #1 FAILED at 1420. Hunk #2 FAILED at 4022. 2 out of 2 hunks FAILED -- saving rejects to file doc/src/sgml/ref/psql-ref.sgml.rej [1] - http://cfbot.cputube.org/patch_41_3718.log Regards, Vignesh