|
Ran
|
Jobs
1
|
Files
518
|
Run time
4min
|
Badge
README BADGES
|
push
github
config: apply lua_call privileges before bootstrap This patch is a bugfix of the `lua_call` runtime access implemented in commit 38c6b0d38254 ("config: grant runtime access to lua_call from config"). One of the main reason for runtime privileges is to allow granting guest user `lua_call` access before the initial bootstrap. During the implementation of the #10857 in terms of the new behavior of the supervised failover with the supervised bootstrap strategy it turned out runtime privileges haven't been added as a first-phase applier making it impossible to executing some of the lua functions before the initial bootstrap. This patch fixes it by adding a first-phase applier. For instance, you might allow guest connection to fetch information on instances before the bootstrap by configuring `credentials` section like this. ```yaml credentials: guest: privileges: - permissions: [ execute ] lua_call: [box.info] ``` NO_DOC=see tarantool/doc#4552, added a comment on it (cherry picked from commit f00141723)
69877 of 123751 branches covered (56.47%)
102902 of 117655 relevant lines covered (87.46%)
2163713.23 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
90.7 |
-0.07% | src/box/applier.cc |
| 1 |
95.78 |
-0.12% | src/box/replication.cc |
| 1 |
88.05 |
-0.16% | src/box/vy_lsm.c |
| 1 |
87.23 |
0.2% | src/box/vy_run.c |
| 1 |
84.18 |
-0.07% | src/box/xlog.c |
| 1 |
87.5 |
-1.59% | src/box/xlog.h |
| 1 |
91.56 |
-0.11% | src/lib/swim/swim.c |
| 2 |
93.03 |
-0.11% | src/lib/core/fiber.c |
| 2 |
97.05 |
-0.1% | src/lib/msgpuck/msgpuck.h |
| 3 |
91.59 |
-0.59% | src/box/gc.c |
| 3 |
97.95 |
-0.22% | src/box/memtx_tx.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 14069407722.1 | 518 |
87.46 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|