GPG Keys
A GPGKey object on Files.com is used to securely store both the private and public keys associated with a GPG (GNU Privacy Guard) encryption key pair. This object enables the encryption and decryption of data using GPG, allowing you to protect sensitive information.
The private key is kept confidential and is used for decrypting data or signing messages to prove authenticity, while the public key is used to encrypt messages that only the owner of the private key can decrypt.
By storing both keys together in a GPGKey object, Files.com makes it easier to understand encryption operations, ensuring secure and efficient handling of encrypted data within the platform.
Resource Schema
Required
| Property | Description |
|---|---|
| name String | GPG key name. |
Optional
| Property | Description |
|---|---|
| workspace_id Int64 | Workspace ID (0 for default workspace). |
| partner_id Int64 | Partner ID who owns this GPG Key, if applicable. |
| user_id Int64 | User ID who owns this GPG Key, if applicable. |
| public_key String | The GPG public key |
| private_key String | The GPG private key |
| private_key_password String | The GPG private key password |
| generate_expires_at String | Expiration date of the key. Used for the generation of the key. Will be ignored if generate_keypair is false. |
| generate_keypair Bool | If true, generate a new GPG key pair. Can not be used with public_key/private_key |
| generate_full_name String | Full name of the key owner. Used for the generation of the key. Will be ignored if generate_keypair is false. |
| generate_email String | Email address of the key owner. Used for the generation of the key. Will be ignored if generate_keypair is false. |
Read Only
| Property | Description |
|---|---|
| id Int64 | GPG key ID. |
| expires_at String | GPG key expiration date. |
| partner_name String | Name of the Partner who owns this GPG Key, if applicable. |
| public_key_md5 String | MD5 hash of the GPG public key |
| private_key_md5 String | MD5 hash of the GPG private key. |
| generated_public_key String | GPG public key |
| generated_private_key String | GPG private key. |
| private_key_password_md5 String | GPG private key password. Only required for password protected keys. |
Resource Import
This Resource supports importing using the following syntax:
Data Source Schema
Required
| Property | Description |
|---|---|
| id Int64 | GPG key ID. |
Read Only
| Property | Description |
|---|---|
| workspace_id Int64 | Workspace ID (0 for default workspace). |
| expires_at String | GPG key expiration date. |
| name String | GPG key name. |
| partner_id Int64 | Partner ID who owns this GPG Key, if applicable. |
| partner_name String | Name of the Partner who owns this GPG Key, if applicable. |
| user_id Int64 | User ID who owns this GPG Key, if applicable. |
| public_key_md5 String | MD5 hash of the GPG public key |
| private_key_md5 String | MD5 hash of the GPG private key. |
| generated_public_key String | GPG public key |
| generated_private_key String | GPG private key. |
| private_key_password_md5 String | GPG private key password. Only required for password protected keys. |