Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node interacts with the Gitea API to perform administrative actions related to user management. Specifically, the "Admin Delete User Public Key" operation allows an administrator to delete a public SSH key associated with a specified user. This is useful in scenarios where a user's access via a particular SSH key needs to be revoked for security or administrative reasons.

Practical examples include:

  • Removing compromised or outdated SSH keys from a user's account.
  • Managing user access during offboarding processes.
  • Enforcing security policies by cleaning up unused or unauthorized keys.

Properties

Name Meaning
Username The username of the user whose key will be deleted.
Id The unique identifier of the public key to delete.

Output

The node outputs JSON data representing the result of the deletion request. Typically, this would confirm whether the key was successfully deleted or provide error information if the operation failed.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential to authenticate with the Gitea instance.
  • The node expects the base URL of the Gitea server to be configured in the credentials.
  • The Gitea API must be accessible and the authenticated user must have administrative privileges to delete user public keys.

Troubleshooting

  • Common issues:

    • Invalid or missing username or key ID parameters can cause the operation to fail.
    • Insufficient permissions may result in authorization errors.
    • Network connectivity problems or incorrect base URL configuration can prevent API communication.
  • Error messages:

    • 404 Not Found: The specified user or key ID does not exist. Verify the username and key ID.
    • 401 Unauthorized or 403 Forbidden: Authentication failed or the user lacks admin rights. Check API credentials and permissions.
    • 400 Bad Request: Input parameters are invalid or malformed. Ensure that the username is correct and the key ID is a valid number.

Resolving these typically involves verifying input values, checking API credentials, and ensuring proper network access.

Links and References

Discussion