OpenAI Keys Test

Admin API keys and Project API keys are credentials used to control and authenticate access to OpenAI resources at different levels within an OpenAI organization. Admin API keys provide organization-level administrative access and are used to perform supported administrative operations and retrieve organization-level information. Project API keys are associated with specific OpenAI projects and are used to authenticate API access to resources and services within those projects. Together, these keys provide the authentication and access-control mechanism required to securely manage and use OpenAI resources across the organization.

This test monitors Admin and Project API keys within the OpenAI organization to provide visibility into their inventory and current status. The test reports the total, active, inactive, and unused keys, along with the average age of Admin API keys, helping administrators identify stale, inactive, or potentially unnecessary credentials and review whether active keys are still required. Using these metrics, administrators can maintain effective credential management, minimize unnecessary access, and support security and key-rotation practices. Additionally, credential-management overhead can be reduced and keys that should be reviewed, rotated, or revoked can be easily idetified.

Target of the test : OpenAI

Agent deploying the test: A remote agent

Outputs of the test : One set of results for the target OpenAI organization.

Configurable parameters for the test
Parameters Description

Test Period

This indicates how often should the test be executed. By default, this is set to 15 minutes.

Host

The host for which the test is to be configured.

Port

Refers to the port used by the target OpenAI organization.

Admin API Key

To collect metrics from the target OpenAI organization, the eG agent requires organization-level API access. To grant this access, administrators must specify the Admin API key obtained from the OpenAI portal in this text box. The key provides the permissions required to access orgaization-level information, such as costs, projects, and usage data, which the eG agent uses to monitor OpenAI APIs and their capabilities.

Is Debug Enabled

This parameter specifies whether the test should run in debug mode. If this flag is set to Yes, the eG agent runs the test in debug mode and generates detailed error logs, which can help administrators troubleshoot issues related to test execution or metric collection. By default, this flag is set to No, indicating that the test does not run in debug mode and detailed debug logs are not generated. Debug mode should typically be enabled only when troubleshooting issues.

DD Frequency

Refers to the frequency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD frequency.

Detailed Diagnosis

To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option.

The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:

  • The eG manager license should allow the detailed diagnosis capability
  • Both the normal and abnormal frequencies configured for the detailed diagnosis measures should not be 0.
Measurements made by the test
Measurement Description Measurement Unit Interpretation

Total admin API keys

Indicates the total number of Admin API keys configured for the OpenAI organization.

Number

 

Unused admin API keys

Indicates the number of Admin API keys that have not been used.

Number

A high value for this measure may indicate an accumulation of stale or unnecessary administrative credentials. Administrators should therefore review these keys promptly and revoke any keys that are no longer required.

Inactive admin API keys

Indicates the number of Admin API keys that are currently inactive.

Number

Administrators should review inactive keys to determine whether they are intentionally disabled or no longer required.

The detailed diagnostics of this measure reveals the key name, key status, the date on which the key was created, the date on which the key was lat used, key age, how frequently the key is used, and the associated user name, user ID, and email address, enabling administrators to identify inactive credentials, assess their age and usage history, and determine whether they are still required.

Active admin API keys

Indicates the number of Admin API keys that are currently active.

Number

A high value is preferred for this measure. Administrators should ensure that active keys are required and have only the permissions necessary for their intended purpose.

Average admin key age

Indicates the average age, in days, of the Admin API keys in the organization.

Number

A high average age may indicate that keys have not been rotated recently. Administrators should review older keys and rotate them according to their organization's security policy.

Total project API keys

Indicates the total number of API keys configured across the OpenAI projects in the organization.

Number

 

Unused project API keys

Indicates the number of Project API keys that have not been used.

Number

A high value for this measure may indicate an accumulation of stale or unnecessary administrative credentials. Administrators should therefore review these keys promptly and revoke any keys that are no longer required.

Inactive project API keys

Indicates the number of Project API keys that are currently inactive.

Number

The value of this measure helps administrators identify count of project credentials that are not currently available for use and may require administrative review.

The detailed diagnostics of this measure reveals the key name, key status, the date on which the key was created, the date on which the key was lat used, key age, how frequently the key is used, and the associated user name, user ID, and email address, enabling administrators to identify inactive credentials, assess their age and usage history, and determine whether they are still required.

Active project API keys

Indicates the number of Project API keys that are currently active.

Number

The value of this measure indicates the count of project-level credentials currently available for API access. Administrators should verify that active keys are required and have appropriate permissions.