Signing Keys
Manage signing keys for Debian, Alpine, and Wolfi repositories in Harness Artifacts, including key status, expiration, and deletion rules.
Harness Artifacts provides signing key management for the following repository types:
Alpine
Debian
Wolfi
Signing keys enable cryptographic verification of repository metadata, allowing package managers to verify the integrity and authenticity of repository contents before installing packages.
Modern package managers require signed repository metadata by default. Without signing keys, clients encounter verification errors and cannot install packages securely.
Supported registry types
The following table lists the registry types that support signing keys:
Alpine
RSA
apk
Debian
GPG
apt
Wolfi
RSA
apk
How signing works
Harness signs repository metadata with the private key and provides the public key so clients can verify the signed metadata.
Key status lifecycle
Each signing key has a status that controls its behavior. The following table lists each status and its impact:
Active
Key signs metadata normally
Inactive, Revoked
Normal operations
Inactive
Key disabled, metadata unsigned
Active (if not expired), Revoked
Uploads continue but unsigned
Revoked
Permanently disabled
Cannot change
Use when compromised
Before you begin
Signing key permissions: Signing Key Create / Edit to import, generate, modify, or delete keys. Signing Key View to view keys. To assign these permissions, go to RBAC in Harness and the Artifact Management permissions.
Virtual registry: Create at least one virtual registry (Debian, Alpine, or Wolfi). Attach signing keys only to virtual registries.
Configure signing key
To configure a working signed key, perform the following steps:
Create a signing key (generate a new key or import an existing key).
Attach the key to registries.
Configure clients to trust the public key.
To follow the complete workflow, go to Set up signing keys.
Manage signing keys
To manage existing keys, use the following operations:
View and filter all keys.
Change key status (Active, Inactive, or Revoked).
Configure expiration notifications.
Detach or delete keys.
To manage keys, go to Manage signing keys.
Reference
Key management location
To manage signing keys, navigate to Registries Settings > Signing Keys.
Key attachment location
To attach a signing key, navigate to Registries > Select registry > Configuration tab > Signing keys section.
Public key URL format
Debian, Alpine, and Wolfi registries use the same public key URL from Setup Client:
Replace the following placeholders:
<KEY_ID>: Signing key identifier<ACCOUNT_ID>: Your Harness account ID
Public keys require no authentication. Clients fetch them without Harness credentials. To review the full client commands, go to Configure clients.
Expiration notifications
Harness sends notifications when keys approach expiration:
1 month before expiration
1 week before expiration
Day of expiration
When a key expires, Harness automatically sets its status to Inactive. If that key is attached to a registry, signing is disabled and new metadata is unsigned.
To configure a notification rule for signing key expiration, perform the following:
Navigate to Account Settings, then under Notifications and alerts, select Notification Rules.
Click + New Notification to open the New Notification Setup wizard.
Enter a Notification Name, then click Continue.
From Select Resource Type, select Artifact Registry.
Select your scope: All Organizations or Specified Organizations, then click Continue.
Click + Add Condition.
Enter a Condition Name.
From Select Artifact Registry Events, select Signing key expiring soon.
Click Apply, then click Continue.
Select an existing channel, or click New Channel to create one.
Leave Enable on Save selected to activate the rule immediately, then click Submit.
To complete the Artifact Registry notification wizard and channel setup, go to Centralised notification.
Next steps
Set up signing keys: Create a key, attach it to a registry, and configure clients.
Manage signing keys: View, detach, and delete keys.
Last updated
Was this helpful?