Gitea-HelmChart/templates/gitea
justusbunsi f0d0c00ed6 Properly sanitize gitea admin output (#590)
### Description of the change

With https://github.com/go-gitea/gitea/pull/28390, Gitea 1.21.2 introduced warning log output within the result of `gitea admin <subcommand>` and therefore affects the current provisioning script.
That script previously assumed a clean result set and was therefore doomed to fail at _some_ point.

This introduces output sanitizing to trim such logs above the actual result table.

### Applicable issues

- fixes #589

### Additional information

The non-sanitized output were only an issue for admin account provisioning, and only when the username matched one of these words (in case of #589 it was `gitea`):
```text
.../setting/security.go:168:loadSecurityFrom() [W] Enabling Query API Auth tokens is not recommended. DISABLE_QUERY_AUTH_TOKEN will default to true in gitea 1.23 and will be removed in gitea 1.24.
```

LDAP and OAuth sources were not affected by this particular log line, but also processed non-sanitized result sets. Changing their code is a precaution.

Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/590
Reviewed-by: pat-s <pat-s@noreply.gitea.com>
Co-authored-by: justusbunsi <sk.bunsenbrenner@gmail.com>
Co-committed-by: justusbunsi <sk.bunsenbrenner@gmail.com>
2023-12-21 07:59:18 +00:00
..
config.yaml Properly distinguish predefined and custom env vars in environment-to-ini (#586) 2023-12-18 08:44:51 +00:00
deployment.yaml fix: Deployment has no field serviceName #466 (#467) 2023-07-18 06:25:38 +00:00
deprecation.yaml Add deprecation fail-safe for Chart templating (#269) 2021-12-23 00:25:32 +08:00
extra-list.yaml add extraDeploy to add arbitrary objects to the release (#441) 2023-05-02 21:32:54 +08:00
gpg-secret.yaml Fix wrong reference to existingKey (#415) 2023-03-21 14:16:41 +08:00
http-svc.yaml Allow configuration of ipFamilyPolicy and ipFamilies (#313) 2022-04-25 19:56:25 +08:00
ingress.yaml Improving DRY principle support on gitea Ingress host name (#498) 2023-09-22 15:09:13 +00:00
init.yaml Properly sanitize gitea admin output (#590) 2023-12-21 07:59:18 +00:00
poddisruptionbudget.yaml [Breaking] Add HA-support; switch to Deployment (#437) 2023-07-17 19:09:42 +00:00
pvc.yaml Expose persistence.volumeName (#471) 2023-07-19 12:37:53 +00:00
serviceaccount.yaml Add support for ServiceAccount configuration (#451) 2023-05-31 08:47:58 +00:00
servicemonitor.yaml Fixing prometheus monitoring (#157) 2021-06-07 22:28:28 +08:00
ssh-svc.yaml [Breaking] Add HA-support; switch to Deployment (#437) 2023-07-17 19:09:42 +00:00