Insights

Thinking Cloud Encryption Satisfies UU PDP? Check Who Actually Holds the Keys

November 22, 2026
0:00
Ask a team how personal data is protected under UU PDP and a common answer is that everything is encrypted at rest because the cloud provider does it by default. The storage console says Encrypted, the checkbox in the compliance spreadsheet gets ticked, and the topic feels closed. In most default setups, though, the provider creates, stores, and uses the key for you. The encryption is real, but it tells you very little about who can read the data.
Encryption at rest means data is encrypted before it is written to disk and decrypted when it is read back. With provider-managed keys, that decryption is transparent. When your application, a staff member in the console, or anyone else with valid credentials asks the storage service for a file or a database row, the service decrypts it and hands back plaintext. Nobody along the way ever handles a key. That design protects against a specific and fairly narrow threat: someone getting the raw storage media outside the normal service path. Examples are a stolen or improperly disposed drive, or a low-level copy of a volume taken without going through the API. Those risks are worth covering, and default encryption covers them well. It does nothing against the paths personal data usually leaks through. A leaked access key, an over-permissioned IAM role, a public bucket, or a compromised admin account all go through the API, and the API decrypts for them. From a support desk point of view this shows up clearly after an account compromise. The attacker downloads customer files, and encryption at rest never enters the picture, because the storage service decrypted everything on request.
UU PDP (Law No. 27 of 2022 on Personal Data Protection) requires data controllers and processors to apply technical and organizational measures to protect personal data. Encryption is one of those measures. A summary from ManageEngine puts it this way: cloud encryption is a necessary foundation but not sufficient on its own, and it has to be combined with access controls such as role-based access and database-level security. The law does not tell you which key model to use, and how it applies to your organization is a question for legal counsel. The practical problem is evidence. If an auditor or a regulator asks who can decrypt a customer table, and the honest answer is anyone with the right IAM permission plus whatever the provider can do internally, encryption at rest has not answered the question. You need to show who can use the key, that you can revoke that use, and that every use is logged. This connects to your contract with the provider too. If the provider can technically decrypt, its access needs to be covered in the data processing agreement. There is a separate walkthrough on checking whether a data processing agreement meets UU PDP requirements.
Providers use different names, but most setups fall into one of these patterns.
ModelWho holds the key materialWho writes the access policyCan you cut off access yourself
Provider-owned default keyProvider, often not visible in your accountProviderNo
Provider-managed key visible in your accountProvider KMSMostly provider, limited visibilityUsually no
Customer-managed key in provider KMSProvider KMS or HSMYou, through the key policyYes, by disabling the key or editing the policy
External key store or your own HSMYou, outside the providerYouYes, and the provider loses access too
Application-level or client-side encryptionYour application or key serviceYouYes, and the provider only ever stores ciphertext
KMS (key management service) is the provider service that stores keys and performs encrypt and decrypt operations for you. With a customer-managed key, the key material usually still lives in the provider's hardware, but you decide which roles can use it and every use is logged in your account. For most teams that is the practical middle ground. External keys and application-level encryption give more control, but they add more to run, more ways to cause an outage, and real risk of permanent data loss if the key is lost.
Start by listing where personal data lives: databases, object storage buckets, block volumes, backups, and snapshots. For each one, find out which key encrypts it. The commands below use AWS as an example because its CLI output is easy to read. Google Cloud, Azure, and other providers have similar views, but the names and fields differ, so check their documentation. All of these commands only read data.
BASH
# Which encryption does a bucket use?
aws s3api get-bucket-encryption --bucket my-customer-uploads

# Which KMS key do RDS instances use?
aws rds describe-db-instances --query 'DBInstances[].[DBInstanceIdentifier,StorageEncrypted,KmsKeyId]' --output table

# Who manages that key, where does the key material come from, and which region is it in?
aws kms describe-key --key-id 'arn:aws:kms:REGION:ACCOUNT:key/KEY-ID' --query 'KeyMetadata.[KeyManager,Origin,KeyState,Arn]'
If the bucket reports AES256, it uses keys managed entirely by S3, and you will not find them in KMS at all. If it reports aws:kms, follow the key ID. On the key itself, KeyManager tells you whether the provider (AWS) or you (CUSTOMER) manage it. Origin tells you whether the provider generated the key material or it came from outside. The region is part of the ARN, so check that it matches where you claim the data is processed. Illustrative output format:
TEXT
[
    "CUSTOMER",
    "AWS_KMS",
    "Enabled",
    "arn:aws:kms:REGION:123456789012:key/EXAMPLE-KEY-ID"
]
This output means a customer-managed key with provider-generated key material. The next question is who can use it. Read the key policy and the grants. Grants are a second way services get permission to use a key, and teams often forget to check them.
BASH
aws kms get-key-policy --key-id 'KEY-ID' --policy-name default --output text
aws kms list-grants --key-id 'KEY-ID'
In the policy, look for which principals are allowed kms:Decrypt. A broad statement that hands the whole account root full key access means IAM policies decide everything. In that case you also have to audit every IAM role that has KMS permissions. Then confirm that decrypt calls are being recorded. On AWS, CloudTrail logs KMS operations such as Decrypt and GenerateDataKey. That only helps if the trail is enabled, the logs are retained, and someone actually reviews them. If you also need to prove that data and keys stay in Indonesia, that is a separate exercise, covered in verifying data residency step by step.
For most teams on a major cloud, the usual pattern is a customer-managed key for each class of personal data, not one key for everything. Each key policy separates two groups:
  • Key administrators can rotate, disable, or edit the key but cannot decrypt with it.
  • Key users are the application roles that need to decrypt and nothing else.
Human console access to decrypt is the exception, and it is logged. Automatic key rotation is turned on where the provider supports it. Backups and snapshots use the same managed keys, so a copy does not end up under a default key that nobody reviews. For fields that would cause real harm if leaked, such as national ID numbers or health data, some teams add application-level encryption on top. The database then only ever sees ciphertext, and a stolen database credential is no longer enough to read those fields. The trade-off is real: searching and sorting on encrypted fields gets harder, and key handling becomes your application's job. External key stores make sense when a contract or regulator requires that the provider can never decrypt. Treat that as a deliberate decision. If the external key service goes down, the data it protects cannot be read. The practical takeaway: an Encrypted label in the console only means the disks are protected. For each place personal data lives, find the key, read its policy and grants, check its region, and confirm decrypt calls are logged. If you cannot name who is able to decrypt a given dataset, you have found the gap to fix before an auditor asks.

Join My Newsletter & Get Updates!

Get notified whenever a new technical guide, server infrastructure breakdown, or personal reflection goes live, plus a curated weekly digest.