Skip to content

Commit cc4d0d8

Browse files
committed
Update docs
1 parent 53351cd commit cc4d0d8

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

crates/common/src/config/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub const SIGNER_PORT_ENV: &str = "CB_SIGNER_PORT";
3737

3838
/// Comma separated list module_id=jwt_secret
3939
pub const JWTS_ENV: &str = "CB_JWTS";
40-
pub const ADMIN_JWT_ENV: &str = "CB_ADMIN_JWT";
40+
pub const ADMIN_JWT_ENV: &str = "CB_SIGNER_ADMIN_JWT";
4141
/// The JWT secret for the signer to validate the modules requests
4242
pub const SIGNER_JWT_SECRET_ENV: &str = "CB_SIGNER_JWT_SECRET";
4343

docs/docs/get_started/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ docker compose -f cb.docker-compose.yml exec cb_signer curl -X POST http://local
369369

370370
The signer module takes 2 optional parameters in the JSON body:
371371

372-
- `jwt_secrets`: a string with a comma-separated list of `<MODULE_ID>=JWT_SECRET` for all modules.
372+
- `jwt_secrets`: a string with a comma-separated list of `<MODULE_ID>=<JWT_SECRET>` for all modules.
373373
- `admin_secret`: a string with the secret for the signer admin JWT.
374374

375375
In the case that someone of those isn't present, that parameter won't be updated.

docs/docs/get_started/running/binary.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Modules need some environment variables to work correctly.
2727

2828
### Signer Module
2929
- `CB_SIGNER_JWT_SECRET`: secret to use for JWT authentication with the Signer module.
30+
- `CB_SIGNER_ADMIN_JWT`: secret to use for admin JWT.
3031
- `CB_SIGNER_PORT`: required, port to open the signer server on.
3132
- For loading keys we currently support:
3233
- `CB_SIGNER_LOADER_FILE`: path to a `.json` with plaintext keys (for testing purposes only).

0 commit comments

Comments
 (0)