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

`airflow kerberos` ignores --keytab and --principal arguments

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.10.3
    • Component/s: security
    • Environment:
      1.8-rc5

      Description

      No matter which arguments I pass to `airflow kerberos`,
      it always executes as `kinit -r 3600m -k -t airflow.keytab -c /tmp/airflow_krb5_ccache airflow`

      So it failes with expected "kinit: Keytab contains no suitable keys for airflow@CORP.SOME.COM while getting initial credentials"

      Tried different arguments, -kt and --keytab, here's one of the runs (some lines wrapped for readability):

      $ airflow kerberos -kt /home/rdautkha/.keytab rdautkhanov@CORP.SOME.COM
      [2017-03-14 23:50:11,523] {__init__.py:57} INFO - Using executor LocalExecutor
      
      [2017-03-14 23:50:12,069] {kerberos.py:43} INFO - Reinitting kerberos from keytab: 
      kinit -r 3600m -k -t airflow.keytab -c /tmp/airflow_krb5_ccache airflow
      [2017-03-14 23:50:12,080] {kerberos.py:55} ERROR -
       Couldn't reinit from keytab! `kinit' exited with 1.
      
      kinit: Keytab contains no suitable keys for airflow@CORP.SOME.COM 
      while getting initial credentials
      

      1.8-rc5

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xnuinside Iuliia Volkova
                Reporter:
                Tagar Ruslan Dautkhanov
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: