You are here: Foswiki>Tasks Web>Item768 (05 Jan 2015, GeorgeClark)Edit Attach

Item768: need a CFG{} tag, or docco for it

pencil
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release:
Applies To: Engine
Component:
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: GeorgeClark
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 smile

-- 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

ItemTemplate edit

Summary need a CFG{} tag, or docco for it
ReportedBy SvenDowideit
Codebase 1.0.0, trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r8 - 05 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy