You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| `authCache: ttl` | `300` (`0`=unlimited) | integer | time-to-live of entries in the authentication cache, in seconds |
143
+
| `legacy_mode` | `false` | boolean | gitlab versions pre-11.2 do not support groups api queries based on access level; this enables the legacy behaviour of only allowing npm publish operations on groups where the logged in user has owner rights |
144
+
| `publish` | `$maintainer` | [`$guest`, `$reporter`, `$developer`, `$maintainer`, `$owner`] | group minimum access level of the logged in user required for npm publish operations (does not apply in legacy mode) |
145
+
<!-- markdownlint-enable MD013 -->
94
146
95
147
## Authentication Cache
96
148
97
149
In order to avoid too many authentication requests to the underlying
98
150
gitlab instance, the plugin provides an in-memory cache that will save
99
151
the detected groups of the users for a configurable ttl in seconds.
100
-
No clear-text password will be saved in-memory, just an SHA-256 hash
101
-
and the groups information.
152
+
153
+
No clear-text password will is saved in-memory, just an SHA-256 hash of
154
+
the user+password, plus the groups information.
102
155
103
156
By default, the cache will be enabled and the credentials will be stored
104
157
for 300 seconds. The ttl is checked on access, but there's also an
105
158
internal timer that will check expired values regularly, so data of
106
159
users not actively interacting with the system will also be eventually
107
160
invalidated.
108
161
109
-
```yaml
110
-
auth:
111
-
gitlab:
112
-
url: https://gitlab.com
113
-
authCache:
114
-
enabled: (default true)
115
-
ttl: (default: 300)
116
-
```
117
-
118
162
*Please note* that this implementation is in-memory and not
119
163
multi-process; if the cluster module is used for starting several
120
164
verdaccio processes, each process will store its own copy of the cache,
0 commit comments