You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/03/31 18:05:51 UTC
[GitHub] [airflow] konia-s opened a new issue #8035: Security: make user in
mysql
konia-s opened a new issue #8035: Security: make user in mysql
URL: https://github.com/apache/airflow/issues/8035
**Description**
[reference](https://airflow.apache.org/docs/stable/security.html#web-authentication)
I wanna make first user , so I ran this code.
```
$ cd ~/airflow
$ python
Python 2.7.9 (default, Feb 10 2015, 03:28:08)
Type "help", "copyright", "credits" or "license" for more information.
>>> import airflow
>>> from airflow import models, settings
>>> from airflow.contrib.auth.backends.password_auth import PasswordUser
>>> user = PasswordUser(models.User())
>>> user.username = 'new_user_name'
>>> user.email = 'new_user_email@example.com'
>>> user.password = 'set_the_password'
>>> session = settings.Session()
>>> session.add(user)
>>> session.commit()
>>> session.close()
>>> exit()
```
Maybe this code is only sqlite ... How using mysql ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] zhongjiajie commented on issue #8035: Security: make user
in mysql
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on issue #8035: Security: make user in mysql
URL: https://github.com/apache/airflow/issues/8035#issuecomment-607046659
Try to use `airflow users create` in command line to create new user? @konia-s
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] konia-s closed issue #8035: Security: make user in mysql
Posted by GitBox <gi...@apache.org>.
konia-s closed issue #8035: Security: make user in mysql
URL: https://github.com/apache/airflow/issues/8035
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] boring-cyborg[bot] commented on issue #8035: Security:
make user in mysql
Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #8035: Security: make user in mysql
URL: https://github.com/apache/airflow/issues/8035#issuecomment-606785625
Thanks for opening your first issue here! Be sure to follow the issue template!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] konia-s commented on issue #8035: Security: make user in
mysql
Posted by GitBox <gi...@apache.org>.
konia-s commented on issue #8035: Security: make user in mysql
URL: https://github.com/apache/airflow/issues/8035#issuecomment-607722569
thx !!!
I can make user ><
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [airflow] zhongjiajie commented on issue #8035: Security: make user
in mysql
Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on issue #8035: Security: make user in mysql
URL: https://github.com/apache/airflow/issues/8035#issuecomment-607065905
@konia-s Check if you change configure in https://github.com/apache/airflow/blob/6f4e3b6a05dd4e6944fefa7f6fdada64b5c6e025/airflow/config_templates/default_airflow.cfg#L380
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services