[ https://issues.apache.org/jira/browse/FELIX-6730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17888305#comment-17888305 ]
Carsten Ziegeler commented on FELIX-6730: ----------------------------------------- For a similar functionality we implemented a logic that respects metatype information (password property) and also looks if the value contains a placeholder for a secret ("$[secret:") and then does not display the value. Neither in configurations nor in service properties. There is a small downside that you tie the logic to the Apache Felix interpolation plugin, but having that in than displaying the replaced value in a console. > Web Console configurations page does not take into account ConfigAdmin > plugins > ------------------------------------------------------------------------------- > > Key: FELIX-6730 > URL: https://issues.apache.org/jira/browse/FELIX-6730 > Project: Felix > Issue Type: Bug > Components: Web Console > Affects Versions: webconsole-5.0.8 > Reporter: Robert Munteanu > Priority: Major > Attachments: image-2024-10-10-11-00-01-441.png, > image-2024-10-10-11-03-32-255.png > > > I am using the {{org.apache.felix.configadmin.plugin.interpolation}} plug-in > for processing placeholders in configuration and when I do that the > Configuration view from [http://localhost:8080/system/console/configMgr] does > not take into account the changes applied by the plugin-in. > Here's what I did: > 1. Defined OSGi config for a (declarative services) component that uses > placeholders. Web console status config shows it as > {noformat} > PID = org.apache.sling.engine.impl.SlingMainServlet > sling.includes.checkcontenttype = > $[env:INCLUDES_CHECK_CONTENT_TYPE;type=Boolean;default=false] > {noformat} > 2. Launched my app with the env var INCLUDES_CHECK_CONTENT_TYPE set to true > 3. Checked the configurations tab and noticed that the value is confirmed to > be non-default but false > !image-2024-10-10-11-00-01-441.png! > This is very confusing in case of boolean values. In case of strings you > would see the placeholder and somehow figure out what is going on, but here > it's basically impossible. > 4. We eventually figured out by going to either the services tab or the > components tab that the properties had the right value but it took a lot of > time > !image-2024-10-10-11-03-32-255.png! > I think it would be great if the configurations view would be able to show > the processed configuration properties, maybe alongside the 'raw' ones, as it > would make it much easier to understand what the effective property value is. -- This message was sent by Atlassian Jira (v8.20.10#820010)