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/10/19 09:26:14 UTC

[GitHub] [airflow] pprzetacznik opened a new issue #11654: Add `session_lifetime_hours`/`session_lifetime_minutes` to the configuration

pprzetacznik opened a new issue #11654:
URL: https://github.com/apache/airflow/issues/11654


   **Description**
   
   Currently, it's possible to set `session_lifetime_days` in the Airflow configuration file. Would that be possible to achieve the same in a more granular form, ie. hours or minutes?
   https://airflow.readthedocs.io/en/stable/configurations-ref.html#session-lifetime-days
   
   **Use case / motivation**
   
   For security reasons, when adopting the technology in companies that pay a lot of attention to security, it may be necessary to limit the session lifecycle as much as possible.


----------------------------------------------------------------
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



[GitHub] [airflow] pprzetacznik edited a comment on issue #11654: Add `session_lifetime_hours`/`session_lifetime_minutes` to the configuration

Posted by GitBox <gi...@apache.org>.
pprzetacznik edited a comment on issue #11654:
URL: https://github.com/apache/airflow/issues/11654#issuecomment-716019390


   Just for the record, I believe that creating `webserver_config.py` file in the airflow home directory file with the following content may work.
   ```
   PERMANENT_SESSION_LIFETIME = 60 * 60 # 60 minutes
   ```
   However, that won't work for 1.10.12 version yet so we need to wait until that will be released or use the master branch version.
   
   I came to that after studying the source code and haven't tested that yet as I'm still on 1.10.12 stable version.
   https://github.com/apache/airflow/blob/master/airflow/configuration.py#L825
   
   Also interesting thing to note is that having `rbac=True` enables usage of `webserver_config.py` in version 1.10.12.


----------------------------------------------------------------
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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #11654: Add `session_lifetime_hours`/`session_lifetime_minutes` to the configuration

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #11654:
URL: https://github.com/apache/airflow/issues/11654#issuecomment-711905228


   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



[GitHub] [airflow] pprzetacznik edited a comment on issue #11654: Add `session_lifetime_hours`/`session_lifetime_minutes` to the configuration

Posted by GitBox <gi...@apache.org>.
pprzetacznik edited a comment on issue #11654:
URL: https://github.com/apache/airflow/issues/11654#issuecomment-716019390


   Just for the record, I believe that creating `webserver_config.py` file in the airflow home directory file with the following content may work.
   ```
   PERMANENT_SESSION_LIFETIME = 60 * 60 # 60 minutes
   ```
   However, that won't work for 1.10.12 version yet so we need to wait until that will be released or use the master branch version.
   
   I came to that after studying the source code and haven't tested that yet as I'm still on 1.10.12 stable version.
   https://github.com/apache/airflow/blob/master/airflow/configuration.py#L825
   
   Also interesting thing to note is that having `rbac=True` enables usage of `webserver_config.py` in version 1.10.12. That can come with a need of proper configuration of rbac, eg. with LDAP.


----------------------------------------------------------------
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



[GitHub] [airflow] pprzetacznik closed issue #11654: Add `session_lifetime_hours`/`session_lifetime_minutes` to the configuration

Posted by GitBox <gi...@apache.org>.
pprzetacznik closed issue #11654:
URL: https://github.com/apache/airflow/issues/11654


   


----------------------------------------------------------------
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



[GitHub] [airflow] pprzetacznik commented on issue #11654: Add `session_lifetime_hours`/`session_lifetime_minutes` to the configuration

Posted by GitBox <gi...@apache.org>.
pprzetacznik commented on issue #11654:
URL: https://github.com/apache/airflow/issues/11654#issuecomment-716019390


   Just for the record, I believe that creating `webserver_config.py` file in the airflow home directory file with the following content may work.
   ```
   PERMANENT_SESSION_LIFETIME = 60 * 60 # 60 minutes
   ```
   However, that won't work for 1.10.12 version yet so we need to wait until that will be released or use the master branch version.
   
   I came to that after studying the source code and haven't tested that yet as I'm still on 1.10.12 stable version.
   https://github.com/apache/airflow/blob/master/airflow/configuration.py#L825


----------------------------------------------------------------
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