[Bug]: Unable to create more than 1 project #749

Closed
opened 2026-02-04 21:12:17 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @mrtimothyduong on GitHub (Jul 7, 2025).

Where is the problem occurring?

I encountered the problem while using the application (Frontend)

What browsers are you seeing the problem on?

Firefox

Current behavior

Issue: Unable to create more than 1 project
Symptoms: I've been able to create 1 project, but cannot see the 'new project' button from the home screen

Screenshot of my environment:
Image

What I should see:
Image

Environment:

  • Version: 2.0.0-rc.3
  • Deployment: Docker / Docker Compose (on x86)
  • Authentication: OIDC with Pocket-ID
  • Identity: Using the create admin account via docker compose command
  • Proxy: Yes, via NGINX Proxy Manager

Desired behavior

I should be able to see 'New Project' button from the homepage / fqdn of planka site and use that to create a new project.

Steps to reproduce

  1. Created directory under /home/docker/planka
  2. Created docker-compose.yml file there with OIDC settings for pocket-id
  3. Used 'sudo docker compose up -d' to deploy
  4. Used admin create command to create my account
  5. Navigate to fqdn, select SSO, planka binds to my account
  6. Signed into planka using Passkey
  7. Able to make my first project but otherwise, the 'New Project' button is missing
  8. Not browser related as the button does not appear in Zen / Firefox / Safari / Edge

Other information

No response

Originally created by @mrtimothyduong on GitHub (Jul 7, 2025). ### Where is the problem occurring? I encountered the problem while using the application (Frontend) ### What browsers are you seeing the problem on? Firefox ### Current behavior **Issue**: Unable to create more than 1 project **Symptoms**: I've been able to create 1 project, but cannot see the 'new project' button from the home screen **Screenshot of my environment:** <img width="714" height="496" alt="Image" src="https://github.com/user-attachments/assets/d693d593-e208-4dd7-b386-adcfaace2e76" /> **What I should see:** <img width="743" height="357" alt="Image" src="https://github.com/user-attachments/assets/7a7613ea-8570-4ef3-98ab-6b38345fbc44" /> **Environment**: - Version: 2.0.0-rc.3 - Deployment: Docker / Docker Compose (on x86) - Authentication: OIDC with Pocket-ID - Identity: Using the create admin account via docker compose command - Proxy: Yes, via NGINX Proxy Manager ### Desired behavior I should be able to see 'New Project' button from the homepage / fqdn of planka site and use that to create a new project. ### Steps to reproduce 1. Created directory under /home/docker/planka 2. Created docker-compose.yml file there with OIDC settings for pocket-id 3. Used 'sudo docker compose up -d' to deploy 4. Used admin create command to create my account 5. Navigate to fqdn, select SSO, planka binds to my account 6. Signed into planka using Passkey 7. Able to make my first project but otherwise, the 'New Project' button is missing 8. Not browser related as the button does not appear in Zen / Firefox / Safari / Edge ### Other information _No response_
Author
Owner

@mrtimothyduong commented on GitHub (Jul 7, 2025):

Updating user_account.role via psql in postgres container

  1. Created a new user as admin (non-sso) via docker compose run --rm planka npm run db:create-admin-user
  2. Signed into Planka & Checked the SSO OIDC account > It is no longer 'admin' role but 'boardUser'
  3. Signed into Postgres container's SHELL (I used lazydocker)
  4. Connected to the Postgres Database: psql -U postgres planka
  5. Display values from user_account (limit 10): SELECT * FROM user_account LIMIT 10;
  6. Check the id, role, columnnames etc. My ID was X, with Role 'boardUser'
  7. Update / Set my role: UPDATE user_account SET role = 'admin' WHERE id = '123123INSERTYOURID123123';
  8. PSQL returned: UPDATE 1
  9. Ran the following to check role: SELECT * FROM user_account LIMIT 10;
  10. Refreshed PLANKA, my account is updated to 'Admin'
  11. Signed out of OIDC, signed back in, my account is updated to 'boardUser'

Looks like I'll need to add .env values to my docker-compose.yml file and check if it is supported by Pocket-ID

Thanks to this thread for helping out so far #661

@mrtimothyduong commented on GitHub (Jul 7, 2025): ### Updating user_account.role via psql in postgres container 1. Created a new user as admin (non-sso) via `docker compose run --rm planka npm run db:create-admin-user` 2. Signed into **Planka** & Checked the SSO OIDC account > It is no longer '_admin_' role but '_boardUser_' 3. Signed into Postgres container's SHELL (I used lazydocker) 4. Connected to the Postgres Database: `psql -U postgres planka` 5. Display values from user_account (limit 10): `SELECT * FROM user_account LIMIT 10;` 6. Check the id, role, columnnames etc. My ID was X, with Role '**boardUser**' 7. Update / Set my role: `UPDATE user_account SET role = 'admin' WHERE id = '123123INSERTYOURID123123';` 8. PSQL returned: _UPDATE 1_ 9. Ran the following to check role: `SELECT * FROM user_account LIMIT 10;` 10. Refreshed PLANKA, my account is updated to 'Admin' 11. Signed out of OIDC, signed back in, my account is updated to '_boardUser_' Looks like I'll need to add .env values to my docker-compose.yml file and check if it is supported by [Pocket-ID](https://docs.planka.cloud/docs/configuration/oidc) Thanks to this thread for helping out so far #661
Author
Owner

@mrtimothyduong commented on GitHub (Jul 7, 2025):

Confirming this is the fix: Add environment variable to planka service - OIDC_IGNORE_ROLES=true

Cause: OIDC applies the ROLE from the Provider but I'm not specifying that from Pocket-ID
Workaround: Ignore the ROLE from IdP (pocket-ID / OIDC) and instead use Planka's authorisation as per their documentation planka/oidc
Steps to resolve:

  1. Update my docker-compose.yml to include - OIDC_IGNORE_ROLES=true
  2. Sign out of Planka in Web GUI
  3. Check/Update my role via the above steps to 'admin' via psql in postgres container
  4. Stop planka via docker compose down
  5. Start planka via docker compose up -d
  6. Sign into Planka via SSO / OIDC provider
@mrtimothyduong commented on GitHub (Jul 7, 2025): Confirming this is the fix: Add environment variable to planka service `- OIDC_IGNORE_ROLES=true` **Cause:** OIDC applies the ROLE from the Provider but I'm not specifying that from Pocket-ID **Workaround:** Ignore the ROLE from IdP (pocket-ID / OIDC) and instead use Planka's authorisation as per their documentation [planka/oidc](https://docs.planka.cloud/docs/configuration/oidc) **Steps to resolve:** 1. Update my docker-compose.yml to include `- OIDC_IGNORE_ROLES=true` 2. Sign out of Planka in Web GUI 3. Check/Update my role via the above steps to 'admin' via psql in postgres container 4. Stop planka via `docker compose down` 5. Start planka via `docker compose up -d` 6. Sign into Planka via SSO / OIDC provider
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#749