Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
SecurityComplianceSupply Chain

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:

Registry Type
Key Type
Package Manager

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.

Metadata signing only

Harness signs repository metadata. Publishers handle individual package signing separately.


Key status lifecycle

Each signing key has a status that controls its behavior. The following table lists each status and its impact:

Status
Behavior
Can Change To
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

Delete a Signing Key

You cannot delete a key by changing its status. Detach the key from every registry until Referenced By is 0, then click Show more actions (⋮), select Delete, and then confirm the key name. To delete a key, go to Delete a key.


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.

Key storage

Harness stores private keys securely in the Harness secret manager.


Configure signing key

To configure a working signed key, perform the following steps:

  1. Create a signing key (generate a new key or import an existing key).

  2. Attach the key to registries.

  3. 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:

  1. Navigate to Account Settings, then under Notifications and alerts, select Notification Rules.

  2. Click + New Notification to open the New Notification Setup wizard.

  3. Enter a Notification Name, then click Continue.

  4. From Select Resource Type, select Artifact Registry.

  5. Select your scope: All Organizations or Specified Organizations, then click Continue.

  6. Click + Add Condition.

  7. Enter a Condition Name.

  8. From Select Artifact Registry Events, select Signing key expiring soon.

  9. Click Apply, then click Continue.

  10. Select an existing channel, or click New Channel to create one.

  11. 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

Last updated

Was this helpful?