Restricting decrypt permission

Adaptive Server version 15.0.2 enhances data privacy from the administrator even if you continue using the system encryption password for key protection. If you prefer to avoid password management and continue to use the system encryption password to protect encryption keys, you can restrict access to private data from the DBO by setting the restricted decrypt permission configuration parameter. This parameter grants the system security officer (SSO) control over which users have decrypt permissions. Once restricted decrypt permission is enabled, the SSO is the only user who receives implicit decrypt permission and who has implicit privilege to grant that permission to others. The SSO determines which users receive decrypt permission, or delegates this job to another user by granting decrypt permission with the with grant option. Table owners do not automatically have decrypt permission on their tables.

Users with execute permission on stored procedures or user-defined functions do not have implicit permission to decrypt data selected by the procedure or function. Users with decrypt permission on a view column do not have implicit permission to decrypt data selected by the view.

Summary information

Default value

0 (off)

Range of values

0 (off), 1 (on)

Status

Dynamic

Display level

Basic

Required role

System Security Officer

When run by the SSO, the following command enables or disables restricted decrypt permission in all databases:

sp_configure "restricted decrypt permission", [1 | 0]

When restricted decrypt permission is set to 0 (off), decrypt permission on encrypted columns acts the same as in earlier versions:

When restricted decrypt permission is set to 1 (on):

If you change restricted decrypt permission from 0 to 1, currently executing statements that use implicit decrypt permission complete. Any subsequent statements that use implicit decrypt permission fail with this error message until the SSO grants the user decrypt permission on the necessary columns:

Msg 10330 "DECRYPT permission denied on object object_name, database
database_name, owner owner_name."

If you change restricted decrypt permission from 1 to 0, the rows that reflect explicit grants remain in sysprotects. However, these rows have no effect on implicitly granted decrypt permissions because Adaptive Server does not check sysprotects to make sure decrypt permission can be implicitly granted. sp_helprotect displays misleading information for only those users who were granted or revoked explicit decrypt permission before the system was re-configured and who now have implicit decrypt permission.

Sybase recommends that you revoke any explicit decrypt permissions granted to users before you switch between enabling or disabling restricted decrypt permission to keep the system consistent.