0xMiden / 0xMiden/protocol

Increase length of the RBAC role names

Abierto
#3,287 1 comentario 0 reacciones 0 asignados Ver en GitHub
standards
Lenguaje dominante
Rust
Estrellas
132
Forks
167
Merge medio
1 d 23 h
PR fusionados (30 d)
110

Descripción

Currently we create our role names internally using `ShortCapitalString` which allows us to have at most 12 chars in the name. The problem is that any attempt to create an admin role for any of our roles (for example, create the `GER_INJECTOR_ADMIN`) will result in an error: name will be too long. So we should either change the way we construct the role name, or somehow update the `ShortCapitalString`, for example, making its `MAX_LENGTH` a constant parameter:
```rust
pub(crate) struct ShortCapitalString(String);
```

_Originally posted by @Fumuran in https://github.com/0xMiden/protocol/issues/3130#issuecomment-4925789869_

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.