Skip to content

Commit cd137ed

Browse files
committed
chore: disable authentication for local development
and add some dev docs Signed-off-by: Orzelius <33936483+Orzelius@users.noreply.github.com>
1 parent 4ea792f commit cd137ed

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

docs/developing.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ openssl ecparam -name prime256v1 -genkey -noout -out _out/cache-signing-key.key
1212

1313
# Build and run
1414
make docker-compose-up REGISTRY=127.0.0.1:5005
15+
16+
# Build and run (enterprise)
17+
make docker-compose-up REGISTRY=127.0.0.1:5005 WITH_ENTERPRISE=true
1518
```
1619

1720
To stop:
@@ -20,6 +23,9 @@ To stop:
2023
make docker-compose-down
2124
```
2225

26+
By default, authentication is disabled for local development, enable it by setting `authentication.enabled` to `true` in the config file (`hack/dev/config.yaml`), and providing a valid `htpasswd` file at the path specified by `authentication.htpasswdPath`.
27+
Optionally use the existing htpasswd file at `hack/dev/htpasswd` for testing.
28+
2329
## Running Image Factory Manually
2430

2531
In order to run the Image Factory, generate a ECDSA key pair:

hack/dev/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ http:
3030
externalURL: http://localhost:8080
3131

3232
authentication:
33-
enabled: true
33+
enabled: false
3434
htpasswdPath: /etc/image-factory/htpasswd
3535

3636
enterprise:

0 commit comments

Comments
 (0)