Skip to content

Commit 2b5acd2

Browse files
committed
default is hmac-signature
1 parent 3206035 commit 2b5acd2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ headers:
6060
rename: x-acct-tenant
6161
hmac_signature:
6262
enabled: false
63-
extension_name: hmac_signature
63+
extension_name: hmac-signature
6464
http:
6565
host: 0.0.0.0
6666
port: 4000
@@ -1353,14 +1353,14 @@ For more information on the available functions and syntax, see the
13531353
|Name|Type|Description|Required|
13541354
|----|----|-----------|--------|
13551355
|**enabled**||Default: `false`<br/>|no|
1356-
|**extension\_name**|`string`|Default: `"hmac_signature"`<br/>|no|
1356+
|**extension\_name**|`string`|Default: `"hmac-signature"`<br/>|no|
13571357
|**secret**|`string`||yes|
13581358

13591359
**Example**
13601360

13611361
```yaml
13621362
enabled: false
1363-
extension_name: hmac_signature
1363+
extension_name: hmac-signature
13641364
13651365
```
13661366

e2e/src/hmac.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ mod hmac_e2e_tests {
4949

5050
let expected_signature = create_hmac_signature("VERY_SECRET", query);
5151
assert_eq!(
52-
extensions.get("hmac_signature").unwrap(),
52+
extensions.get("hmac-signature").unwrap(),
5353
&expected_signature
5454
);
5555
}

lib/router-config/src/hmac_signature.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub struct HMACSignatureConfig {
2929
}
3030

3131
fn default_extension_name() -> String {
32-
"hmac_signature".to_string()
32+
"hmac-signature".to_string()
3333
}
3434

3535
#[derive(Debug, Clone, Deserialize, Serialize, JsonSchema)]

0 commit comments

Comments
 (0)