You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/latest/reference/api-reference.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -745,15 +745,16 @@ ApisixConsumerHMACAuthValue defines configuration for HMAC authentication.
745
745
746
746
| Field | Description |
747
747
| --- | --- |
748
-
|`access_key`_string_|AccessKey is the identifier used to look up the HMAC secret. |
748
+
|`key_id`_string_|KeyID is the identifier used to look up the HMAC secret. |
749
749
|`secret_key`_string_| SecretKey is the HMAC secret used to sign the request. |
750
-
|`algorithm`_string_| Algorithm specifies the hashing algorithm (e.g., "hmac-sha256"). |
751
-
|`clock_skew`_integer_| ClockSkew is the allowed time difference (in seconds) between client and server clocks. |
752
-
|`signed_headers`_string array_| SignedHeaders lists the headers that must be included in the signature. |
753
-
|`keep_headers`_boolean_| KeepHeaders determines whether the HMAC signature headers are preserved after verification. |
754
-
|`encode_uri_params`_boolean_| EncodeURIParams indicates whether URI parameters are encoded when calculating the signature. |
755
-
|`validate_request_body`_boolean_| ValidateRequestBody enables HMAC validation of the request body. |
756
-
|`max_req_body`_integer_| MaxReqBody sets the maximum size (in bytes) of the request body that can be validated. |
750
+
|`access_key`_string_| AccessKey is the identifier used to look up the HMAC secret. Deprecated from consumer configuration |
751
+
|`algorithm`_string_| Algorithm specifies the hashing algorithm (e.g., "hmac-sha256"). Deprecated from consumer configuration |
752
+
|`clock_skew`_integer_| ClockSkew is the allowed time difference (in seconds) between client and server clocks. Deprecated from consumer configuration |
753
+
|`signed_headers`_string array_| SignedHeaders lists the headers that must be included in the signature. Deprecated from consumer configuration |
754
+
|`keep_headers`_boolean_| KeepHeaders determines whether the HMAC signature headers are preserved after verification. Deprecated from consumer configuration |
755
+
|`encode_uri_params`_boolean_| EncodeURIParams indicates whether URI parameters are encoded when calculating the signature. Deprecated from consumer configuration |
756
+
|`validate_request_body`_boolean_| ValidateRequestBody enables HMAC validation of the request body. Deprecated from consumer configuration |
757
+
|`max_req_body`_integer_| MaxReqBody sets the maximum size (in bytes) of the request body that can be validated. Deprecated from consumer configuration |
Copy file name to clipboardExpand all lines: docs/en/latest/upgrade-guide.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,10 @@ More details: [ADC Backend Differences](https://github.com/api7/adc/blob/2449ca8
150
150
151
151
The `ApisixClusterConfig` CRD has been removed in 2.0.0. global rules and configurations should now be managed through the `ApisixGlobalRule` CRDs.
152
152
153
+
#### `ApisixConsumer` - `hmac-auth`
154
+
155
+
In apisix >= 3.11, most of the hmac-auth related configuration has been deprecated from consumer and moved to service/route level. The name of a `required` field has also been changed from `access_key` to `key_id`. If you have ApisixConsumer configuration with hmac-auth plugin compatible with <3.11, they will not be compatible with newer versions of APISIX. Since all 3+ versions of apisix are supported by ingress controller, if you dont upgrade APISIX, you don't need to change your ApisixConsumer configuration. But when using >3.11, pass all configurations other than `key_id`(previously `access_key`) via PluginConfig or ApisixRoute.
0 commit comments