big-armor / datapm

Other
18 stars 5 forks source link

Timeplus sink: switched from api token to api key #509

Closed jovezhong closed 2 years ago

jovezhong commented 2 years ago

At Timeplus, we are now switching from tenant level access token to per user API key. There will be a new web UI to create API key, with a name (required) and expiration date (optional) The previous access token is not bounded to a user and the max age is 30 days, which is not suitable for long-running job.

The API key is fixed size, the first 20 chars is the key id and the next 40 chars are the key secret. The user will get the entire string (60 chars) when they create the apikey on UI.

traviscollins commented 2 years ago

Looks good. I haven’t tested it, but assume you have. (Maybe we can have automated tests for time plus)