0xMiden / 0xMiden/protocol

Increase length of the RBAC role names

オープン
#3,287 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
standards
主要言語
Rust
スター
132
フォーク
167
平均マージ
1日 23時間
マージ済み PR(30日)
110

説明

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_

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。