runpod-python icon indicating copy to clipboard operation
runpod-python copied to clipboard

Update & delete registry auth credentials

Open mwojcik-numlabs opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. We're using RunPod pods to train AI models based on our Docker images, which we store in ECR. The ECR credentials expire every 12 hours, so we need to update the token in the defined credentials setup. We'd like to have it done automatically, with our scripts. Currently, there's no API-based option to modify the existing auth credentials, only to create a new one.

Describe the solution you'd like It would be nice to have two methods:

  • update_registry_auth_credentials(creds_id: str, user: str, password: str) that allows the user to update the object with the provided credentials,
  • delete_registry_auth_credentials(creds_id: str) that allows the user to delete the credentials setup.

Describe alternatives you've considered If the credentials could be provided directly in runpod.create_pod(), without creating a separate template & credentials setup, we wouldn't need separate methods to manage credentials then. The credentials would be temporary - they wouldn't be kept in the user account, they'd only be used within the single pod.

mwojcik-numlabs avatar May 29 '24 10:05 mwojcik-numlabs