GitLab API

GitlabTool

Actions905

Overview

This node operation revokes a GPG key for a specified user in GitLab. It is useful for managing user security by invalidating GPG keys that should no longer be trusted or used. For example, an administrator can revoke a compromised or outdated GPG key associated with a user account.

Use Case Examples

  1. Revoke a GPG key for a user by providing the user ID and the GPG key ID to enhance account security.
  2. Automate the process of invalidating GPG keys when a user leaves an organization or changes their security credentials.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to POST.
Path Parameters The path parameters required for the API call, specifically the user ID and the GPG key ID to revoke.

Output

JSON

  • success - Indicates whether the GPG key revocation was successful.
  • message - Additional information or message returned from the API after revocation.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the user ID and GPG key ID are correct and exist in the GitLab instance to avoid 404 errors.
  • Verify that the authentication token has sufficient permissions to revoke GPG keys.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion