Skip to content

Kibana service: declaration and validation (S-024-1, S-024-2, S-024-12) #567

Closed

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

Scope: the serviceKind: kibana declaration in the schema and the SDK (spec.kibana with elasticsearch, heapMb, domain and users; backup no longer required for this kind), every refusal and the KIBANA_PUBLISHED warning under the spec's Validation, the reserved user names cloudfall-kibana-view and cloudfall-kibana-edit on an Elasticsearch service, the example in config/examples/services/, and the rendered inventory. No role yet.

  • S-024-1: A project with one Server, its baseline, the Elasticsearch service of S-012-1 with the user analyst, and the declaration above without domain and support passes cloudfall config validate with exit 0, and cloudfall-engine inventory render carries the Kibana service, the Elasticsearch service it reads, and analyst with its Kibana access
  • S-024-2: For the project in config/examples without a Kibana service, the rendered inventory is byte-identical before and after the change
  • S-024-12: Each refusal listed under Validation fails cloudfall config validate with CONFIG_INVALID and its code; a declaration with domain validates with the warning KIBANA_PUBLISHED

Activity

  1. shipmill-romamo commented on Nov 20, 2026

    @shipmill-romamo
    ContributorAuthor

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

    Builds S-024-1, S-024-2 and S-024-12 of spec 024 (docs/specs/024-kibana-service.md, approved in #504), for #503: the kibana declaration, its validation and the rendered inventory, with no role yet.

    It is ready now.

  2. shipmill-romamo commented on Nov 20, 2026

    @shipmill-romamo
    ContributorAuthor

    PR: #587 adds serviceKind: kibana to the schema and the SDK, every refusal of the spec's Validation, the KIBANA_PUBLISHED warning, and the service in the rendered inventory. It has tests named for S-024-1, S-024-2 and S-024-12. No role yet.

    What changes for existing declarations, all as spec 024 says:

    • An Elasticsearch user named cloudfall-kibana-view or cloudfall-kibana-edit is now refused (service_elasticsearch_user_reserved); no example or test used those names
    • backup stays required for every other kind (a test checks each) and is optional only for kibana

    Two calls in it:

    • No file under config/examples/services/: the loader reads every file there into the examples project, so one would change the inventory S-024-2 says stays byte-identical. The declaration lives in sdk/tests/kibana_project.py, as the RabbitMQ build (Declare and validate a RabbitMQ service (S-023-1, S-023-2, S-023-18) #519) did
    • A non-loopback bind fails the schema check (schema_validation_failed), which already pins bind.address to 127.0.0.1 for every kind, before service_kibana_bind can fire
  3. added a commit that references this issue on Nov 21, 2026
    0729eab
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