Skip to content

Kibana service: Kibana converged on a node, with its token and keys (S-024-3, S-024-4, S-024-5) #569

Done

Description

@shipmill-romamo

Builds part of spec S-024, docs/specs/024-kibana-service.md: the acceptance criteria below. Each needs a test that names its id (test_s024_<k>_..., or a proves: S-024-3 comment line).

Scope: the cloudfall_kibana role on a node of its cluster, with no domain: the S-011 requirements (kibana=<version> of the Elasticsearch service from the same repository and held, the three generated encryption keys), Kibana's keystore, the elastic/kibana service token created in that node's service_tokens file, the managed kibana.yml and node.options, the heap refusal against three quarters of the host's memory, services.yml running Kibana after every node, and the wait until Kibana reports itself available. The kibana_system password is never touched.

  • S-024-3: After services.yml converges S-024-1 on a fresh Debian 13 host, Kibana reports the version of the Elasticsearch service and itself as available, the package is held, the Node.js process runs with the declared heap, no listener for 5601 exists on a non-loopback address, and an unauthenticated request for a dashboard is sent to the login form
  • S-024-4: A second converge changes nothing (changed=0) and restarts neither Kibana nor the node; a heapMb that with the node's heap exceeds three quarters of the host's memory stops the converge before any task changes the host
  • S-024-5: Kibana is logged in to the node with a token of elastic/kibana that exists in the service_tokens file of that node; the token, the three encryption keys and every user's password appear in none of the rendered inventory, playbook output, command answers, kibana.yml or the journal; the hash of the kibana_system password is the same before and after the converge

Depends on #567

Activity

  1. shipmill-romamo commented on Nov 20, 2026

    @shipmill-romamo
    ContributorAuthor

    Triage: implement. Serves: G-1, G-3.

    Builds S-024-3 to S-024-5 of spec 024 (docs/specs/024-kibana-service.md, approved in #504), for #503: the cloudfall_kibana role on a node, with its service token, keystore keys and heap.

    It starts once #567 closes; its Depends on line holds it until then.

  2. shipmill-romamo commented on Nov 21, 2026

    @shipmill-romamo
    ContributorAuthor

    PR: #598 builds S-024-3 to S-024-5: the cloudfall_kibana role on a node, run in a second play of services.yml after every node, with the elastic/kibana service token and three generated encryption keys in Kibana's keystore. A declared domain and a version mismatch are refused until #573 and #579. It is reviewed (no blocking finding) and proven offline against stand-in tools; the existing kinds' real converge in CI passed through the two-play services.yml. Its credential choices (reading the node's credentials as cloudfall, a digest of the keys beside the keystore) are a question for the maintainer on the PR.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions