Commit Graph

12798 Commits

Author SHA1 Message Date
Florian Scholdei
217a2e155e Svn external contains sub directory
In case of using Svn external with sub directory the ui showed an empty page

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2023-06-15 11:55:12 +02:00
Eduard Heimbuch
d74ed28542 Enhance helm chart template
Add variables for liveness probe and readiness probe
initial delay for helm chart

Committed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-06-15 08:27:13 +02:00
Rene Pfeuffer
32a0a6868f Fix security findings
- Add security headers:
  - X-Frame-Options
  - X-Content-Type-Options
  - Content-Security-Policy
  - Permissions-Policy
- Do not send server information header

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-06-14 15:57:01 +02:00
CES Marvin
4a7f6a77d8 Prepare for next development iteration 2023-06-13 15:58:14 +00:00
CES Marvin
d5073ac6f5 Release version 2.44.1 2.44.1 2023-06-13 14:35:26 +00:00
Eduard Heimbuch
9c5a266c34 Adjust changelog for release 2.44.1 2023-06-13 16:23:45 +02:00
Eduard Heimbuch
47ddce71a6 Update yarn lock 2023-06-13 16:21:54 +02:00
Rene Pfeuffer
c3093a3b0d Prevent repository loading in namespace mapper
Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-06-13 16:16:15 +02:00
Konstantin Schaper
1c2ddff531 update dependencies in ui-plugins to match externals of @scm-manager/plugin-scripts 2023-06-09 15:25:21 +02:00
Florian Scholdei
09de0d8327 Update debian installation instructions
Committed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-06-09 08:27:43 +02:00
CES Marvin
ebd62d5591 Prepare for next development iteration 2023-06-08 13:47:46 +00:00
CES Marvin
ac7e83ccee Release version 2.44.0 2.44.0 2023-06-08 12:29:55 +00:00
René Pfeuffer
7f2cee5078 Adjust changelog for release 2.44.0 2023-06-08 14:18:51 +02:00
Rene Pfeuffer
5c505457bb Implement delete for audit log wrapper
This fixes errors when deleting configurations.
The error occured during "unmirror" in the mirror plugin.

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-06-08 10:30:37 +02:00
Rene Pfeuffer
86b8be9f17 In-memory implementations of the store api using JaxB
The new implementations are ment to be used in test
classes replacing the older implementations like
`InMemoryConfigurationStoreFactory`. The benefit
of these new classes is that the serialization using JaxB
is testet implicitly avoiding mistakes made with XML
annotations on the data classes.

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-06-07 10:04:50 +02:00
Konstantin Schaper
b0eebc7a2e Improve card (list) component and its fix layout issues
Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2023-06-05 13:40:11 +02:00
Konstantin Schaper
22d21bec8c fix publish config 2023-06-01 12:00:09 +02:00
Konstantin Schaper
32807a0d80 Implement chip input for multiple text entries
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2023-06-01 11:43:41 +02:00
Konstantin Schaper
c0eb470253 allow lazy markdown view to support className 2023-06-01 11:14:17 +02:00
Konstantin Schaper
9c7f650e12 make ui-layout public 2023-05-31 11:28:06 +02:00
Eduard Heimbuch
62119b8d10 Handle promise to fix sonarlint warning 2023-05-26 14:05:57 +02:00
Eduard Heimbuch
a50e456969 Ignore duplicate contributors for single changeset
Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2023-05-25 19:26:38 +02:00
Konstantin Schaper
b812922142 Implement namespace configurations & permissions
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>

Reviewed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2023-05-25 18:51:29 +02:00
René Pfeuffer
9f9aebf1d5 Prepare for next development iteration 2023-05-19 13:52:09 +02:00
René Pfeuffer
de5e0cc360 Fix versions of new packages 2023-05-19 13:49:57 +02:00
René Pfeuffer
635ad9c845 Merge branch 'main' into develop
# Conflicts:
#	scm-ui/ui-webapp/package.json
2023-05-19 13:46:20 +02:00
René Pfeuffer
30affae76d Fix hg anonymous access by sending authenticate header
If anonymous access is enabled and read requests are granted
to hg repositories for the anonymous user, write requests
fail also for users with write requests, because no
authentication header has been sent along with the 401.
This fixes this issue in the default cgi servlet.
2023-05-19 13:17:45 +02:00
Konstantin Schaper
01bff1ce95 Fix race condition with plugin bundles
There may be a race condition when loading plugin bundles with lazy dependencies:

The OpenAPI plugin depends on "redux" and "react-redux", which are bundled in the lazy "ui-legacy" module, as the usage of redux is deprecated in the scmm. The "ui-legacy" module also binds a global wrapper extension point around the whole app. Due to a bug in the plugin loader, plugin bundles were marked as successfully loaded even if a lazy dependency hadn't successfully loaded yet. This caused the extension point from the "ui-legacy" bundle to be bound after the initial render. As the process of extension point binding  doesn't trigger a re-render, the redux provider was not wrapped around the app on initial load. When the user now moved focus out of and back into the window, react-query hooks automatically refetched e.g. the index links, which caused a re-render. Now with the bound extension point applied. This caused the whole app to be unmounted and re-mounted, which in turn reset all form fields anywhere below in the tree.

