Skip to content

Kibana service: view and edit access for declared users (S-024-6, S-024-7) #572

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-6 comment line).

Scope: who may work in Kibana: the roles cloudfall-kibana-view and cloudfall-kibana-edit written through Kibana's role API, and the S-012 user converge (engine/ansible/roles/cloudfall_elasticsearch/tasks/users.yml) adding or taking the role of each user's access next to its own role, which stays unchanged.

  • S-024-6: analyst with access: edit logs in, creates a data view on crm-* and a dashboard on it, and sees no document of billing-1; support with access: view opens that dashboard and is refused when saving a change to it
  • S-024-7: A declared user that kibana.users does not name logs in and can open no application of Kibana; removing analyst from kibana.users and converging does the same to analyst, whose search of crm-1 through Elasticsearch still works. The role of each declared user holds no application privilege, as S-012 leaves it

Depends on #569

Activity

  1. shipmill-romamo commented on Nov 20, 2026

    @shipmill-romamo
    ContributorAuthor

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

    Builds S-024-6 and S-024-7 of spec 024 (docs/specs/024-kibana-service.md, approved in #504), for #503: the view and edit Kibana roles and the user converge that grants them.

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

  2. shipmill-romamo commented on Nov 24, 2026

    @shipmill-romamo
    ContributorAuthor

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

    #569 closed with #598, which converges Kibana on a node with its service token and keys. This issue builds on it now: the cloudfall-kibana-view and cloudfall-kibana-edit roles through Kibana's role API, and the S-012 user converge granting the role of each user's access next to its own role, which stays unchanged (S-024-6, S-024-7).

  3. shipmill-romamo commented on Nov 24, 2026

    @shipmill-romamo
    ContributorAuthor

    PR: #611 builds S-024-6 and S-024-7. It writes cloudfall-kibana-view (Kibana read) and cloudfall-kibana-edit (Kibana all) through Kibana's role API, and the S-012 user converge adds the matching one next to each user's own role. One trade-off: a user update now sends the password hash only for a new user or a changed stored password, so granting or taking access never resets a password changed in Kibana. Reviewed MERGE; a live login is not yet proven.

  4. added a commit that references this issue on Nov 24, 2026
    4582661
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