Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-1552

Airflow Filter_by_owner not working with password_auth

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.10.2
    • Component/s: configuration
    • Labels:
      None
    • Environment:
      CentOS , python 2.7

      Description

      Airflow Filter_by_owner parameter is not working with password_auth.
      I created sample user using the below code from airflow documentation and enabled password_auth.
      I'm able to login as the user created but by default this user is superuser and there is noway to modify it, default all users created by PasswordUser are superusers.

      import airflow
      from airflow import models, settings
      from airflow.contrib.auth.backends.password_auth import PasswordUser
      user = PasswordUser(models.User())
      user.username = 'test1'
      user.password = 'test1'
      user.is_superuser()
      session = settings.Session()
      session.add(user)
      session.commit()
      session.close()
      exit()

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thomasbrockmeier Thomas Brockmeier
                Reporter:
                raghu_medapati raghu ram reddy
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: