Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to list GPG keys associated with a specific user. It is useful in scenarios where you need to retrieve and manage cryptographic keys for users in a Gitea instance, such as auditing user security credentials or integrating key information into other workflows.

For example, you might use this node to:

  • Fetch all GPG keys of a user to verify their identities.
  • Automate synchronization of user keys with another system.
  • Monitor changes in user keys for security compliance.

Properties

Name Meaning
Username The username of the user whose GPG keys you want to list. This is a required string.
Page The page number of results to return (1-based). Used for pagination of the key list.
Limit The number of results per page (page size). Controls how many keys are returned at once.

Output

The node outputs JSON data containing the list of GPG keys for the specified user. Each item in the output typically represents one GPG key with its associated metadata (such as key ID, public key content, creation date, etc.). The exact structure depends on the Gitea API response but generally includes key details relevant for identification and verification.

No binary data output is indicated by the source code.

Dependencies

  • Requires an active connection to a Gitea instance via its API.
  • Needs an API authentication token or credential configured in n8n to authorize requests.
  • The base URL of the Gitea server must be provided in the node credentials.

Troubleshooting

  • Invalid Username: If the username does not exist or is misspelled, the API will likely return an error or empty result. Verify the username input.
  • Authentication Errors: Missing or incorrect API credentials will cause authorization failures. Ensure the API key/token is valid and has sufficient permissions.
  • Pagination Issues: Providing invalid page or limit values (e.g., negative numbers) may lead to unexpected results or errors. Use positive integers.
  • API Endpoint Unreachable: Network issues or incorrect base URL configuration can prevent the node from connecting to the Gitea server.

Links and References

Discussion