[
https://issues.apache.org/jira/browse/AIRFLOW-6914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17077137#comment-17077137
]
ASF subversion and git services commented on AIRFLOW-6914:
----------------------------------------------------------
Commit 0c3e64b13a0be918af6922a69232d3f451602318 in airflow's branch
refs/heads/revert-7653-retornam/AIRFLOW-6914 from Kaxil Naik
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=0c3e64b ]
Revert "[AIRFLOW-6914] Add a default robots.txt (#7653)"
This reverts commit 751744237c25f793a34674897435d3c2f75860da.
> Add a default robots.txt to deny all search engines
> ---------------------------------------------------
>
> Key: AIRFLOW-6914
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6914
> Project: Apache Airflow
> Issue Type: Improvement
> Components: security, ui
> Affects Versions: 1.10.6, 1.10.7, 1.10.8, 1.10.9
> Reporter: Kaxil Naik
> Priority: Major
> Labels: gsoc
> Fix For: 1.10.11
>
>
> If the Airflow UI is public, Google can index it and if the Authentication
> has not been enabled it is a serious security threat if it is a prod cluster.
> Something like this probably should work
> {code:python}
> @app.route('/robots.txt', methods=['GET'])
> def robotstxt():
> return send_from_directory(os.path.join(app.root_path, 'static', 'txt'),
> 'robots.txt')
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)