Skip to content

Commit

Permalink
feat: provide the option to allow for Gitea registration, so that SSO…
Browse files Browse the repository at this point in the history
… can be used (#2118)

Provide the option to allow for Gitea registration, so that SSO can be
used

## Description

We like to use Gitea with Keycloak for SSO. In order to do that,
registration has to be enabled. This provides the capability as an
option, but left as `true` to disable registration by default.

## Related Issue

N/A

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [ ] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow)
followed

Co-authored-by: Wayne Starr <Racer159@users.noreply.github.com>
  • Loading branch information
dgershman and Racer159 authored Nov 7, 2023
1 parent 64e8857 commit a1e82ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gitea/gitea-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ gitea:
security:
INSTALL_LOCK: true
service:
DISABLE_REGISTRATION: true
DISABLE_REGISTRATION: "###ZARF_VAR_GIT_SERVER_DISABLE_REGISTRATION###"
repository:
ENABLE_PUSH_CREATE_USER: true
FORCE_PRIVATE: true
Expand Down
4 changes: 4 additions & 0 deletions packages/gitea/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ variables:
- name: GIT_SERVER_REPLICA_COUNT
description: The number of git server replicas to deploy
default: "1"

- name: GIT_SERVER_DISABLE_REGISTRATION
description: Disables the ability to register new users
default: true

constants:
- name: GITEA_IMAGE
Expand Down

0 comments on commit a1e82ba

Please sign in to comment.