Skip to content

Daytona API key expiry is unhandled in few of the places #516

Description

@thesujai

What happened?

My Daytona configuration was older than 2 weeks in my DB, and the key I was using was expired. When I went to settings/sandbox-providers page I got a internal server error. This was because the ACCESS_DENIED in the get sandbox providers was unhandled, we should handle it.

Also same can be observed while asking a agent to do something in Sandbox if your key is expired, this case is unhandled.

Ideally we should handle it and mark the status of the sadbox provider as failed and give a proper status_reason.

How many more places can this be unhandled?

Steps to reproduce

  1. Create a key in daytona with all the necessary permissions in daytona.
  2. Configure it in platform - watch everything works
  3. Revoke the key from Daytona
  4. Create turn and ask to use sandbox, watch the unhandled error(first error)
  5. In the DB set the updated_at less than 13 days(for faster repro)
  6. Go to settings page in sandbox provider section - see the unhandled error

How are you running TrueForge?

Docker Compose

Version

main

Environment

NA

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedMaintainers will accept community code contributions for this issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions