mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Default demo server credentials
This commit is contained in:
parent
a1896f5d37
commit
82103e05e0
@ -2,6 +2,12 @@
|
|||||||
version: 1.5
|
version: 1.5
|
||||||
host: https://demoapi.trainsai.io
|
host: https://demoapi.trainsai.io
|
||||||
|
|
||||||
|
# default demoapi.trainsai.io credentials
|
||||||
|
credentials {
|
||||||
|
access_key: "EGRTCO8JMSIGI6S39GTP43NFWXDQOW"
|
||||||
|
secret_key: "x!XTov_G-#vspE*Y(h$Anm&DIc5Ou-F)jsl$PdOyj5wG1&E!Z8"
|
||||||
|
}
|
||||||
|
|
||||||
# default version assigned to requests with no specific version. this is not expected to change
|
# default version assigned to requests with no specific version. this is not expected to change
|
||||||
# as it keeps us backwards compatible.
|
# as it keeps us backwards compatible.
|
||||||
default_version: 1.5
|
default_version: 1.5
|
||||||
@ -29,11 +35,6 @@
|
|||||||
pool_connections: 512
|
pool_connections: 512
|
||||||
}
|
}
|
||||||
|
|
||||||
credentials {
|
|
||||||
access_key: ""
|
|
||||||
secret_key: ""
|
|
||||||
}
|
|
||||||
|
|
||||||
auth {
|
auth {
|
||||||
# When creating a request, if token will expire in less than this value, try to refresh the token
|
# When creating a request, if token will expire in less than this value, try to refresh the token
|
||||||
token_expiration_threshold_sec = 360
|
token_expiration_threshold_sec = 360
|
||||||
|
@ -91,8 +91,7 @@ class Session(TokenManager):
|
|||||||
self._logger = logger
|
self._logger = logger
|
||||||
|
|
||||||
self.__access_key = api_key or ENV_ACCESS_KEY.get(
|
self.__access_key = api_key or ENV_ACCESS_KEY.get(
|
||||||
default=(self.config.get("api.credentials.access_key", None) or
|
default=self.config.get("api.credentials.access_key", None)
|
||||||
"EGRTCO8JMSIGI6S39GTP43NFWXDQOW")
|
|
||||||
)
|
)
|
||||||
if not self.access_key:
|
if not self.access_key:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
@ -100,8 +99,7 @@ class Session(TokenManager):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.__secret_key = secret_key or ENV_SECRET_KEY.get(
|
self.__secret_key = secret_key or ENV_SECRET_KEY.get(
|
||||||
default=(self.config.get("api.credentials.secret_key", None) or
|
default=self.config.get("api.credentials.secret_key", None)
|
||||||
"x!XTov_G-#vspE*Y(h$Anm&DIc5Ou-F)jsl$PdOyj5wG1&E!Z8")
|
|
||||||
)
|
)
|
||||||
if not self.secret_key:
|
if not self.secret_key:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
|
Loading…
Reference in New Issue
Block a user