Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of USERNAME and PASSWORD to environment variables to create Owner user. #5506

Merged
merged 10 commits into from
Sep 24, 2024
3 changes: 3 additions & 0 deletions argilla/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ These are the section headers that we use:
-->

## [Unreleased]()
### Fixed

- Fixed the deployment yaml used to create a new Argilla server in K8s. Added `USERNAME` and `PASSWORD` to the environment variables of pod template. ([#5434](https://github.com/argilla-io/argilla/issues/5434))

## [2.2.1](https://github.com/argilla-io/argilla/compare/v2.2.0...v2.2.1)

Expand Down
4 changes: 4 additions & 0 deletions argilla/docs/reference/argilla-server/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ You can set the following environment variables to further configure your server
#### Authentication

- `ARGILLA_AUTH_SECRET_KEY`: The secret key used to sign the API token data. You can use `openssl rand -hex 32` to generate a 32 character string to use with this environment variable. By default a random value is generated, so if you are using more than one server worker (or more than one Argilla server) you will need to set the same value for all of them.
- `USERNAME`: If provided, the owner username (Default: `None`).
- `PASSWORD`: If provided, the owner password (Default: `None`).

If `USERNAME` and `PASSWORD` are provided, the owner user will be created with these credentials on the server startup.

#### Database

Expand Down
5 changes: 5 additions & 0 deletions examples/deployments/k8s/argilla-server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ spec:
value: "http://elasticsearch:9200"
- name: ARGILLA_AUTH_SECRET_KEY
value: "CHANGE_ME"
# Uncomment these lines to create owner user
# - name: USERNAME
# value: "argilla"
# - name: PASSWORD
# value: "12345678"
ports:
- containerPort: 6900
resources:
Expand Down
Loading