Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node allows users to delete a secret associated with an organization in Gitea, a self-hosted Git service. It is useful for managing sensitive information such as tokens or credentials stored as secrets within an organization's scope. For example, if an organization no longer needs a particular secret or if a secret has been compromised, this node can be used to remove it securely.

Properties

Name Meaning
Org The name of the organization from which the secret will be deleted.
Secretname The name of the secret to be deleted.

Output

The node outputs JSON data representing the result of the delete operation. Typically, this would include confirmation of successful deletion or error details if the operation failed. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authenticating with the Gitea instance.
  • The node communicates with the Gitea API endpoint configured via credentials, specifically targeting the /api/v1 base URL.
  • Proper configuration of the Gitea API URL and authentication token is necessary in n8n credentials.

Troubleshooting

  • Common issues:

    • Invalid organization name or secret name may cause the API to return errors indicating the resource was not found.
    • Insufficient permissions or invalid API credentials can lead to authorization errors.
    • Network connectivity problems to the Gitea server will prevent the node from executing successfully.
  • Error messages:

    • "Not Found" or similar indicates the specified organization or secret does not exist.
    • "Unauthorized" or "Forbidden" suggests issues with API credentials or permissions.
  • Resolutions:

    • Verify the organization and secret names are correct and exist in Gitea.
    • Ensure the API key credential has sufficient permissions to delete secrets.
    • Check network access and the correctness of the Gitea API URL in credentials.

Links and References

Discussion