Item768: need a CFG{} tag, or docco for it
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release:
Applies To: Engine
Component:
Branches:
like %ENV%, we need a similarly restricted way to get to confugure settings.
rather than adding an infinite set of macros like
%SITEPREFSTOPICNAME%
we'd use a much more maintainable %CFG{SitePrefsTopicName}%
I had thought that ENV already did this but it doesn't look that way - i'd be happy to have it added to ENV.
if it does exist, then it needs more docco - neither Isaac nor I could find it :/
--
SvenDowideit - 15 Jan 2009
Some settings need to be protected for security reasons. There are some that are standard
e.g.
$Foswiki::cfg{Password}
and
$Foswiki::cfg{SMTP{Password}
. However, there are plugins
that store credentials in there as well and in places you do not know in advance.
--
MichaelDaum - 15 Jan 2009
yes, just like ENV does, which is why i said
like %ENV%, we need a similarly restricted way to get to confugure settings
--
SvenDowideit - 15 Jan 2009
So in
LdapContrib, how would I protect the credentials of the proxy user that contacts the LDAP directory?
--
MichaelDaum - 15 Jan 2009
the docco on
VarENV pretty much covers it - in short, you have to do NOTHING.
--
SvenDowideit - 15 Jan 2009
Gotcha (/me RTFMing)
--
MichaelDaum - 16 Jan 2009
I did debate doing this when I was doing %ENV. I decided against it because when I looked through the various cfg settings, I could see very little that was of value to anyone other than a footpad.
Surely this needs a feature request?
--
CrawfordCurrie - 17 Jan 2009
Setting to No Action. The %QUERY macro has access to {AccessibleCFG} parameters. as does %IF.
--
Main.GeorgeClark - 05 Jan 2015 - 01:10