Programmatically export photos without password input
I am not entirely sure this is the best place to ask for tech support, feel free to redirect me if I missed some important notice/resources.
Hi dear Ente team š ! I have very recently joined Ente as a tentative to move away from Google photos, especially since their latest API changes. From the get-go I love the product and I'm trying to understand from your architecture page if what I'm trying to do is feasible:
- I'd like to be able to export some albums programmatically without any user input (eg: password) thanks to a configuration file, on a remote server and/or on-off pods.
- I understand you have no public HTTP API accessible through an
authToken
- Your cli tool ente account add only provides a way to login through password input
šÆ To better understand my use-case:
- I have a small static website deployed through Netlify on which I display some of my photos. Until now my photos were fetched at build time through an HTTP request and transformed to the right format/size.
- I am pretty sure I can leverage your cli to export photos in a pre-build step locally, but I'm not clear on how to achieve this given the current ente-cli tooling.
- I don't want to self-host, store photos in my repo, or manually export each time I need to deploy (which is admittedly, not so often)
ā My questions to you:
- Does ente account get-token command return the encrypted, or the non-encrypted authToken, any way I get leverage this to hit Ente's private APIs directly?
- Is there any env variable I missed in the doc that I could use to authenticate from an expirable secret?
- If this is not doable today, is this something on your radar/roadmap for an upcoming feature?7 Replies
Sorry, I couldn't find an answer.
-# If your issue is resolved, please use the /solved command to close this thread.
Afaik, you can't do this with Ente. Someone that works at Ente would be able to give you more details
Thank you for the swift answer @Brogio! Does that mean I should go through support@ente.io or that someone else will answer this post?
Someone will likely answer this post. If not I suggest sending a mail
get-token returns unencrypted authToken, and you can use it to fetch data from Ente's APIs, but the returned data will be encrypted
env variables for password might be useful, but we'll have to think the security implications cc @Keerthana
For now maybe you could setup a separate script (independent of the website build) to pull, transform and push images into a CDN?Storing passwords in unencrypted manner is not recommended, hashing it up and comparing while checking DB could work. That way we can eliminate UX hassle.
Thank you both for your answers š . I understand this is not doable currently and that I need to go through a side process. I'll keep a look on the github to see if you if there's any development around these use-cases!