102 Commits

Author SHA1 Message Date
Jan Sandbrink 4d305df714 Allow to use API Tokens as Bearer tokens
We generate those tokens with a prefix, so that we
can decide by looking at a token, whether it's an API Token
or a different kind of token, so that we can decide which
code path to choose for validating the token.

The usage of access tokens as Bearer token has the usability advantage,
that you can paste them as plaintext into tools that expect you
to specify the token as a header.

Also the Basic auth approach for our old tokens usually rather caused
issues, such as browsers prompting for credentials in surprising situations.
If we were to deprecate basic authentication one day, this change today could've
been the first step towards that.
2026-02-05 08:07:04 +01:00
Alexander Brandon Coles 1d707895c6 Grammar fixes in code, docs: possessive its/it's
- **it's** is a contraction of _it is_ or _it has_. It requires an
apostrophe.
- **its** is the posssive form of _it_, denoting ownership. It should
not use an apostrophe.
2025-02-12 06:36:46 -03:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Oliver Günther c29279d99b Remove the definition for LDAP tls options
https://community.openproject.org/work_packages/45959
2024-04-02 11:11:47 +02:00
Christophe Bliard c795874f7f Update copyright year for 2024
command used: `rg -l 'Copyright \(C\) 2012-202\d the OpenProject' | xargs -n 100 sed -i -r 's/Copyright \(C\) 2012-202. the OpenProject/Copyright (C) 2012-2024 the OpenProject/'`
2024-01-02 16:23:54 +01:00
Oliver Günther 885836184a Rework autologin cookie to not be unique 2023-11-22 16:36:07 +01:00
as-op b1bdf9e9c9 [#48464] Remove export options from backlog module
https://community.openproject.org/work_packages/48464
2023-07-17 11:56:51 +02:00
Oliver Günther 8cd6e1ef64 Remove cache_store support for sessions
https://community.openproject.org/wp/48029
2023-05-02 10:17:02 +02:00
Christophe Bliard 21a696ef9b Update copyright information for 2023 2022-12-30 15:51:26 +01:00
luz paz c757e6f60e Fix various typos
Found via `codespell -q 3 -S ./.git,./config/locales,./modules/xls_export/config/locales,./modules/job_status/config/locales,./modules/two_factor_authentication/config/locales,./modules/backlogs/config/locales/crowdin,./**/config/locales,./frontend/src/vendor -L ba,inflight,nd,parms,pullrequest,pullrequests,sur,varius`
2022-11-08 05:34:15 -05:00
Oliver Günther 4da4099261 Change protocol mismatch warning bar to print correct warning
We can only link to the installation guides now that the protocol
setting can no longer be controlled in the UI.
2022-08-16 13:33:50 +02:00
Andreas Pfohl 5d2a9a5872 [#43123] Remove files storages feature flag
https://community.openproject.org/work_packages/43123
2022-07-29 09:03:46 +02:00
Christophe Bliard 27b05b3a56 fix typo 2022-04-08 10:01:48 +02:00
Christophe Bliard bc647389e4 fix typo 2022-04-08 10:01:01 +02:00
Christophe Bliard a8127db592 add example about enabling file storages module 2022-04-08 10:00:43 +02:00
ulferts 0b5575aa64 harmonize settings & configuration
They are for now still available as separate entities but that is more due to existing references to them both. Under the hood, they now depend on the
same structure `Settings::Definition` which just as well could have been named `Configuration::Definition`, that defines:
* the name
* the default value
* the type (which might be deferred from the default value)
* the array of allowed values

Both Setting and Configuration can now be overwritten using the same mechanisms:
* Default value
* Database value
* configuration.yml (settings.yml is removed)
* ENV vars
2022-03-14 13:37:22 +01:00
Christophe Bliard bc8d423ec2 update copyright information for 2022 2022-03-01 17:05:59 +01:00
Markus Kahl c9256e644c only use puma, introduce rack-timeout (#9718)
Co-authored-by: Oliver Günther <mail@oliverguenther.de>
2021-10-04 15:42:37 +02:00
Oliver Günther ccfa29c728 Move license and copyright docs to root, fix names and references 2021-09-02 21:50:46 +02:00
luz paz 3683042c9b Fix typos in user facing and non-user facing code
Found via `codespell v2.1.dev0`
2021-01-24 15:08:21 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
Oliver Günther 70348e2e1e Allow to override path to the CA used by LDAP connections 2020-05-14 15:03:56 +02:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther 5ad720b63f community and help links overridable document in config
[ci skip]
2018-11-20 09:17:33 +01:00
Cyril Rohr c531fba836 Make the log_level configurable 2018-10-11 15:35:31 +02:00
胡海星 5176e7b8ca Add the support of SSL smtp server 2018-09-21 21:07:39 +08:00
Oliver Günther b08a5874f5 Remove project responsible and type 2018-08-01 11:40:46 +02:00
Jens Ulferts 57c8aeb5aa add job to cleanup uncontainered attachments 2018-06-04 09:11:35 +02:00
Wieland Lindenthal b87e554ad8 Add documentation for configuration options 2018-02-12 16:22:01 +01:00
Wieland Lindenthal 643e945b85 - Remove configuration option for attachment search
- Remove attachment search from global search as it is currently incompatible
- Add rake task for indexing attachments that have not been indexed yet
- Make the attachments filters a EE feature.
2018-02-12 16:21:59 +01:00
Wieland Lindenthal f2ebad3915 WIP: attachment search 2018-02-12 16:19:26 +01:00
Oliver Günther 6ef4211e77 Bump copyright to 2018 (#6171)
[ci skip]
2018-02-12 08:51:12 +01:00
Oliver Günther 177f4e8963 Remove APIV2 and project associations / reportings
[ci skip]
2018-01-17 17:23:56 +01:00
Oliver Günther fc50bb72a1 [26237] Add configuration option for default comment order (#5896)
https://community.openproject.com/wp/26237
https://community.openproject.com/wp/25932


[ci skip]
2017-09-01 17:51:44 +02:00
Markus Kahl aad898439c added after_login redirect URL configurations 2017-08-11 13:46:35 +01:00
Oliver Günther c1eac0b5c8 Update configuration.yml.example
[ci skip]
2017-04-07 13:13:21 +02:00
Oliver Günther 0fbb9c6168 Provide configuration option for basic auth API access
This adds:

1. A configuration option `apiv3_enable_basic_auth` to determine whether v3 may use the basic auth strategies
2. Extensions to the warden strategies to disable them unless configured
2017-04-06 10:42:13 +02:00
Oliver Günther 7cf11bb689 Update copyright notice 2017-01-10 15:11:43 +01:00
Oliver Günther fb61244558 Extend documentation 2016-08-25 15:38:49 +02:00
Oliver Günther 38a12d96ba Add option to accept ssl certificates
This provides a configuration option to add `--trust-server-cert` to the
SVN calls made by OpenProject.

Either add the `trustedssl` key to the Subversion scm configuration or
set the ENV `OPENPROJECT_SCM_SUBVERSION_TRUSTEDSSL=true`.
2016-02-26 09:59:24 +01:00
Oliver Günther fb4bf739d9 Allow the configuration to disable APIv2 basic auth 2016-02-18 19:42:35 +01:00
Oliver Günther 04398738f2 Allow Repository.disabled_types to be strings
When passing configuration settings through ENV (e.g., packager), we
can't pass arrays as configuration settings.

This PR allows `Repository.disabled_types` to be set as a String in ENV,
e.g., through
`OPENPROJECT_SCM_SUBVERSION_DISABLED__TYPES='existing,foobar'`.
2016-02-16 13:45:22 +01:00
Oliver Günther 82eb512450 Make session name configurable 2016-02-15 10:18:44 +01:00
Oliver Günther ba491cbf47 Fix repository relocation on managed remote
Repositories were not properly relocated when using a managed remote.
This also changes the request to use an old identifier instead of the
whole path. The managed remote will build the correct old path itself.
2015-11-26 13:25:24 +01:00
Oliver Günther dac730ac5a Add insecure option to managed remotes
Adds an `insecure` option to the `configuration.yml`.

This option only applies when the manages: key is set to a URL.

If the given URL uses SSL, certificate checking will be disabled.
This key is set for a packaged installation by default, since it communicates locally and
these installations may often include a snakeoil certificate.
2015-11-20 17:35:33 +01:00
Oliver Günther 589ba8e7b1 Relocate repositories locally and remote
This commit introduces relocating a repository as a followup after
a project's identifier has been renamed.
2015-10-28 13:45:30 +01:00
Oliver Günther 6390f80f79 Restore keys from configuration example
[ci skip]
2015-10-21 10:52:32 +02:00
Oliver Günther d2764478ac Feature specs for remote repository management
Introduces a metadata key `:webmock` that can be used to enable
mocking HTTP requests in an environment on demand.
2015-10-13 12:47:16 +02:00
Oliver Günther ea64dacbdd Extend exemplary configuration 2015-10-13 12:47:16 +02:00
Oliver Günther 701c49ab31 Correct parsing of string and octal chmod values 2015-08-25 11:08:05 +02:00