# Bug OP-14519 - Blacklisted routes not working

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-14519

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.4.0 |
| Observed in versions | 13.2.0 |
| Sprint | 13.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Oliver Günther |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

Setup OpenProject instance with the following `docker-compose.yml`:

``` yaml
version: "3.6"
services:
  openproject:
    environment:
      - "OPENPROJECT_SEED__ADMIN__USER__PASSWORD__RESET=false"
      - "OPENPROJECT_AUTH__SOURCE__SSO_OPTIONAL=true"
      - "OPENPROJECT_HOST__NAME=127.0.0.1:8081"
      - "OPENPROJECT_AUTH__SOURCE__SSO_HEADER=X-Remote-User"
      - "OPENPROJECT_HTTPS=false"
      - "OPENPROJECT_BLACKLISTED__ROUTES=admin/info admin/plugins project_types colors settings admin/enumerations\
        \ workflows/* statuses types admin/roles"
      - "OPENPROJECT_HIDDEN__MENU__ITEMS_ADMIN__MENU=roles types statuses workflows enumerations settings\
        \  ldap_authentication colors project_types plugins info"
      - "OPENPROJECT_USERS__DELETABLE__BY__ADMINS=true"
      - "OPENPROJECT_AUTH__SOURCE__SSO_SECRET=s3cr3t"
      - "OPENPROJECT_PLUGIN__OPENPROJECT__AVATARS_ENABLE__GRAVATARS=false"
      - "OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_USER=admin"
      - "OPENPROJECT_EMAIL__DELIVERY__METHOD=sendmail"
      - "OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_PASSWORD=admin"
    image: "openproject/community:13.3.1"
    ports:
      - "8081:80/tcp"
```

1.  Navigate to the [instance](http://127.0.0.1:8081/) and login with username and password equal to "admin"
2.  Navigate to the [admin plugins page](http://127.0.0.1:8081/admin/plugins)

### What is the buggy behavior?

The page is displayed

### What is the expected behavior?

The page should be blocklisted and not be accessible in any way. Hiding the menu entry works as documented.

### **Logs**

Found the following eventually helpful message in the logs. It occurs on booting OpenProject up:

``` text
openproject-1  |        /app/vendor/bundle/ruby/3.2.0/gems/rack-attack-6.7.0/lib/rack/attack/configuration.rb:28:in `blocklisted_response=': [DEPRECATION] Rack::Attack.blocklisted_response is deprecated. Please use Rack::Attack.blocklisted_responder instead. (StructuredWarnings::StandardWarning)
```

Log message while getting the page:

``` text
openproject-1  | I, [2024-03-09T11:08:41.871708 #345]  INFO -- : [386b060c-7638-4b49-a198-776fe4a7104d] method=GET path=/admin/plugins format=html controller=AdminController action=plugins status=200 allocations=54240 duration=72.47 view=60.39 db=7.69 user=4
```

### Environment information

**OpenProject installation type**

- [ ] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [x] Docker All-in-one container
- [x] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

Validated with OpenProject 13.2.1 and 13.3.1
