Custom Fields
Custom Fields allow you to enforce structured metadata on Akeyless objects such as Secrets, Keys, and Certificates. These fields help align your secrets and keys management with organizational policies.
For example:
- Every Secret may require an
Ownerfield. - Keys can optionally include a
Managed Byfield.
Administrators can define which fields are available for each object type in Akeyless and whether those fields are required or optional.
Note: Currently Custom Fields supports only Items.
Manage Custom Field
Create a custom field
Run the following CLI command to create a new custom field in the account:
akeyless account-custom-field \
--object-type STATIC_SECRET \
--name <custom field name> \
--required[=false] <True/False> Where:
object-type: The object type to create the custom field, e.g., static-secret, rotated-secret, encryption-keys, etc.
name: The name of the custom field.
required=[false]: Mark the custom field as required or optional.
Once a custom field is created, it applies to all new objects of the selected type. If an existing object is updated, the defined custom field rules will also apply.
Delete a custom field
Delete a custom field from the account:
akeyless account-custom-field delete --id <custom field ID>Update a custom field
Updates an existing custom field in the account:
akeyless account-custom-field update \
--id <custom field ID> \
--name <new name> \
--required=`[false]`Fetch a custom field
Retrieves a custom field:
akeyless account-custom-field get --id <custom field ID>Retrieves a list of all custom fields in the account:
akeyless account-custom-field list --object item --object-type static-secretManage Custom Field from Console
To manage custom fields in the account, navigate to your Account Settings -> Custom Fields, click Add
- Provide the new custom field name
- Choose the Object type in Akeyless to which this custom field will be attached. For example, Items->Static Secret
- Select if this new custom field will be mandatory or not.
Once a custom field is created, it applies to all new objects of the selected type. If an existing object is updated, the defined custom field rules will also apply.
Updated about 3 hours ago
