Generating Temporary Access Keys for CML API Endpoints
Hello Cloudera Community,
I'm working on a project where I need to provide users with temporary access to call specific Cloudera AI API endpoints, particularly for interacting with deployed models.
My goal is to avoid granting users long-lived API V2 keys and instead generate short-lived, scoped access credentials that expire after a set time (e.g., 2 hours).
After exploring the CML API v2 and the cmlapi library, I'm finding it challenging to identify a direct method for generating these temporary, scoped access keys.
My questions are:
- Is there a supported mechanism within the CML API v2 or cmlapi to generate temporary access keys with a specified expiration time?
- If not, are there recommended alternative approaches for providing users with limited, time-bound access to CML API endpoints?
- Are there plans to introduce temporary access key generation functionality in future CML releases?
- Is there a best practice to follow for this kind of implementation?
I'm aiming for a solution that prioritizes security and minimizes the risk of exposing long-term credentials.
Any guidance or insights from the community would be greatly appreciated.
Thank you.

