-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove default admin credentials #1134
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ | |
parser.add_argument("-np", "--number-of-process", type=int, default=1000, help="number of 'process' entities, deafult is set to 1000, there will be two keyword categories in this index (must be at least 1)" ) | ||
parser.add_argument("-hd", "--number-of-historical-days", type=int, default=2, help="number of day of historical data to ingest, defaults to 2") | ||
parser.add_argument("-u", "--username", type=str, default="admin", help="username for authentication if security is true") | ||
parser.add_argument("-pass", "--password", type=str, default="admin", help="password for authentication if security is true") | ||
parser.add_argument("-pass", "--password", type=str, default="myStrongPassword123!", help="password for authentication if security is true") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated with placeholder |
||
|
||
args = parser.parse_args() | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this password needs to be passed to the containers on line 70 with
-e OPENSEARCH_INITIAL_ADMIN_PASSWORD=myStrongPassword123!
There is no default password for admin user starting 2.12. This password needs to be set, and you can set it as above.
Also, this change should only be present for branches pointing to 2.12 image.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this change be present for branches pointing to 2.12 image or 2.12 and above image? This change is towards main branch and will be backported to 2.x branch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change should be present starting from 2.12. (not in 2.11.1 and below).
yes.