Skip to content

Enabling graceful shutdown overwrites rules.json for workers #324

@lorak89

Description

@lorak89

I have following rules defined in helm chart to be able to read metrics from trino coordinator and workers:

    accessControl:
      type: configmap
      refreshPeriod: 60s
      configFile: "rules.json"
      rules:
        rules.json: |-
          {
            "system_information": [
              {
                "role": "admin",
                "allow": ["read", "write"]
              },
              {
                "user": "foo",
                "allow": ["read"]
              }
            ]
          }

when enabling graceful shutdown, it automatically overwrites above with

{
  "system_information": [
    {
      "allow": [
        "write"
      ],
      "user": "admin"
    }
  ]
}

hence reading metrics for foo user stops working. Looks like it happens here: https://github.com/trinodb/charts/blob/main/charts/trino/templates/deployment-worker.yaml#L75

I think it would be good to have some switch to enable/disable creation of system information access when enabling graceful shutdown.

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