Forum Discussion
F5 iRule Example integrating HMAC
Hi Dtwesten,
I was able to sniff through the HTML source of your post...
General notes
The condition [HTTP::uri] starts_with "/" is always true. So you can savely remove every instance of this condition.
You parse the request for [HTTP::cookie exists "hmac_01"] but you set [HTTP::cookie insert "hmac_74"]
You should unset $hmac_output right after [HTTP::cookie insert name "hmac_74" value $hmac_output path "/"]
You should add HttpOnly and Secure flags to the HMAC cookie if security is a concern.
Regarding your error
The line...
set hmac_input $hmac_output
... should be changed to...
set hmac_input [HTTP::cookie value "hmac_74"]
The rest looks good so far...
Cheers, Kai
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com