Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hello Everyone! Did You Already Establish Any Best Practises On Passing Arguments/Secrets To A Remote Machine While Using 

hello everyone! Did you already establish any best practises on passing arguments/secrets to a remote machine while using  task.execute_remotely()  ? My usecase would be some cloud access key, which I don’t want to include in plaintext or in a file which is tracked on Github. Setting it as environment variable or argv will unfortunately not transfer it to the remote machine…
Thanks a lot! 🙂

  
  
Posted 2 years ago
Votes Newest

Answers 18


yes, I also saw that, but unfortunately the clearml.config of my remote machine is stored in Azure as well, so we’d have the same access/permission/authentication problem again.
But thank you for your input!

  
  
Posted 2 years ago

sure 🙂 an access token for an Azure storage blob. I could also just do more granular tokens with a smaller lifespan, but I was wondering if there is another solution

  
  
Posted 2 years ago

Can I ask what type of secrets are we talking about?

  
  
Posted 2 years ago

If you're running the agent in docker mode, and assuming you're running in GCP or some other cloud solution, you can theoretically use the custom bash script configuration option for the agent to pull a file from some sort of secrets vault solution provided by the cloud provider and place on the machine for the duration of the task execution (or set the secret in an env var)

  
  
Posted 2 years ago

Hi TartSeal39 ,
Using this value as an argv (i.e. using argparse) will store it in the task's hyperparameters section and will make it accessible when executing remotely

  
  
Posted 2 years ago

thank you so much SuccessfulKoala55 ! 🥳 Accessing the variables with sys.argv didn’t work, but using argparse is working just fine!

  
  
Posted 2 years ago

I wanted to access an Azure Storage Blob via an SAS token string, since this is how we built the codebase.

  
  
Posted 2 years ago

Which kind of access specifically? I handle permissions with IAM roles

  
  
Posted 2 years ago

😄 👍

  
  
Posted 2 years ago

no, it’s a command-line argument now. Bc if it was in the code, it would be logged by github and I wanted to avoid having an access token logged in plaintext. That’s why argparse seemed to be nice to transfer it via commandline and not via code.
I tried parsing - storing as environment variable - deleting the parser object, but this wouldn’t work unfortunately

  
  
Posted 2 years ago

Me again, SuccessfulKoala55 : would you also see an option for achieving this without having the token/string logged into clearml in plaintext? With argparse it’s stored as hyperparameter unfortunately.. Could I somehow prevent the logging of argparse by deleting the parser or such?

  
  
Posted 2 years ago

Well, if it won't be logged, the agent won't be able to use it when running remotely...

  
  
Posted 2 years ago

hm, I see. Thank you! Do you see an option of transferring a simple, untracked file with execute_remotely() ? If this config file wouldn’t be tracked by github (so not part of the repo) then it would solve my problem

  
  
Posted 2 years ago

You can maybe encrypt it some way, if you're concerned with the keys showing up in the UI

  
  
Posted 2 years ago

Well, I think the paid version should have some way of handling this in a centralized way

  
  
Posted 2 years ago

It's not in your code, right?

  
  
Posted 2 years ago

I was just wondering if it was something already used by the Agent/SDK in which case it can be placed directly in the clearml.conf file on the machine running the experiments remotely

  
  
Posted 2 years ago

yes, that would be the solution which would make the most sense, thanks a lot! 🙂

  
  
Posted 2 years ago
505 Views
18 Answers
2 years ago
one year ago
Tags