Also fixes a bug where the global notifications component was executing a state update while already unmounted.

Also fixes a bug in the user creation form where an object literal was passed to the form's default values which caused a form reset whenever the component re-rendered.

Committed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-05-15 17:34:50 +02:00
CES Marvin
617f48878a Release version 2.43.1 2.43.1 2023-05-12 11:28:00 +00:00
René Pfeuffer
5b9257442f Adjust changelog for release 2.43.1 2023-05-12 13:19:42 +02:00
Rene Pfeuffer
92390ce0d2 Fix default branch in git mirror command
The git mirror command did not set the default branch correctly in all cases. If the source repository contained a 'master' branch, no default branch was set. This led to an error in the refresh process, when globally another branch has been configured as dafault (when not changed, this is 'main'), because the working copy should be created with the main branch checked out. Because no default was specified, the globally configured default (by default 'main') had been taken and that branch does not exist in the mirror.

So all subsequent mirror updates failed with a message like this one:

could not find branch with id main in repository with id ...

With this fix, the default branch is always set in the SCM-Manager configuration for the repository and therefore cannot be missing in subsequent updates.

Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-05-12 13:12:40 +02:00
Rene Pfeuffer
8025e82b1b Use pgpainless for key generation
The library pgpainless (https://gh.pgpainless.org/) makes it much more easy to create gpg keys for new users. As a benefit, these keys can be verified by GitHub.

Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-05-08 15:31:56 +02:00
Florian Scholdei
05bc61ab1b Use forwardRef in FileInput
Committed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-05-04 08:22:02 +02:00
Konstantin Schaper
ea67a04b5d Refactor repository tags overview 2023-05-02 15:49:48 +02:00
Eduard Heimbuch
a185cc7d16 Optimize config form and binder 2023-04-19 11:52:22 +02:00
Eduard Heimbuch
40c4e1672c Refactor plugin manager
Make the plugin manager functions more clear and improve the usability by using a sticky top area with action buttons.

Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2023-04-18 10:06:40 +02:00
Konstantin Schaper
0ded2ce352 Implement new menu component
Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2023-04-18 09:43:57 +02:00
CES Marvin
0d80b68661 Prepare for next development iteration 2023-04-12 14:09:45 +00:00
CES Marvin
5458e0c7ec Release version 2.43.0 2.43.0 2023-04-12 13:14:19 +00:00
Eduard Heimbuch
8f5d661f4f Adjust changelog for release 2.43.0 2023-04-12 15:08:15 +02:00
Eduard Heimbuch
c6df84557b Refactor general configuration
Use standard configuration store api for general configuration. This is best practice and also required for the audit log to work properly.

Besides that we still need to load the general configuration manually for the instance injection binding in ScmServletModules. Since the instance injection does not resolve the bindings regularly we need also still need to update the injectable scm config using the "load" hack in the resource.

Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2023-04-12 12:37:52 +02:00
Eduard Heimbuch
aa78cb6f03 Cleanup hg permissions 2023-04-11 09:02:09 +02:00
Konstantin Schaper
7e83d34fc0 Improve committer accuracy
Changes made by the SCM-Manager, like those through the editor and pull requests, now more accurately define the committer on the underlying changeset.

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
2023-04-06 10:16:41 +02:00
Rene Pfeuffer
8eb2687e10 Fix branch and tag name validation
The validation for branch and tag names has been
too limited. This led to errors in the frontend for
branches, that had been created using the
cli tools for git or hg but have not been seen as
valid by SCM-Manager.

To fix this, the patterns to validate branch and
tag names are relaxed and relate to the git
rules (https://git-scm.com/docs/git-check-ref-format).
Because these rules could not be expressed
using regular expressions alone, in addition
possible exceptions will be handled in the
git branch and tag commands.

Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
Co-authored-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
2023-04-05 11:45:15 +02:00
Konstantin Schaper
b53f8bcf12 Improve diverse form features
- General responsiveness
- Resize select component
- Fix datepicker for dark themes
- Make success notification configurable

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>

Reviewed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-04-03 10:02:17 +02:00
Eduard Heimbuch
026ffa18fd Replace static mercurial permission handling
Replace our own hg permission handling with the default hg permission which is controlled by the `web` config
2023-04-03 09:47:15 +02:00
Rene Pfeuffer
e679dac94d Do not fail without default branch
This selects the first branch, if no default
branch is present.

Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-04-03 08:14:23 +02:00
Laura Gorzitze
d4e03c6f70 Extension points for information page tables
Committed-by: Konstantin Schaper <konstantin.schaper@cloudogu.com>
Co-authored-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>

Reviewed-by: Rene Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-03-28 18:10:18 +02:00
Konstantin Schaper
31117681e4 fix e2e test 2023-03-27 15:45:27 +02:00
Konstantin Schaper
d257c8616c Display images in diffs
Committed-by: Eduard Heimbuch <eduard.heimbuch@cloudogu.com>
Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
2023-03-22 11:17:22 +01:00