Skip to content

yoyama/digdag-basic-auth-mt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

digdag-basic-auth-mt

Download

Multi tenant basic authentication plugin for Digdag.

Install

Server configuration for Digdag v0.10.0

From Digdag v0.10.0 authentication is set with server.authenticator.type.

server.authenticator.type = basic_mt
system-plugin.repositories=https://dl.bintray.com/yoyama/maven
system-plugin.dependencies=io.github.yoyama:digdag-basic-auth-mt_2.13:0.2.0
plugins.basic_auth_mt.passwd_file=<path_to_passwrwd_file>
plugins.basic_auth_mt.user_map_file=<path_to_user_map_file>

Server configuration for Digdag v0.9

server.authenticator-class=io.github.yoyama.digdag.bauth.BasicAuthMTAuthenticator
system-plugin.repositories=https://dl.bintray.com/yoyama/maven
system-plugin.dependencies=io.github.yoyama:digdag-basic-auth-mt_2.13:0.2.0
plugins.basic_auth_mt.passwd_file=<path_to_passwrwd_file>
plugins.basic_auth_mt.user_map_file=<path_to_user_map_file>

Password file

Password file stores user/password mapping informatoin. You can create with htpasswd command.

$ htpasswd -c passwd.txt test1
New password:
Re-type new password:
Adding password for user test1

$ cat passwd.txt
test1:$apr1$sc6mDosk$EplIWYLPLlhRybr5MuiIx/

User map file

User map file stores users and its site id. In addition a flag for admin. Format is user:site_id:admin . An example is as follows.

test1:1:true
test2:21:false

Use basic authentication from CLI

digdag CLI support --basic-auth as follows.

$ digdag projects --basic-auth test1:aaaa
2020-03-22 22:43:48 +0900: Digdag v0.9.41
error: Status code 401: HTTP 401 Unauthorized

About

Multi tenant basic-auth plugin for Digdag

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages