Skip to content

fix: hooks config is always undefined#1912

Closed
shikanime wants to merge 1 commit intomainfrom
pr1912
Closed

fix: hooks config is always undefined#1912
shikanime wants to merge 1 commit intomainfrom
pr1912

Conversation

@shikanime
Copy link
Contributor

@shikanime shikanime commented Feb 11, 2026

For some reasons, the config is never passed down to the plugins hooks. Apparently the config is provided via the adminPlugin table of the database but is empty most of the time so for the moment let's just add default and fix the problem properly later.

Signed-off-by: William Phetsinorath william.phetsinorath-open@interieur.gouv.fr


Stack created with Sapling. Best reviewed with ReviewStack.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

🤖 Hey !

The @cpn-console/keycloak-plugin (v2.1.0) package already exists on npm but the source code has changed, you should consider updating the package version.

The version update warning should be ignored in the case of modifications that do not affect the code once it has been built, such as code formatting, etc...

@github-actions github-actions bot added the built label Feb 11, 2026
@shikanime
Copy link
Contributor Author

shikanime commented Feb 11, 2026

@StephaneTrebel Par complet hasard, ca te parle ce probleme ? J'arrive pas a faire le liens entre "info" de plugin a la table ProjectPlugin, y a un soucis d'interconnection entre la config et la data mais je vois pas ou c'est branche dans le code.
image

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

🤖 Hey !

The security scan report for the current pull request is available here.

For some reasons, the config is never passed down to the plugins hooks. Apparently the config is provided via the adminPlugin table of the database but is empty most of the time so for the moment let's just add default and fix the problem properly later.

Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
@cloud-pi-native-sonarqube
Copy link

try {
const kcClient = await getkcClient()
const projectName = project.slug
const purgeEnabled = config.keycloak?.purge === ENABLED
Copy link
Collaborator

Choose a reason for hiding this comment

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

praise: Oui, bien vu 👍

@shikanime shikanime closed this Feb 16, 2026
@shikanime
Copy link
Contributor Author

Merged in #1913

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants