Skip to content

Latest commit

 

History

History
83 lines (63 loc) · 1.89 KB

File metadata and controls

83 lines (63 loc) · 1.89 KB
page_title forgejo_gpg_key Data Source - forgejo
subcategory
description Forgejo user GPG key data source.

forgejo_gpg_key (Data Source)

Forgejo user GPG key data source.

Example Usage

terraform {
  required_providers {
    forgejo = {
      source = "svalabs/forgejo"
    }
  }
}

provider "forgejo" {
  host = "http://localhost:3000"
}

# Existing GPG key
data "forgejo_gpg_key" "this" {
  user   = "test_user" # Optional, uses authenticated user if not provided
  key_id = "test_key"
}

Schema

Required

  • key_id (String) ID of the GPG key.

Optional

  • user (String) Name of the user.

Read-Only

  • can_certify (Boolean) Can this key certify.
  • can_encrypt_comms (Boolean) Can this key encrypt communications.
  • can_encrypt_storage (Boolean) Can this key encrypt storage.
  • can_sign (Boolean) Can this key sign.
  • created_at (String) Time at which the GPG key was created.
  • emails (List of Object) Emails associated with the GPG key. (see below for nested schema)
  • expires_at (String) Time at which the GPG key expires.
  • id (Number) Numeric identifier of the GPG key.
  • primary_key_id (String) Primary ID of the GPG key.
  • public_key (String) The public key.
  • subkeys (List of Object) Subkeys of the GPG key. (see below for nested schema)

Nested Schema for emails

Read-Only:

  • email (String)
  • verified (Boolean)

Nested Schema for subkeys

Read-Only:

  • can_certify (Boolean)
  • can_encrypt_comms (Boolean)
  • can_encrypt_storage (Boolean)
  • can_sign (Boolean)
  • created_at (String)
  • expires_at (String)
  • id (Number)
  • key_id (String)
  • primary_key_id (String)
  • public_key (String)