Commit Graph

72 Commits

Author SHA1 Message Date
Jan Sandbrink 294611cc59 Add SSRF filter for HTTPX
Filtering in front of HTTPX calls is less secure, because it's vulnerable to
DNS rebinding. In addition to that it's also duplicate work, because all affected
callsites would have to make sure to "remember" SSRF filtering.

This SSRF filter is inspired by the original HTTPX SSRF Filter, but using our custom
IP address matcher that allows to configure safe IP addresses or ranges.
2026-06-03 09:56:48 +02:00
Eric Schubert c3d50019cb [#74710] show inline page link macros in editing mode
- https://community.openproject.org/work_packages/74710
- show page link as turbo frame
- add route for loading the macro
- update ckeditor build
2026-05-08 16:36:21 +02:00
Tomas Hykel cb1beb1078 Change default DB pool settings in local dev setup 2026-04-26 18:53:24 +02:00
Judith Roth 7613e3f498 [#70175] Better testing setup for BlockNote/Hocuspocus
https://community.openproject.org/work_packages/70175

This adds the capacity to run integration tests with a real Hocuspocus
backend (either locally or in docker).
2026-02-19 15:24:54 +01:00
Alexander 4069a1004a Allow to debug workers with binding.pry in docker environment (#21462) 2026-02-16 18:36:50 +03:00
Eric Schubert 27095f9635 [chore] add fallback to usage of the dev tld 2026-01-30 13:41:29 +01:00
Jan Sandbrink 6ec8388b86 Merge pull request #21772 from opf/dev-tls-flexibility
Improve flexibility of TLS dev stack
2026-01-27 15:10:07 +01:00
Jan Sandbrink 827f577c85 Allow to change TLD for docker dev stack
Instead of assuming that the TLD is .local, we allow
to overwrite it with different TLDs, so that the local setup
can be adapted to developer needs.
2026-01-27 13:05:19 +01:00
Eric Schubert 84ac8da442 [chore] fix capybara.rb to work with docker setup
- change capybara server host binding mechanism
2026-01-21 10:34:08 +01:00
Jan Sandbrink a9babeaaba Upgrade to latest available browserless image
Browserless migrated away from Docker Hub and the latest versions
are now available on GitHub's Container Registry.
2025-10-10 15:34:17 +02:00
Jan Sandbrink ebbf69c62b Fix running feature specs in docker
The serve:test command was broken, because it
used an unsupported command-line option. Thus the
frontend container would not start at all, thus breaking asset
delivery during tests.

A healthcheck was introduced as well, so that a non starting frontend
container is easier to spot going forward.
2025-10-09 11:57:03 +02:00
Pavel Balashou fd7fb7e6f4 Move ports and env variable to docker-compose.yml
It seems to be fine to have these ports settings as well as
__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS envvar set in docker-compose.yml
directly. So, there is less to override to get your docker TLS dev stack working.
2025-07-24 14:39:08 +02:00
Jan Sandbrink ce9e17bbb1 Fix running ng serve on docker stack 2025-07-24 09:04:10 +02:00
Jan Sandbrink e9d2d10712 Fix running the docker TLS stack
The latest upgrades to our frontend stack prohibited access through the
openproject.local hostname and also caused trouble with the previous setup
where the frontend stack would proxy requests to the backend.

Thus the default setup was now changed so that both frontend and backend
are exposed to the browser via different hostnames. The main service to start
will be the backend, which will redirect requests to certain assets to the frontend
service (this was already integrated into the rails routes previously).
2025-07-22 09:23:07 +02:00
Oliver Günther b1d6c8f77f Merge remote-tracking branch 'origin/code-maintenance/esbuild' into dev 2025-07-21 11:10:38 +02:00
Eric Schubert 25f9b61ae5 [chore] remain in detail view after creating a wp
- only affects BCF module views
2025-07-18 14:15:18 +02:00
Alexander Brandon Coles aa9febc397 [#64605] First pass migrating to browser-esbuild
* Switches ng build to browser-esbuild builder.
* Fixes static and dynamic imports.
* Switches to relative asset paths.
* Modernizes tsconfig files.
* Vendors jquery-ui. / HT https://gorails.com/episodes/how-to-use-jquery-with-esbuild
* Fixes various out-of-date path references.

See https://angular.dev/tools/cli/build-system-migration\#manual-migration-to-the-compatibility-builder
2025-07-18 08:49:40 +01:00
Jan Sandbrink b0b61a08a9 Remove Opera from docker test setup
It's not being used from the code anywhere.
2025-06-27 13:33:40 +02:00
Yauheni Suhakou 25db0e6eee Docker file update for development and macOS documentation update (#19135)
Update Docker with the new PostgreSQL 17.
Update Docker documentation for macOS with an Apple Silicon section.
2025-06-12 15:56:06 +02:00
Christophe Bliard 6e41a0a855 Update documentation to point to 16.0 releases
Should fix https://community.openproject.org/wp/64362
2025-06-06 14:42:15 +02:00
Eric Schubert a8a6d112da [#58426] add feature spec for custom fields of type hierarchy
- https://community.openproject.org/work_packages/58426
- add a couple of test selectors
- add page objects
2024-10-25 10:49:58 +02:00
Wieland Lindenthal a32d4c67af [#55176] Cleanup Rails's tmp/pid/server.pid file for docker based development (#15621) 2024-05-28 09:23:12 +02:00
ulferts 3b2121f733 Revert "Merge remote-tracking branch 'origin/release/13.4' into dev"
This reverts commit 40b2bbeb09, reversing
changes made to b4c6cb17cc.
2024-03-21 11:31:17 +01:00
Ivan Kuchin 7787e457a3 Revert "Merge branch 'dev' into release/13.4"
This reverts commit a901541269, reversing
changes made to e573ca00b7.
2024-03-20 20:19:08 +01:00
Eric Schubert bf8882c0f8 [#53368] use active model validations in oauth config
- use only class, not instance in error payload
2024-03-20 13:38:33 +01:00
Oliver Günther 337eda7dfa Revert "Revert "Merge pull request #12998 from opf/task/48717-replace-delayedjob""
This reverts commit dfa75621ea.
2024-03-07 13:59:24 +01:00
Markus Kahl dfa75621ea Revert "Merge pull request #12998 from opf/task/48717-replace-delayedjob"
This reverts commit 9f3e4c48ea, reversing
changes made to 10412f7c85.
2024-03-07 12:40:15 +00:00
Pavel Balashou fd6a899b29 [#48717] Replace DelayedJob with GoodJob.
https://community.openproject.org/work_packages/48717
2024-02-14 10:18:27 +01:00
Oliver Günther b82ddbc583 Remove storybook from actively building, keep last build 2023-11-08 14:05:33 +01:00
Eric Schubert 9eed6fb1be [#47625] Added TLS section to docker dev docs (#13007)
- added proxy stack
- amended README for docker development
- increased cert duration

---------

Co-authored-by: Pavel Balashou <ba1ashpash@gmail.com>
Co-authored-by: Yule <b.baedorf@openproject.com>
2023-07-05 12:49:12 +02:00
Aaron Contreras 86cde8f118 Register and toggle Cuprite driver
Sets up a barebones Cuprite initialization and toggles the javascript
driver to use depending on metadata attached to the example/group.
2023-06-28 05:18:52 -05:00
Eric Schubert 73ac53238f [#47624] reworked docker setup
- https://community.openproject.org/work_packages/47624
- extracted port exposure from docker compose
2023-06-05 11:24:14 +02:00
Oliver Günther bf82d08d12 Merge remote-tracking branch 'origin/release/12.5' into dev 2023-04-24 13:29:45 +02:00
Markus Kahl a4f488c986 fix docker dev quickstart 2023-04-17 12:15:38 +02:00
Kabiru Mwenja acef7fa111 [docker compose yml fix]: Duplicate YAML merge keys (<<) are now rejected from v2.17.x (#12428)
fix: Replace unsupported repeated yaml anchors with merge

`docker compose` v2.17.2 fails with the following syntax error due to
go/yaml/v3 update.

```sh
❯ docker compose config
yaml: unmarshal errors:
  line 40: mapping key "<<" already defined at line 39
  line 40: mapping key "<<" already defined at line 39
  line 40: mapping key "<<" already defined at line 39
```

"goyaml/v3 does not support repeated anchors (due to internal storage
using << as key during parsing) but allows use of multi-values in
anchors"

See: https://github.com/docker/compose/issues/10411#issuecomment-1488019350
     https://yaml.org/type/merge.html
2023-04-17 09:47:17 +00:00
Christophe Bliard 3553a80990 Remove deprecated environment variables used with docker
Fixes https://community.openproject.org/wp/43551
2022-12-28 13:58:49 +01:00
Benjamin Bädorf 8f227cda4f Explicitly add testing email settings (#11685)
If you have a `.env` file in the repository that specifies mal settings,
these can overwrite the default mailing settings for the testing setup.
This commit explicitly sets the appropriate env variable correctly.
2022-11-22 14:43:13 +00:00
Eric Schubert 011658b9e8 [chore] use selenium hub version major tag
- we used to use 4.0, while 4.5 was already released, bundling newer
  version of the browsers
2022-10-20 09:48:48 +02:00
Benjamin Bädorf a9e29279ea Feature/storybook (#10797)
Squash commit of storybook addition to aid design system documentation efforts.

The older commit titles were:

* Initial storybook commit

* Fix documentation.json links

* Don't track documentation.json in git

* Enable sass in storybook

* Initial version of a story that uses angular components

* Remove example stories, clean up button story

* More example stories

* Fix sb build

* Always use dev

* Try without auth header

* Update workflow name

* More logs

* Check if token set

* Use release/storybook branch for testing

* Send ref input to workflow

* Escape input to curl call

* Adding logging

* Different type of escaping

* Fix JOSN

* Use dev branch for opf/design-system storybook publishing

* Add plugin to message path to parent window

* Remove extraneous story

* Add a ton of docs

* Update stories

* Fix syntax error caused by multiple newlines inside of a JSX component

* Add text-field story

* Add basic html stories that don't work yet

* Try to get plain HTML examples working

* HTML Examples work, but slowly revert to components anyway

* Fix HTML examples

* Remove extraneous files

* Put storybook eslint rules back in

* Improve docs

* Show docs tab by default

* Add pullpreview for storybook

* Use the same pullpreview tag for both storybook and normal deployments

* Change name of second pullpreview workflow

* Pin node version to 16.17.0

* Initial update to docs

Added/updated:

Foundation pages:

- Colours (major update)
- Shadows (minor)
- Typography (new)

Blocks

- Checkbox (minor)
- Action bar (major)
- Buttons (new)
- Link (major)
- Modal Dialogue (new)
- Selector Field (new)

* Make sure all code is available during storybook pp build

* Change storybook pullpreview file name

* Add production target to docker-compose sb pp

* Fix acme check for sb pp

* Only run cd-storybook on dev branch

* Run without https on 8080

* Added intro and new page

- Introduction renamed to "Design System", page rewritten completely
- Added page "Devices and Accessibility"

* Remove domain from caddy

* Add port to listen command

* Remove double pullpreview workflows

* Added Divider component

* Change sorting of stories

* Update section titles and order for styles and blocks

* add extra action bar story

* Updated organising + new page

- Updated organisation into Styles, Components and Patterns.
- Added page "Using Storybook" (mostly a skeleton for now)

* Added note about colours not being implemented yet

* Minor

Co-authored-by: Parimal Satyal <88370597+psatyal@users.noreply.github.com>
2022-09-19 14:39:15 +00:00
Eric Schubert c5b1f35574 [#40196] reworked notifications API specification
- https://community.openproject.org/work_packages/40196
- renamed collection model
- reworked examples and object definitions
2022-04-11 11:09:46 +02:00
Eric Schubert 3e07975584 [#41480] respond with 401 on invalid bearer tokens
- https://community.openproject.org/work_packages/41480
- amend strategy for doorkeeper to react on all bearer tokens
- added ouath request spec for valid, invalid and revoked token
2022-04-08 14:58:03 +02:00
Eric Schubert 979129f52c [chore] fix two issues with docker dev
- set default for OPENPROJECT_EDITION
- fix default path for ckeditor volume
- remove worker service from dependency
2022-04-05 10:17:21 +02:00
Benjamin Bädorf 88966fb20e Bump postgres to v13 in Docker dev environment (#10225) 2022-03-09 10:18:07 +00:00
Benjamin Bädorf 61efe76ad1 Add basic assignee autocompleter (#9940)
* Add basic assignee autocompleter

* Add basic principal store

* Improve Principal typing, working principal adding in resource table

* Small improvements to comments

* Simpler handling

* Better add button

* Add assignee remove button

* Basic spec

* Working team planner assignee spec

* Spec is a little better

* Fixed work package loading and specs

* Fix linting issues

* Fix linting issues

* Fix spec

* Remove @ts-ignore usage

Co-authored-by: Oliver Günther <mail@oliverguenther.de>

Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-12-09 12:16:17 +00:00
Benjamin Bädorf 14716e5e58 Update Selenium Grid for docker development
Commit e37b29b8fc updated the selenium driver and webdriver from v3 to v4, but failed to address local docker
development. This commit updatesthe docker selenium setup, and pins the docker images to a specific version, something
that wasn't done before.
2021-11-25 14:38:18 +01:00
Benjamin Bädorf ba5fb3ba52 op-sidemenu is now a thing 2021-09-20 18:51:59 +02:00
Markus Kahl 9f9ca73a7c fix docker frontend: parameterize ckeditor build dir, use working default 2021-08-31 11:41:30 +01:00
Benjamin Bädorf 32018e9e78 Add worker container to development setup 2021-08-04 10:52:57 +02:00
Benjamin Bädorf 4f0850d208 Enable frontend unit tests in docker (#9480)
* Enable frontend unit tests in docker

* Update npm command names
2021-07-19 12:32:05 +00:00
Benjamin Bädorf 9432de82dd Refactor/remove tickety tick formatter (#9429)
* Lazy load prettier dependency

* Remove tickety-tick-formatter completely

* Also escape dollar signs

* Fix branch name formatting

* Reduce commit message transformation for git-actions service to make it more in line with the tickety-tick formatter

* Update git commit formatter

* More fixes to formatter

* Fix regexes to work globally

* Also remove quotes from branch names

* Still trying to get these specs green

* Another tyr
2021-07-15 21:04:33 +02:00