Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to delete a specific GPG key associated with the current user. It is useful in scenarios where you want to programmatically manage your GPG keys stored in Gitea, such as removing outdated or compromised keys without manually accessing the Gitea web interface.

Practical examples include:

  • Automating cleanup of GPG keys when rotating security credentials.
  • Integrating GPG key management into CI/CD pipelines for enhanced security.
  • Removing keys that are no longer needed as part of user account maintenance.

Properties

Name Meaning
Id The numeric identifier of the GPG key to delete

Output

The node outputs JSON data representing the result of the delete operation. Typically, this will be an empty response or confirmation that the key was successfully deleted. There is no binary data output.

Dependencies

  • Requires an API key credential to authenticate with the Gitea instance.
  • Needs the base URL of the Gitea server configured in the credentials.
  • The node uses the Gitea REST API v1 endpoint /api/v1 to perform operations.

Troubleshooting

  • Invalid or missing key ID: Ensure the Id property is set correctly to the GPG key's numeric ID. An incorrect ID will cause the deletion to fail.
  • Authentication errors: Verify that the API key credential is valid and has sufficient permissions to delete GPG keys.
  • Network issues: Confirm that the Gitea server URL is reachable from n8n and that there are no firewall restrictions.
  • API changes: If the Gitea API version changes, verify compatibility with the node implementation.

Links and References

Discussion