Skip to content

feat(gitlab): add builtin roles to GitLab#1910

Draft
shikanime wants to merge 3 commits intomainfrom
pr1910
Draft

feat(gitlab): add builtin roles to GitLab#1910
shikanime wants to merge 3 commits intomainfrom
pr1910

Conversation

@github-actions
Copy link
Contributor

🤖 Hey !

A preview of the application is available at : https://console-pr-1910.dso.cpin-hp.numerique-interieur.fr

Please be patient, deployment may take a few minutes.

@shikanime shikanime marked this pull request as ready for review February 10, 2026 15:27
@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2026

🤖 Hey !

The @cpn-console/gitlab-plugin (v3.3.1) 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
Copy link
Contributor

github-actions bot commented Feb 10, 2026

🤖 Hey !

The @cpn-console/shared (v1.3.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
Copy link
Contributor

github-actions bot commented Feb 10, 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
Copy link
Contributor

github-actions bot commented Feb 10, 2026

🤖 Hey !

The @cpn-console/hooks (v4.0.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
Copy link
Contributor

github-actions bot commented Feb 10, 2026

🤖 Hey !

The @cpn-console/sonarqube-plugin (v2.0.5) 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 10, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 10, 2026

🤖 Hey !

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

@shikanime shikanime force-pushed the pr1910 branch 3 times, most recently from 9cdc8b1 to fc16bf6 Compare February 10, 2026 16:30
@shikanime
Copy link
Contributor Author

shikanime commented Feb 10, 2026

For unknown reason, config is always undefined:

{
  failed: false,
  args: {
    userId: "e9d2a79f-ac9c-4b2b-8236-61c493f4a997",
    roleIds: [
    ],
    firstName: "User",
    lastName: "Secondtest",
    email: "secondtestuser@example.com",
    type: "human",
    createdAt: "2026-02-10T16:58:49.174Z",
    updatedAt: "2026-02-10T16:58:49.178Z",
    lastLogin: "2026-02-10T16:58:49.177Z",
    projectId: "98ae9c0e-3610-4a04-8a2e-8226e9afebb8",
    roles: [
    ],
    project: {
      id: "98ae9c0e-3610-4a04-8a2e-8226e9afebb8",
      name: "yo",
      description: "",
      status: "failed",
      locked: false,
      createdAt: "2026-02-10T16:57:42.962Z",
      updatedAt: "2026-02-10T16:57:57.494Z",
      everyonePerms: 896n,
      ownerId: "cecd0d45-79d8-4864-a9fe-199477c29264",
      slug: "yo-1",
      limitless: true,
      hprodCpu: 0,
      hprodGpu: 0,
      hprodMemory: 0,
      prodCpu: 0,
      prodGpu: 0,
      prodMemory: 0,
      lastSuccessProvisionningVersion: null,
      members: [
        {
          projectId: "98ae9c0e-3610-4a04-8a2e-8226e9afebb8",
          userId: "e9d2a79f-ac9c-4b2b-8236-61c493f4a997",
          roleIds: [
          ],
          user: {
            id: "e9d2a79f-ac9c-4b2b-8236-61c493f4a997",
            firstName: "User",
            lastName: "Secondtest",
            email: "secondtestuser@example.com",
            createdAt: "2026-02-10T16:58:49.174Z",
            updatedAt: "2026-02-10T16:58:49.178Z",
            lastLogin: "2026-02-10T16:58:49.177Z",
            adminRoleIds: [
            ],
            type: "human",
          },
        },
      ],
      clusters: [
      ],
      environments: [
      ],
      repositories: [
      ],
      plugins: [
      ],
      owner: {
        id: "cecd0d45-79d8-4864-a9fe-199477c29264",
        firstName: "William",
        lastName: "Phetsinorath",
        email: "wphetsinorath@groupbees.fr",
        createdAt: "2026-02-10T16:56:40.716Z",
        updatedAt: "2026-02-10T16:58:37.930Z",
        lastLogin: "2026-02-10T16:58:37.929Z",
        adminRoleIds: [
        ],
        type: "human",
      },
      roles: [
        {
          userId: "cecd0d45-79d8-4864-a9fe-199477c29264",
          role: "owner",
        },
        {
          userId: "e9d2a79f-ac9c-4b2b-8236-61c493f4a997",
          role: "user",
        },
      ],
      store: {
      },
      users: [
        {
          id: "cecd0d45-79d8-4864-a9fe-199477c29264",
          firstName: "William",
          lastName: "Phetsinorath",
          email: "wphetsinorath@groupbees.fr",
          createdAt: "2026-02-10T16:56:40.716Z",
          updatedAt: "2026-02-10T16:58:37.930Z",
          lastLogin: "2026-02-10T16:58:37.929Z",
          adminRoleIds: [
          ],
          type: "human",
        },
        {
          id: "e9d2a79f-ac9c-4b2b-8236-61c493f4a997",
          firstName: "User",
          lastName: "Secondtest",
          email: "secondtestuser@example.com",
          createdAt: "2026-02-10T16:58:49.174Z",
          updatedAt: "2026-02-10T16:58:49.178Z",
          lastLogin: "2026-02-10T16:58:49.177Z",
          adminRoleIds: [
          ],
          type: "human",
        },
      ],
    },
  },
  results: {
    gitlab: {
      status: {
        result: "OK",
      },
      executionTime: {
        main: 1770742729198,
      },
    },
  },
  apis: {...},
  config: {
  },
  warning: [
  ],
}

@shikanime shikanime force-pushed the pr1910 branch 2 times, most recently from de2da65 to 3302e50 Compare February 11, 2026 09:24
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

@shikanime shikanime force-pushed the pr1910 branch 2 times, most recently from 8413def to 48db13f Compare February 11, 2026 10:28
We don't want drift to be an option in the future, so we'll keep the purge option as an admin only.

Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
Signed-off-by: William Phetsinorath <william.phetsinorath-open@interieur.gouv.fr>
@shikanime shikanime changed the title feat(project-roles): add projects roles to GitLab groups feat(gitlab): add builtin roles to GitLab Feb 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

built preview Deploy preview app with Argo-cd

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant