Configure signing for nexus_repository_apt_hosted
mainThe signing block is required for hosted APT repositories to enable PGP signing.
Important Security and State Notes:
passphrase: This value is sensitive and will never be returned from the Nexus API. When Terraform reads the resource, it uses the value from the local state file. Consequently, external changes to the passphrase will not be detected.keypair: This expects an armored private key (e.g., generated viagpg --export-secret-key --armor). If thepassphraseis unset or empty, the Nexus API will not return the keypair. Like the passphrase, the keypair is read from the local state during refresh, meaning external changes to the keypair will not be detected.
signing {
keypair = "<armored_private_key>"
passphrase = "<passphrase>"
}