Field Encryption locks encrypted fields and attachments until an administrator grants access. Three components control that access: cryptographic modules hold the algorithm and keys, encrypted field configurations choose which fields are protected, and module access policies decide which users, scripts or system processes may read or write the data. Configure them in that order, with the roles below.
Choosing between Field Encryption Starter and Enterprise
Your subscription decides which version you can build. Starter is the standard version. It caps encrypted fields at five, has no attachment encryption, and leaves key rotation to ServiceNow Support. Enterprise removes the field cap, encrypts attachments, and lets your own team manage keys from the instance. Enterprise requires a paid subscription.
| Area | Field Encryption Starter | Field Encryption Enterprise |
|---|---|---|
| Encrypted fields | Up to five | No fixed limit |
| Attachment encryption | Not included | Included |
| Key management | Key rotation through ServiceNow Support | Managed from the instance |
| Customer-supplied keys | Not included | Included |
| External key management | Not included | Included |
Enterprise is built on the Key Management Framework, which adds key life-cycle management, key protection in FIPS 140-2 Level 3 hardware security modules, and audit records of key use. Non-deterministic encryption (AES in CBC mode) is switched on with the Equality Preserving option in the cryptographic specification.
Three limits affect planning. Enterprise does not support Domain Separation. Field Encryption does not cover fields or attachments on system tables whose names begin with sys_. And changes to encrypted fields are not tracked in the record activity stream or the record history table, so plan any change audit separately.
Activation needs the admin role and is done from the plugin list. Field Encryption replaced Column Level Encryption from the Yokohama release, and Column Level Encryption Enterprise does not grant the Enterprise entitlement automatically.
Roles you need before you configure anything
| Role | Used for |
|---|---|
| admin | Elevating to Security Admin and installing the plugin |
| security_admin | Encrypted field configurations, Access Observer, and module and policy work |
| sn_kmf.admin | Key Management Framework administration and customer-supplied key setup |
| sn_kmf.cryptographic_manager | Creating modules and policies, key life-cycle work, mass jobs and declined request review |
Admins elevate by choosing Elevate Role from the profile menu and selecting Security Admin. Grant the KMF Admin role from Key Management Administration to as few people as possible, and prefer a narrower role where one covers the task.
Creating a cryptographic module and its specification
Open Field Encryption Experience, choose Create new module, enter a name, select an algorithm, and submit. The module then appears in the Field Encryption modules overview. On Field Encryption Enterprise the system also creates a cryptographic specification, with its purpose fixed at Symmetric Data Encryption/Decryption. Change the algorithm on that specification if your design needs something else.
Starter’s limit is on encrypted fields, so count the fields you plan to protect before you configure anything.
Setting the cryptographic specification
Open the module and select Manage Specification Settings. The form has four sections: Algorithm Definition, Lifecycle Definition, Key Origin and Key Creation. The crypto purpose is fixed at symmetric data encryption and decryption, and the algorithm list filters to match.
Lifecycle rules set dates on the key, such as activation, expiration, rotation, renewal and destruction. A rule can be absolute, meaning an exact date, or relative, meaning a duration in years, months or days before or after a key event such as generation or last rotation. The Order field decides which rule runs first, with lower numbers running earlier.
Select Generate Key to create the key now; otherwise it is created the first time data must be encrypted. Each key record in the Module Keys related list shows its key dates and life-cycle state. Starter administrators can view key usage audit data, and Enterprise administrators can also renew, revoke, rotate or suspend keys by hand.
Role-based policies across modules
Each module can carry its own role-based policy, which grants use of that module to users holding the named role. Whether values are encrypted deterministically or non-deterministically is set per cryptographic specification, as described above.
Bringing a customer-supplied key
Enterprise lets you supply your own data encryption key instead of the platform-generated one. The sequence has six steps.
- Generate a symmetric key outside the platform with a standard tool such as OpenSSL: 32 random bytes for a 256-bit key, or 16 for 128-bit, written to a binary file.
- In Field Encryption Settings, change Key Source from ServiceNow Generated Keys to Customer Supplied Keys, and submit.
- On the module’s specification, go through the sections to Key Origin, confirm that Origin reads Upload customer supplied key, and enter a Key Alias. If that option is missing, return to step 2.
- Select the Download wrapping key link. Leave the downloaded token file’s name unchanged.
- Wrap your binary key with the public key from that download, using RSA-OAEP padding and a SHA-256 digest. A text version fails token validation.
- Upload the wrapped key to the instance.
Key size, padding and validity period are optional properties of the ephemeral public wrapping key, set in system properties.
Module access policies
A module access policy, or MAP, is the rule that lets a user, script or process use a module. Without one, encryption and decryption fail for that caller, and workflows can stall. MAPs combine with access control lists rather than replacing them.
Open System Security, then Field Encryption, then Field Encryption Experience, and select Access Policies inside the module’s tile. The key fields are:
| Field | What to set |
|---|---|
| Type | Scope, Role, Script, System Access or Resource Exchange |
| Result | Track, Reject or StrictReject |
| Crypto Module | The module the policy governs |
| Specify Purpose | Reveals the Crypto Spec and Granular Operation fields |
Track grants access and records each use. Reject denies access unless another policy grants it. StrictReject denies access in all circumstances, even where another policy would grant it.
Scope covers everything inside a named application scope, and Role covers users holding a given role. System Access covers processes in the system context. Resource Exchange shares the module’s key with another instance, with an approval type of One Time or Recurring.
A Script policy needs a script table, such as Business Rule, Script Include, UI Action, Widget or Workflow Activity. Check Script Version compares the running script with the version named in the Target Script field, and it notifies the admin when the two differ.
With Specify Purpose enabled, granular operations change what each user sees. Encryption rights without decryption show the field in edit mode, and the value a user types appears as asterisks. Decryption rights without encryption show the value without edit access. Holding both gives read and write access.
Impersonation matters too. When enabled, an impersonating user gains MAP permissions from both users. When disabled, they keep the permissions they held beforehand.
Script access to encrypted data
Script access depends on three conditions: the purpose the script uses must be defined on the module, the module must hold an active generated key for that purpose, and the policy type must be Script.
A worked example: create a module with the symmetric encryption and decryption algorithm, then create a business rule on the Incident table. In its advanced script, retrieve the module by its scoped name through the global crypto module API, encrypt a test value, decrypt it and compare. Then create a policy with the type Script, the script table Business Rule, the result Track and the business rule as target. Symmetric encryption alone lets the script encrypt without decrypting; the combined setting allows both.
For the field API, setValue encrypts a value and needs a MAP while glide_encryption.set_value_support_cle.disabled is false, the default once the plugin is installed. When that property is true, setValue writes unencrypted and needs no MAP. getValue returns plaintext to callers with module access, and ciphertext or null to everyone else.
Checking declined module requests
Open Key Management, then Module Key Policies, then Module Key Rejections. Each row names a module that refused a script request and the key involved. Typical causes are a compromised or suspended key, a purpose the module does not define, or a purpose with no generated key. Repeat refusals update the Last enforced time rather than adding rows. The usual fix is a script-type policy for that module.
Scheduling mass encryption, decryption and rekeying
Mass jobs are scheduled from System Security, then Security Jobs, then New, by a user holding the cryptographic manager role. These jobs use considerable resources, so schedule the job’s time window start and end, entered in 24-hour clock format, to fall in non-peak hours. A job that cannot finish inside one window continues in the next.
Job types cover mass encryption and decryption of fields or attachments, single and multi-module decryption, and mass rekeying, which re-encrypts existing values with the module’s current active key. Migration jobs move data from encryption contexts to modules.
Cloning and archive tables
After cloning, the keys are re-encrypted with a secondary key unique to the source, so the clone’s encrypted fields look empty until a key exchange completes. Define encrypted field configurations on base tables, not archive tables, because archived data stays encrypted.
Frequently asked questions
Can Starter encrypt more than five fields?
No. Starter refuses a sixth field. Enterprise has no fixed field limit.
What happens to a field with no access policy?
Field Encryption blocks access by default, so users, scripts and system processes cannot encrypt or decrypt the field until a module access policy grants it.
Does a module access policy replace an ACL?
No. The two are separate controls that can be combined.
Why does a script see ciphertext instead of the value?
Callers without module access receive ciphertext or null from getValue. Check for a script-type policy on the module.