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

Improve authentication documentation #2737

Merged
merged 27 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replace docker with Docker
  • Loading branch information
chilagrow committed Jun 5, 2023
commit 55d9cd6035a8521ab2206a0569b43bdf558a6a36
4 changes: 2 additions & 2 deletions website/docs/security/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ A client that specify username and password in MongoDB URI as below is authentic
mongosh 'mongodb://user2:pass2@127.0.0.1/ferretdb?authMechanism=PLAIN'
```

### Using docker
### Using Docker

For using docker, specify `FERRETDB_POSTGRESQL_URL` with default username and password.
For Docker, specify `FERRETDB_POSTGRESQL_URL` with default username and password.

```yml
services:
Expand Down
10 changes: 5 additions & 5 deletions website/docs/security/securing-connections-with-tls.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ Be sure to check that `client-certs` directory and files are present.
mongosh 'mongodb://user2:pass2@127.0.0.1:27018/ferretdb?authMechanism=PLAIN&tls=true&tlsCertificateKeyFile=./client-certs/client.pem&tlsCaFile=./client-certs/rootCA-cert.pem'
```

### Using TLS with docker
### Using TLS with Docker

For using docker to run `ferretdb` server, `docker-compose.yml` example for TLS is provided in below.
The docker host requires certificates `server-certs` directory,
and volume is mounted from `./server-certs` of docker host to `/etc/certs` of docker container.
For using Docker to run `ferretdb` server, `docker-compose.yml` example for TLS is provided in below.
The Docker host requires certificates `server-certs` directory,
and volume is mounted from `./server-certs` of Docker host to `/etc/certs` of Docker container.

```yml
services:
Expand Down Expand Up @@ -110,7 +110,7 @@ docker compose up
```

In the following example, a client connects to MongoDB URI using TLS certificates as `user2`.
It uses docker volume to mount `./clients-certs` of docker host to `/clients` docker container.
It uses Docker volume to mount `./clients-certs` of Docker host to `/clients` Docker container.

```sh
docker run --rm -it \
Expand Down