File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -386,6 +386,11 @@ func (req *Request) Fingerprint() (*Fingerprint, error) {
386
386
return nil , fmt .Errorf ("get ddos detected: %w" , err )
387
387
}
388
388
389
+ fingerprint .FastlyKeyIsValid , err = req .abi .req .DownstreamFastlyKeyIsValid ()
390
+ if err != nil {
391
+ return nil , fmt .Errorf ("get fastly key is valid: %w" , err )
392
+ }
393
+
389
394
req .fingerprint = & fingerprint
390
395
391
396
return req .fingerprint , nil
@@ -1043,6 +1048,9 @@ type Fingerprint struct {
1043
1048
1044
1049
// DDOSDetected is true if the request was determined to be part of a DDOS attack.
1045
1050
DDOSDetected bool
1051
+
1052
+ // FastlyKeyIsValid is true if the request contains a valid Fastly API token.
1053
+ FastlyKeyIsValid bool
1046
1054
}
1047
1055
1048
1056
// DecompressResponseOptions control the auto decompress response behaviour.
You can’t perform that action at this time.
0 commit comments