Using Transparent Sensitive Data Protection Policies with TDE Column Encryption
The TSDP procedures and Transparent Data Encryption column encryption statements can combine the protections of these two features.
-
About Using TSDP Policies with TDE Column Encryption
A TSDP policy can enable the encryption of columns that use Transparent Data Encryption. -
TDE Column Encryption ENCRYPT Clause Settings Used with TSDP Policies
TheCREATE TABLEandALTER TABLEstatementENCRYPTclause settings can be used in thePOLICY_ENABLE_OPTIONSparameter for theDBMS_TSDP_PROTECT.ADD_POLICYorDBMS_TSDP_PROTECT.ALTER_POLICYprocedure.
About Using TSDP Policies with TDE Column Encryption
A TSDP policy can enable the encryption of columns that use Transparent Data Encryption.
The DBMS_TSDP_PROTECT.ADD_POLICY and DBMS_TSDP_PROTECT.ALTER_POLICY procedures enable you to specify the ENCRYPT clause settings from the CREATE TABLE or ALTER TABLE statement.
This feature works as follows:
-
You can create a TSDP policy by using the
DBMS_TSDP_PROTECT.ADD_POLICYprocedure. In theADD_POLICYprocedure, you can configure the policy for column encryption by setting theSECURITY_FEATUREparameter toDBMS_TSDP_PROTECT.COLUMN_ENCRYPTION. This setting enables encryption on the sensitive column when the TSDP policy is enabled on the object. -
You create a TSDP policy with the necessary table encryption settings.
The TSDP policy uses TDE column encryption
ENCRYPTclause parameter settings from theCREATE TABLEorALTER TABLESQL statement. -
You associate the TSDP policy with the necessary sensitive types by using the
DBMS_TSDP_PROTECT.ASSOCIATE_POLICYprocedure. -
You then enable TSDP protection by using any of the
DBMS_TSDP_PROTECT.ENABLE_PROTECTION_* procedures. -
You enable the TSDP policy. At this point, Oracle Database creates an internal TSDP policy that uses the encrypted table settings that you created earlier in this procedure.
The name of the internal policy begins with
ORA$TDECE_followed by a random alpha-numeric string (for example,ORA#TDECE_6J6L3RSJSN2VAN0XF). You can find this policy by querying theTSDP_POLICYcolumn ofDBA_TSDP_POLICY_PROTECTIONview. -
When users try to perform an action on the table that is being protected by the policies, the output for the column is based on both the TDE column protections and the TSDP policy that are now in place. You can check if the column has been encrypted after you enabled the TSDP policy by querying the
ENCRYPTION_ALGcolumn of theDBA_ENCRYPTED_COLUMNSview. -
These protections remain in place until you disable the TSDP policy for this column. At that point, Oracle Database internally issues an
ALTER TABLEstatement on the table that contains the sensitive column, so that the sensitive column is decrypted. If you reenable the TSDP policy, then TSDP internally executes theALTER TABLEstatement with theENCRYPTclause for the column.
Note: It is possible to create two policies on the same column with each policy specifying a different encryption algorithm. In this case, the stronger of the two algorithms is enforced on the sensitive column.
Related Topics
TDE Column Encryption ENCRYPT Clause Settings Used with TSDP Policies
The CREATE TABLE and ALTER TABLE statement ENCRYPT clause settings can be used in the POLICY_ENABLE_OPTIONS parameter for the DBMS_TSDP_PROTECT.ADD_POLICY or DBMS_TSDP_PROTECT.ALTER_POLICY procedure.
The following table describes these settings.
| Parameter | Description | Default |
|---|---|---|
encrypt_algorithm |
Available values 3DES168AES128AES192AES256 (default if none specified) ARIA128ARIA192ARIA256 |
AES256 |
salt |
Available values: SALTNO SALT |
SALT |
integrity_algorithm |
Available values: SHA-1NOMAC |
SHA-1 |
Note: Starting with Oracle AI Database 26ai, the Transparent Data Encryption (TDE) decryption libraries for the GOST and SEED algorithms are deprecated, and encryption to GOST and SEED are desupported. Starting with Oracle AI Database 26ai, the Transparent Data Encryption (TDE) encryption libraries for the GOST and SEED algorithms are desupported and removed. The GOST and SEED decryption libraries are deprecated. Both are removed on HP Itanium platforms.GOST 28147-89 has been deprecated by the Russian government, and SEED has been deprecated by the South Korean government. If you need South Korean government-approved TDE cryptography, then use ARIA instead. If you are using GOST 28147-89, then you must decrypt and encrypt with another supported TDE algorithm. The decryption algorithms for GOST 28147-89 and SEED are included with Oracle AI Database 26ai, but are deprecated, and the GOST encryption algorithm is desupported with Oracle AI Database 26ai. If you are using GOST or SEED for TDE encryption, then Oracle recommends that you perform an online rekey operation before upgrading to Oracle AI Database 26ai. However, with the exception of the HP Itanium platform, the GOST and SEED decryption libraries are available with Oracle AI Database 26ai, so you can also decrypt after upgrading.