Skip to content

BUG: make OpenSearch Dashboards credential bootstrap work with the Docker image entrypoint #229

Closed

Description

@ramioooz

Problem

The OpenSearch Dashboards credentials bootstrap hook remains running in local SIT and repeatedly fails because it references kirk.pem and kirk-key.pem that are not present in the hook container.

Root Cause

The OpenSearch node creates the demo certificates during its Docker entrypoint startup. The Helm hook overrides the image entrypoint with a shell command, so the hook container does not perform that setup before invoking securityadmin.sh.

Scope

  • Source the initial admin password from the existing opensearch-admin Secret.
  • Run the supported local demo security setup inside the short-lived hook container before using securityadmin.sh.
  • Preserve the existing backup and targeted internal_users update behavior.
  • Keep credentials out of Git, rendered Helm output, logs, and command arguments.
  • Update the chart validation and local SIT runbook.

Acceptance Criteria

  • A fresh helm upgrade --install opensearch completes its credentials hook successfully.
  • The OpenSearch and Dashboards pods become Ready.
  • Dashboards authenticates with the password stored in opensearch-dashboards.
  • The hook does not overwrite unrelated security configuration.
  • Helm lint, template validation, and the existing Fluent Bit/OpenSearch checks pass.

Parent: TASK: Deploy OpenSearch and OpenSearch Dashboards in SIT (#93)
Sprint: Sprint 6 - Operational Resilience and Observability
Assignee: ramioooz

Activity

  1. self-assigned this
    on Sep 5, 2026
  2. added theissue type on Sep 5, 2026
  3. ramioooz commented on Sep 5, 2026

    @ramioooz
    MemberAuthor

    Verification complete (2026-09-05)

    • The credential-bootstrap hook now runs the OpenSearch Docker image demo security setup before securityadmin.sh.
    • OpenSearch and Dashboards are Ready in digital-bank-sit.
    • The credentials hook completed successfully during the in-place upgrade.
    • The implementation is merged in infra-sit#35.

    No credentials or secret values were recorded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions