Dragonfly2 icon indicating copy to clipboard operation
Dragonfly2 copied to clipboard

Support creation of default personal access tokens

Open clcc2019 opened this issue 2 years ago • 1 comments

Feature request:

We need to achieve automation, dragonfly is used as middleware, and after successful installation, a preheating task is created through the API.We want dragonfly to provide default tokens

Use case:

use external script ?

INSERT INTO public.personal_access_token (id, created_at, updated_at, is_del, name, bio, token, scopes, state, expired_at, user_id)
VALUES (1, '2023-10-13 08:39:06.171754', '2023-10-16 09:12:00.707783', 0, 1, 'dragonfly-default', 'OWNkOGQyNWEtNGVhZi00YWMyLWEzNmEtMIM1ZjAwZTdjY2Zm', '["preheat","job","cluster"]', 'active', '2033-10-13 09:11:48.872', 1);

UI Example:

clcc2019 avatar Oct 16 '23 09:10 clcc2019

@clcc2019 Can it be converted into English?

gaius-qi avatar Oct 16 '23 10:10 gaius-qi

Will not support. Because create the default PAT can cause security problems.

gaius-qi avatar Apr 23 '25 10:04 gaius-qi