Uploaded image for project: 'Aurora'
  1. Aurora
  2. AURORA-1201

auth_module is not installed in child injector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 0.8.0
    • Scheduler, Security
    • None

    Description

      The recent patch to enable HTTP Basic Authentication moved construction of ThriftAuthModule to the Jetty child injector, but the user-supplied module was still installed in the parent injector. This leads to a stack trace for anyone using their own auth_module:

      INFO: Connecting to master using authentication (principal: TwitterScheduler).
      Exception in thread "main" com.google.inject.CreationException: Guice creation errors:
      
      1) No implementation for java.util.Map<org.apache.aurora.auth.CapabilityValidator$Capability, java.lang.String> was bound.
        while locating java.util.Map<org.apache.aurora.auth.CapabilityValidator$Capability, java.lang.String>
          for parameter 1 at com.twitter.aurora.internal.auth.TwitterCapabilityValidator.<init>(TwitterCapabilityValidator.java:28)
        at com.twitter.aurora.internal.auth.TwitterAuthModule.configure(TwitterAuthModule.java:97)
      
      2) No implementation for java.util.Map<org.apache.aurora.auth.CapabilityValidator$Capability, java.lang.String> was bound.
        at com.twitter.aurora.internal.auth.TwitterAuthModule.configure(TwitterAuthModule.java:94)
      
      2 errors
              at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
              at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
              at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
              at com.google.inject.Guice.createInjector(Guice.java:95)
              at com.google.inject.Guice.createInjector(Guice.java:83)
              at com.twitter.common.application.AppLauncher.configureInjection(AppLauncher.java:120)
              at com.twitter.common.application.AppLauncher.run(AppLauncher.java:87)
              at com.twitter.common.application.AppLauncher.launch(AppLauncher.java:181)
              at com.twitter.common.application.AppLauncher.launch(AppLauncher.java:142)
              at org.apache.aurora.scheduler.app.SchedulerMain.main(SchedulerMain.java:279)
      

      Attachments

        Issue Links

          Activity

            People

              kevints Kevin Sweeney
              kevints Kevin Sweeney
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: