Skip to content

feat(chart): set the task visibility of tesk-api #337

Open

Description

@uniqueg

Current behaviour

tesk-api 2.1.0 adds TESK_API_AUTHORISATION_TASK_VISIBILITY (elixir-cloud-aai/tesk-api#218): owner (default) shows tasks to their creators only, super admins and team admins included; group keeps the previous behaviour, in which team admins see all tasks of their teams and super admins all tasks.

The chart (charts/tesk/templates/common/tesk-deployment.yaml on dev) passes only the env variables it knows, and has no extraEnv or similar, so operators can't set the variable.

Proposal

  • auth.taskVisibility in values.yaml and values.schema.json (enum owner | group, or empty/null), passed as TESK_API_AUTHORISATION_TASK_VISIBILITY with auth.mode: auth only; empty leaves it unset, so tesk-api's default (owner) applies.
  • Comment in values.yaml: needs tesk-api 2.1.0 or later (earlier versions ignore it and behave as group); link to the tesk-api docs (access-control.md#task-visibility).
  • Chart test (helm unittest or the existing template checks) for both values and the unset case; README and deployment docs updated.

Acceptance criteria

  • auth.taskVisibility: group renders the variable; unset renders nothing; invalid values fail the schema.
  • Docs and the chart's README name the setting and its default.
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

    priority: highstatus: triagetype: featureworkload: hours

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions