Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11629

Automatic encryption does not work for custom files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.5-ER1
    • fuse-7.2
    • Karaf
    • None
    • Medium
    • % %
    • +
    • Hide

      Refer attached TesCase.zip It contains the working and NotWorking directories.

      .
      ├── NotWorking
      │   ├── org.apache.karaf.jaas.cfg
      │   ├── OSGI-INF
      │   │   └── blueprint
      │   │       └── blueprint.xml
      │   └── users2.properties
      └── Working
          ├── org.apache.karaf.jaas.cfg
          ├── OSGI-INF
          │   └── blueprint
          │       └── blueprint.xml
          └── users.properties
      

      For the issue, refer NotWorking in TestCase.zip

      1. Keep the users2.properties in the etc directory.
      2. Replace the "etc/org.apache.karaf.jaas.cfg" with the org.apache.karaf.jaas.cfg in NotWorking
      3. Keept the directory OSGI-INF in the deploy directory.
      4. Start the server.

      With the above steps, the expectation was that the passwords inside the users2.properties would automatically be encrypted.

      However, the file users2.properties remains unchanged and no passwords and encrypted.

      Try the same steps in Fuse 6.3 and users2.properties would get encrypted.

      For Fuse 7.2, If we repeat the same steps for users.properties instead of users2.properties, the automatic encryption works. Refer Working in TestCase.zip

      Show
      Refer attached TesCase.zip It contains the working and NotWorking directories. . ├── NotWorking │   ├── org.apache.karaf.jaas.cfg │   ├── OSGI-INF │   │   └── blueprint │   │   └── blueprint.xml │   └── users2.properties └── Working ├── org.apache.karaf.jaas.cfg ├── OSGI-INF │   └── blueprint │   └── blueprint.xml └── users.properties For the issue, refer NotWorking in TestCase.zip 1. Keep the users2.properties in the etc directory. 2. Replace the "etc/org.apache.karaf.jaas.cfg" with the org.apache.karaf.jaas.cfg in NotWorking 3. Keept the directory OSGI-INF in the deploy directory. 4. Start the server. With the above steps, the expectation was that the passwords inside the users2.properties would automatically be encrypted. However, the file users2.properties remains unchanged and no passwords and encrypted. Try the same steps in Fuse 6.3 and users2.properties would get encrypted. For Fuse 7.2, If we repeat the same steps for users.properties instead of users2.properties, the automatic encryption works. Refer Working in TestCase.zip

    Description

      Automatic encryption of passwords kept in a custom file does not work. It works for etc/users.properties only

      Steps are implemented as per documentation [1]

      [1] [1] https://access.redhat.com/documentation/en-us/red_hat_fuse/7.2/html-single/apache_karaf_security_guide/index#JAASAuth-EncryptPassw

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-hnaram Herambh Naram (Inactive)
            Vratislav Hais Vratislav Hais (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: