Skip to content

feat: cedar to d9 - #24

Open
sofiachakir wants to merge 2 commits into
mainfrom
feat/cedar-to-d9
Open

feat: cedar to d9#24
sofiachakir wants to merge 2 commits into
mainfrom
feat/cedar-to-d9

Conversation

@sofiachakir

Copy link
Copy Markdown

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.

Signed-off-by: Sofia Chakir <sofiachakir@gmail.com>
Signed-off-by: Sofia Chakir <sofiachakir@gmail.com>
@sofiachakir sofiachakir self-assigned this Jun 3, 2026
@sofiachakir sofiachakir added the enhancement New feature or request label Jun 3, 2026
@sofiachakir sofiachakir changed the title Feat/cedar to d9 feat: cedar to d9 Jun 3, 2026
const { readFile, readdir, writeFile } = fs.promises;

/**
* Reverse of the d9-to-cedar translation in app-api2: reads the per-role Cedar policy files

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app-api2: autre repo ici

// JSON `permissions`/`validation` cells, so we keep a robust reader/writer here)
// ---------------------------------------------------------------------------

function readFirstLineOfFile(filePath: string): Promise<string> {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

déjà présent dans utils ?

});
}

async function readCsvFile(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pareil, présent dans utils il me semble

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants