Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-7805

Add JAAS Subject to Karaf shell session

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • karaf
    • None

    Description

      JDK deprecation (for removal) of SecurityManager is going take AcccessController and AccessControlContext classes with it.

      We need to stick the JAAS Subject on the Karaf Shell Session to allow commands and other utilities the ability to get the current logged in user.

      karaf/shell/console ShellUtil:

      AccessControlContext acc = AccessController.getContext();
      final Subject subject = Subject.getSubject(acc);
      

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            mattrpav Matt Pavlovich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: