opensearch-project/security

[META] Update all instances of admin:admin across different repositories

Closed this issue ยท 45 comments

Description

There are many instances of admin:admin credentials usage across different repositories. They will be affected by the change to replace hard-coded admin password with a dynamic value. This issue requests fixing all those instances of admin credentials to address this breaking change.

Acceptance Criteria

  • All hard-coded instances across repos are addressed
  • Ensure that tests, if any, work as expected

Tasks

Search and update the references to admin:admin, password admin and demo install script in following repos, as required:
(to track work done, tag the PR next to the repo name)

(Legend: โŒ - no updates, ๐Ÿ• - in progress, โณ - Waiting 2.12 release, โœ… - complete)

Status Repo PR Issue Notes
โณ logstash-output-opensearch #233 #234 will be merged post 2.12 release
โณ opensearch-benchmark #430 #474 will be merged post 2.12 release
โณ opensearch-go #449 #459 will be merged post 2.12 release
โณ opensearch-js #669, #707 #699 will be merged post 2.12 release
โณ opensearch-migrations #480 #479 will be merged post 2.12 release
โณ opensearch-py #631 #648 will be merged post 2.12 release
โณ opensearch-rs #234 #236 will be merged post 2.12 release
โณ opensearch-ruby #217 #222 will be merged post 2.12 release
โณ reporting-cli #56 #58 will be merged post 2.12 release
โณ terraform-provider-opensearch #138 #146 will be merged post 2.12 release
Status Repo PR Issue Notes
โœ… alerting #1399 #1347
โœ… alerting-dashboards-plugin #849 #861
โœ… anomaly-detection #1134 #1120
โœ… anomaly-detection-dashboards-plugin #662 no action needed
โœ… asynchronous-search #521 #515
โœ… common-utils #581 #579
โœ… cross-cluster-replication #1298 #1310
โœ… custom-codecs #92 no action needed
โœ… data-prepper #3869 #3978
โœ… dashboards-observability #1296 #1371
โœ… dashboards-visualizations #308 no action needed
โœ… docker-images archived
โœ… documentation-website #5887, #6058, #6279 #5946
โœ… flow-framework #310 no action needed
โœ… geospatial #616 #615
โœ… helm-charts #518 #515
โœ… index-management #1076 #1064
โœ… index-management-dashboards-plugin #954 #957
โœ… job-scheduler #553 no action needed
โœ… k-NN #1415 #1359
โœ… logstash-input-opensearch #55 #56
โœ… ml-commons #1899 no action needed
โœ… ml-commons-dashboards #292
โœ… neural-search #551 #550
โœ… notifications #832 no action needed
โœ… opensearch-build #4302 #4303
โœ… opensearch-cluster-cdk #86
โœ… OpenSearch-Dashboards #5736 #5636
โœ… opensearch-dashboards-functional-test #981
โœ… opensearch-k8s-operator #692 #703 no action neede
โœ… opensearch-net #480 #520
โœ… opensearch-net-abstractions archived
โœ… opensearch-php #172 no action needed
โœ… opensearch-py-ml #365 #371
โœ… opentelemetry-demo #114 #113
โœ… performance-analyzer #613 no action needed
โœ… performance-analyzer-rca #526 #527
โœ… reporting #938 no action needed
โœ… search-processor #214 #216
โœ… security #3844
โœ… security-analytics #832 #831
โœ… security-dashboards-plugin #1696
โœ… sql-cli #25 #26
โœ… sql-odbc #65 no action needed

[Triage] This is a meta tracking issue for replacing default credential usage in the cluster.

What version of OpenSearch will have the new password? Data Prepper actually has quite a few occurrences of the password admin. Search for password=admin, password: admin, password: "admin".

@dlvenable it will be for version 2.12 and above

Most references in this repo: seem to disable install demo config: https://github.com/opensearch-project/opensearch-benchmark/blob/main/osbenchmark/resources/docker-compose.yml.j2#L18, I don't think we need to do anything for this repo, but maybe we should make an issue and tag maintainers.

https://github.com/opensearch-project/opensearch-php/actions/runs/7250326156/job/19750248987 - opensearch-php is running without security it seems like, so no changes necessary

opensearch-project/opensearch-build#4302 - this means that all repos which still need to maintain their own integtest.sh files should be switching to admin:myStrongPassword123! as new default creds

[1/4/2024] Current status:

PRs we are blocked for reviews on (build related):

opensearch-project/opensearch-build-libraries#357 (Blocked on rpm/deb decision)
opensearch-project/helm-charts#504 (blocked on review)
opensearch-project/helm-charts#503 (blocked on review)
opensearch-project/terraform-provider-opensearch#138 (in progress)
opensearch-project/opensearch-build#4302 (in progress)
opensearch-project/opensearch-build#4250 (blocked on review)
opensearch-project/opensearch-build#4274 (blocked on review)
opensearch-project/opensearch-k8s-operator#692 (blocked on review)

Other PRs we should merge before 2.12.0 release (plugins):

opensearch-project/opensearch-dashboards-functional-test#981 (In progress)
opensearch-project/cross-cluster-replication#1298 (In progress)

All other PRs in this meta will be turned into draft and merged in after release (ETA: EOD today, 1/4/2024)

[1/10/2024]

PRs blocked on reviews:

adding @bbarani to keep this in his radar

Right now we have 27 non-compliant/unknown issues

Right now we have 27 non-compliant/unknown issues

This number is down to 22 now.

Please help updating AD and AD-Dashboard status in the Task sheet in the issue description above (I cannot edit it..

Please help updating AD and AD-Dashboard status in the Task sheet in the issue description above (I cannot edit it..

Already updated.

Please help updating Neural Search status in the Task sheet in the issue description above (I cannot edit it.)

cc: @DarshitChanpura

[Update: 01/24/'24]

Status Count
Will be merged post release โŒ› 10
In Progress ๐Ÿ• 8
No updates โŒ 11
Complete โœ… 21

[Update: 01/25/'24]

Status Count
Will be merged post release โŒ› 10
In Progress ๐Ÿ• 11
No updates โŒ 5
Complete โœ… 24

[Update: 01/26/'24]

Status Count
No updates โŒ 2
In Progress ๐Ÿ• 7
Will be merged post release โŒ› 9
Complete โœ… 32

[Update: 01/29/'24]

Status Count
No updates โŒ 2
In Progress ๐Ÿ• 8
Will be merged post release โŒ› 9
Complete โœ… 32

[Update: 01/30/'24]

Status Count
โŒ No updates 2
๐Ÿ• In Progress 7
โŒ› Will be merged post release 9
โœ… Complete 33

[Update: 01/31/'24]

Status Count
โŒ No updates 2
๐Ÿ• In Progress 6
โŒ› Will be merged post release 10
โœ… Complete 33

[Update: 02/01/'24]

Status Count
โŒ No updates 1
๐Ÿ• In Progress 4
โŒ› Will be merged post release 10
โœ… Complete 36

[Update: 02/02/'24]

Status Count
โŒ No updates 1
๐Ÿ• In Progress 4
โŒ› Will be merged post release 10
โœ… Complete 37

[Update: 02/05/'24]

Status Count
โŒ No updates 1
๐Ÿ• In Progress 5
โŒ› Will be merged post release 10
โœ… Complete 37

[Update: 02/06/'24]

Status Count
โŒ No updates 0
๐Ÿ• In Progress 2
โŒ› Will be merged post release 9
โœ… Complete 42

[Update: 02/07/'24]

Status Count
โŒ No updates 0
๐Ÿ• In Progress 2
โŒ› Will be merged post release 9
โœ… Complete 42

[Update: 02/08/'24]

Status Count
โŒ No updates 0
๐Ÿ• In Progress 0
โŒ› Will be merged post release 11
โœ… Complete 42

Next update will be post 2.12 release. This task is no longer a blocker for 2.12

[Update: 02/22/'24]

Status Count
โŒ No updates 0
๐Ÿ• In Progress 0
โณ Will be merged post release 9
โœ… Complete 44

This is the last update on this issue. The maintainers of PRs with โณ status have been nudged to bring this across the finish line. Closing this as the feature has been delivered in 2.12.