Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: Storage API #8

Open
rsdmu opened this issue Mar 18, 2024 · 3 comments
Open

Task: Storage API #8

rsdmu opened this issue Mar 18, 2024 · 3 comments
Assignees

Comments

@rsdmu
Copy link

rsdmu commented Mar 18, 2024

Task description

Creating an endpoint Google Cloud or Amazon for storing generated images.

Storage metadata raw format

{
  "scenarios": [
    {
       "id": "string",
       "name": "string",
       "body": "string"
    }
  ],
  "promptsImages": [
    {
       "prompt": "string",
       "scenarioId": "string",
       "images": [
         {
            "storageName": "path_to_image",
             "width": "pixels",
             "height": "pixels"
         }
       ]
    }
  ]
}

List of actions

No response

@hugobb
Copy link
Contributor

hugobb commented Mar 18, 2024

@iolyd Il y a plusieurs manières de s'authentifier pour le bucket google. Est-ce qu'il y a une methode en particulier que tu preferes ? https://cloud.google.com/storage/docs/authentication

@emspaced
Copy link
Member

emspaced commented Mar 18, 2024

À première lecture, je dirais qu'il me faudrait une key comme présenté dans Client library authentication > Other environments. Essentiellement il me faut juste un secret_key pour avoir accès au storage en tant que service et non en tant qu'un user come le contrôle d'accès se fait de mon bord sur le serveur de l'app.

https://cloud.google.com/storage/docs/reference/libraries#setting_up_authentication

@hugobb
Copy link
Contributor

hugobb commented Mar 18, 2024

Je viens de creer un service account, voici la clef:

street-view-landscape-dev-20fea10f555c.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants