Is that your local site secrets? I’m not sure actually. I believe @Petr_Kalis fiddled around with that recently for some ayon-deadline development and @iLLiCiT commented here which may confirm that there is indeed no client-facing access to secrets.
What solutions there are to that - I’m not entirely sure. @iLLiCiT does mention they can ‘read them’.
so what you would recomend: expose non sercet knob in settings and use some service account in nextcloud (i believe this is insecure, but a lot easier)
or create tray to put in login credecials for each user? (creating nextcloud for each user and create extra one line for logging it (ayon, kitsu, nextcloud)
Maybe I’ll go with easy way, because anyway plugin settings is open only for admins
It is! I wanted this for organization folder whitch i would like to share
because i want link to one folderfor all representations and some custization for those who want to use different folders and i believe that will help with order issue
Just briefly went through conversation, sorry for not reading fully. Small question/note from the code. Where is env variable "PUBLISH_FOLDER" comming from? The way it’s used, it looks like it is filled with anatomy template (there is "@version", which is inner key used in anatomy templates)? Because you probably should not use "@version" in template, if it’s not comming from anatomy, and you should use Anatomy object if it is comming from anatomy. You can have multiple instances that are published to different directories during single publish and single env variable is not enough, also using Anatomy object will fill those inner keys for your.
Not sure what exactly nextcloud does. Does it upload/download files to cloud or it is just metadata based cloud? If it does upload them, then it might be better to add integration to site sync addon, which cares about sync of files on the background.
It’s not downloading or uploading anything it just
creates folder (same folder whitch will be created in integration state, but i need to modify comment before kitsu, so i just create folder myself). Folder comes from settings of an addon (maybe implementing it from anatomy would be better but i’m not skilled enought so i aproach simpler way beacause anyway it need to be only publish but wo {representation} tocken). I import version formating from anatomy settings and just format {version} using tempate from anatomy to create @version myself
it sends post request to nextcloud connected to the same shared drive to create share link to this created folder
it adds the link to the comment
later integration process will collect all files inside already created folder and with sitesync i can confirm it works too
This addon is sooo simple and plays automatization role for produsers to have already created links from cloud that could be sended to the client (i know about delivery button but it not works for me, because of a client specific reasons: they just will not view files in kitsu or somewhere else they alway prefer to have some file to download and view localy)
about different folder publishing: i dont see a case when some representations of a work will be in different spots or using different templates, for me it always publish\product\version\ (and representations inside)
if i understand it right you maybe just doesn’t know what nextcloud is. So its just my own local based aka google cloud, its opensource and lets you mount your shared drive just inside it so artist can work using shared drive and admins can just create sharing links for clients to directly download or upload files.
but i need to modify comment before kitsu, so i just create folder mysel
I don’t understand this, I guess it’s based on some studio workflow?
Oh, that is very well possible, and used. You can have defined 1-n different publish templates for different cases, check ayon+settings://core/tools/publish/template_name_profiles settings and anatomy templates where is category publish where you can define multiple different templates. And also category hero which is used for hero version integration (using different template).
if i understand it right you maybe just doesn’t know what nextcloud is. So its just my own local based aka google cloud, its opensource and lets you mount your shared drive just inside it so artist can work using shared drive and admins can just create sharing links for clients to directly download or upload files.
It’s not downloading or uploading anything it just
Well, isn’t google cloud used to upload/download files? It just “behaves” as drive…
Anyway, the point is that we do handle gdrive sync using site sync addon. Not saying you have to do the same, just wanted to point to it as it handles it representation file based, instead of folder based. Also allows to combine different providers.
I wonder why you get @version
whenever I get any templates, I don’t get {@version} but rather {version:0>3}
for reference, I was testing using this resolve_paths_using_template_data.py
i mean kitstu using comment in note and status integration stage and this stage is the first in a chain so to post comment with link i need to modify comment before kitsu so i do integration order - 0.01 and it means that my addon is doing its BEFORE integration so it cant create link to folder whitch is not exist yet so i just create nessesary folder myself using webdav nextcloud api
thats why i just create share links for a client simple task) i already have all my files synced beetwen ayon and nextcloud (same shared drive)