Skip to content

config: all except one delayed privilege alerts are missing #9586

@Totktonada

Description

@Totktonada

Let's consider the following config.

credentials:
  users:
    guest:
      roles: [super]
      privileges:
      - permissions: [read, write]
        spaces: [s, t]
      - permissions: [execute]
        functions: [f, g]

iproto:
  listen:
  - uri: 'unix/:./var/run/{{ instance_name }}/tarantool.iproto'

groups:
  group-001:
    replicasets:
      replicaset-001:
        instances:
          instance-001: {}

Here we have privileges for spaces s, t and functions f, g to be granted at their creation.

However, the warning about delayed privilege granting is issued only for f.

$ tarantool --name instance-001 --config config.yaml
$ tt connect ./var/run/instance-001/tarantool.control
# tarantool> require('config'):info()
# tarantool> config:info()
---
- status: check_warnings
  meta: []
  alerts:
  - type: warn
    message: 'credentials.apply: function "f" hasn''t been created yet, ''box.schema.user.grant("guest",
      "execute", "function", "f")'' will be applied later'
    timestamp: 2024-01-10T15:39:25.478785+0300
...

Looks like a regression from fa97cc0.

Metadata

Metadata

Assignees

Labels

3.0Target is 3.0 and all newer release/master branchesbugSomething isn't workingconfig

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions