Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Wiki Markup
{scrollbar}

Security

Main Article: Security

Contents

Table of Contents
excludeContents|Security|Related Articles
printablefalse

 

Div
stylefloat:right
titleRelated Articles
classaui-label
Content by Label
showLabelsfalse
showSpacefalse
titleRelated Articles
cqllabel = "security" and space = currentSpace()

The built-in Dashboard page are visible in my production application and I don't want them to be, what can I do?

First off all, don't panic: the Development Dashboard page is marked with the @WhitelistAccessOnly annotation, which makes it invisible to clients that are not on the whitelist. Try accessing the page from a different workstation and you may find that the pages are not visible after all.

Sometimes, in production, a firewall or proxy may make it look like the client web browser originates from localhost; in that situation, you may want to disable the logic that puts localhost onto the whitelist. This determination is made by the contributions to the ClientWhitelist service. Tapestry makes a contribution with id "LocalhostOnly", which one of your modules can override:

Code Block
  @Contribute(ClientWhitelist.class)
  public static void turnOffLocalhostInProduction(OrderedConfiguration<WhitelistAnalyzer> configuration, 
                                                 @Symbol(SymbolConstants.PRODUCTION_MODE) boolean productionMode) {
    if (productionMode) { configuration.override("LocalhostOnly", null); }
  } 

Wiki Markup
{scrollbar}