You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2022/12/21 06:13:00 UTC

[jira] (KARAF-7555) config-list and service-list do not interpolate ${env:..} values

    [ https://issues.apache.org/jira/browse/KARAF-7555 ]


    Jean-Baptiste Onofré deleted comment on KARAF-7555:
    ---------------------------------------------

was (Author: mattrpav):
Observability. How would users be aware if the value is actually set?  Maybe a config flag to allow it or an option flag on config:list and service:list to show values?

If security is the reason, perhaps that could be masked? (ie "****"  to show a value is present)

Might be good to default:

1. Do not show env variable interpolation
2. Do not display OSGi "hidden" secret service values ("_secret field = secret value")
3. Add option flag (perhaps limited by role) so admins have a way to view the actual data for troubleshooting?

> config-list and service-list do not interpolate ${env:..} values
> ----------------------------------------------------------------
>
>                 Key: KARAF-7555
>                 URL: https://issues.apache.org/jira/browse/KARAF-7555
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.3.7
>            Reporter: Matt Pavlovich
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>
> When a config value is set to use an environment variable, config:list and service:list commands do not interpolate for ${env:FOO}
> For given config file:
> {noformat}
> bar = ${env:HOSTNAME}
> {noformat}
> {noformat}
> karaf@root()> config:list "(service.pid=org.foo)"                                                                                                                                                                                         
> ----------------------------------------------------------------                                                                                                                   
> Pid:            org.foo
> BundleLocation: ?
> Properties:
>    bar = 
>    felix.fileinstall.filename = file:/..../etc/org.foo.cfg
>    service.pid = org.foo
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)