Option to disable Query Auth Token #609

Closed
opened 2024-01-27 01:36:19 +00:00 by buzzsurfr · 1 comment
buzzsurfr commented 2024-01-27 01:36:19 +00:00 (Migrated from gitea.com)

I'm getting the following warning whenever I'm running a CLI command:

2024/01/27 00:48:24 .../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.

The Configuration Cheat Sheet covers how to set the flag.

DISABLE_QUERY_AUTH_TOKEN: false: Reject API tokens sent in URL query string (Accept Header-based API tokens only). This setting will default to true in Gitea 1.23 and be deprecated in Gitea 1.24.

However, there's no way in the helm template to set this configuration. (Is there?)

Feature request is to add this as an option to the helm chart. I can provide if needed.

I'm getting the following warning whenever I'm running a CLI command: ``` 2024/01/27 00:48:24 .../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. ``` The [Configuration Cheat Sheet](https://docs.gitea.com/administration/config-cheat-sheet#security-security) covers how to set the flag. > `DISABLE_QUERY_AUTH_TOKEN`: false: Reject API tokens sent in URL query string (Accept Header-based API tokens only). This setting will default to true in Gitea 1.23 and be deprecated in Gitea 1.24. However, there's no way in the helm template to set this configuration. (Is there?) Feature request is to add this as an option to the helm chart. I can provide if needed.
buzzsurfr commented 2024-01-27 05:14:24 +00:00 (Migrated from gitea.com)

Found my issue. Per the helm chart's instructions (RTFM), I changed my values.yaml to include:

gitea:
  config:
    security:
      DISABLE_QUERY_AUTH_TOKEN: true
Found my issue. Per the [helm chart's instructions](https://gitea.com/buzzsurfr/helm-chart/src/branch/main#configuration) (RTFM), I changed my values.yaml to include: ```yaml gitea: config: security: DISABLE_QUERY_AUTH_TOKEN: true ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lunny/helm-chart#609
No description provided.