karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] Commented: (KARAF-34) Provide a way to have passwords encrypted and not in clear in the configuration files
Date Mon, 13 Sep 2010 07:40:32 GMT

    [ https://issues.apache.org/jira/browse/KARAF-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908658#action_12908658
] 

Jean-Baptiste Onofré commented on KARAF-34:
-------------------------------------------

After discussing with Guillaume, as the LoginModule is loaded by the JRE, it's not easy to
"inject" something on it.

The only way is to create a ThreadLocal in OsgiConfiguration storing the Encryption service
reference (or the BundleContext):

    protected static ThreadLocal<Map<String,?>> params;

    public static void setParams(Map<String, ?> params) {
        AbstractKarafLoginModule.params.set(params);
    }

and push it into the AbstractKarafLoginModule.

Like this any LoginModule will get at least the BundleContext and so be able to use the Encryption
service when needed.


> Provide a way to have passwords encrypted and not in clear in the configuration files
> -------------------------------------------------------------------------------------
>
>                 Key: KARAF-34
>                 URL: https://issues.apache.org/jira/browse/KARAF-34
>             Project: Karaf
>          Issue Type: New Feature
>            Reporter: Guillaume Nodet
>            Assignee: Jean-Baptiste Onofré
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message