feat: cedar to d9 - #24
Open
sofiachakir wants to merge 2 commits into
Open
Conversation
Signed-off-by: Sofia Chakir <sofiachakir@gmail.com>
Signed-off-by: Sofia Chakir <sofiachakir@gmail.com>
| const { readFile, readdir, writeFile } = fs.promises; | ||
|
|
||
| /** | ||
| * Reverse of the d9-to-cedar translation in app-api2: reads the per-role Cedar policy files |
Contributor
There was a problem hiding this comment.
app-api2: autre repo ici
| // JSON `permissions`/`validation` cells, so we keep a robust reader/writer here) | ||
| // --------------------------------------------------------------------------- | ||
|
|
||
| function readFirstLineOfFile(filePath: string): Promise<string> { |
Contributor
There was a problem hiding this comment.
déjà présent dans utils ?
| }); | ||
| } | ||
|
|
||
| async function readCsvFile( |
Contributor
There was a problem hiding this comment.
pareil, présent dans utils il me semble
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add cedar-to-d9 feature
Goal : update cedar files instead of updating manually the csv files or via the interface to update permissions
The permission csv files will be updated via this script during the first-run.