[
https://issues.apache.org/jira/browse/SOLR-16054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17497466#comment-17497466
]
Jan Høydahl commented on SOLR-16054:
------------------------------------
It is basically free form, but it is far simpler for 80% of users to type one
of the four and nothing more, and you get red/orange/yellow/green ootb.
The code "prod" os a controlled key. It is not displayed anywhere, so you can
achieve all you want with e.g.
{code:java}
-Dsolr.environment=stage,label=Candidate
-Dsolr.environment=prod,label=Area51{code}
Keeping the keys controlled allows us to use this feature as a foundation for
other features, as proposed by [~dsmiley] , e.g.:
||Mode||Authentication||ulimit checks||network binding||SSL||
|dev|No check|No|All interfaces|Auto-generate self signed|
|test|Complain if not configured|Yes, warn|All interfaces|Auto-generate self
signed|
|stage|Refuse to start if not configured
Override with -Dsolr.security.insecure=true|Yes, enforce|127.0.0.1 by
default|Complain if SSL not enabled|
|prod|Refuse to start if not configured
Override with -Dsolr.security.insecure=true|Yes, enforce|127.0.0.1 by
default|Complain if SSL not enabled|
Then "dev" could be the default, and it would print in logs "Running in
development mode, please specify solr.environment property when going to
production"
> Environment banner not working if environment is not dev or prod
> ----------------------------------------------------------------
>
> Key: SOLR-16054
> URL: https://issues.apache.org/jira/browse/SOLR-16054
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 8.11.1
> Reporter: Gaël Jourdan
> Assignee: Jan Høydahl
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When using the new system property to display a environment banner in Solr
> UI, I cannot make it work.
>
> First attempt with `-Dsolr.environment=unknown,color=red` gives the following
> error message on the UI: "Bad environment pattern: unknown,color=red".
>
> Second attempt with just `-Dsolr.environment=unknown` gives no error but no
> banner appear nowhere.
>
> Third attempt using "dev" or "prod" do work. Thus I'm guessing there is a
> list of allowed values?
> I believe any value should be accepted as orgs can have various name for
> their environment, especially with ephemeral environment.
> Or at least the documentation should mention the list of allowed values.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]