I’d like to ask about a problem that occurred while trying to control the cloud armor.
Among the logs in cloud armor, I think the only thing that can see the data in the attack payload is jsonPayload.enforcedSecurityPolicy.matchedFieldValue. (required for attack analysis)
Is there a way to lift the restrictions as the corresponding value only comes up to 16 bytes?
There is no direct way to increase the length limit of the matchedFieldValue field in Cloud Armor logs, as it is a fixed-size field that can’t be changed. However, you can work around this limitation by collecting detailed logs from your web server or application logs, which may contain the full attack payload data.
Send the logs to a log sink in Cloud Logging for analysis and monitoring.
Configure your web server or application to log detailed information about incoming requests and responses. This may include the full HTTP request and response headers and bodies.
Use Cloud Logging queries to filter and analyze the logs based on specific criteria, such as the source IP address, request path, or HTTP status code.