Bug-227: "authorization" header is not supported by SLB "Header" policy |AS-8101|

Review Request #228 — Created April 19, 2024 and updated

rvempati
APV10
rel_apv_10_7
https://bugzilla.arraynetworks.net/show_bug.cgi?id=227
kdutta, pradeep, prajesh
"authorization" header is not supported by SLB "Header" policy |AS-8101|

login as: array
array@192.168.162.169's password:
ArrayOS Beta.APV.10.7.2.2 - untagged unofficial build by uid=0(root) gid=0(root) groups=0(root) on devrohit: on Mon Jul 29 13:49:52 2024
Copyright (c) 2000-2024 Array Networks Inc. All rights reserved.

Type "?" for available commands

!!Reminder!! Please log on to the WebUI to register this system.

APV-2>en
Enable password:

APV-2#c t

APV-2(config)#
APV-2(config)#show version

ArrayOS Beta.APV.10.7.2.2 - untagged unofficial build by uid=0(root) gid=0(root) groups=0(root) on devrohit: on Mon Jul 29 13:49:52 2024

    Host name : APV-2
   System CPU : Intel(R) Xeon(R) CPU
   System RAM : 3879500 kbytes.

System boot time : Mon Jul 29 18:38:50 GMT (+0000) 2024
Current time : Mon Jul 29 18:40:50 GMT (+0000) 2024
System up time : 2 mins, 30 secs
Platform Bld Date : Mon Jul 29 18:38:10 GMT 2024
SSL HW : No HW Available
Compression HW : No HW Available
Network Interface : 4 x 10Gigabit Ethernet fiber
Model : Array vAPV
Serial Number : 242D68BFB1C3800005012644705634
Licensed Limits : vCPUs(x2), NICs(x8), RAM(16 GB), Bandwidth(1024 Mbps)
Licensed Features : WebWall Clustering L4SLB L7SLB Caching
SSL tProxy SwCompression LLB GSLB QoS
MultiLang DynRoute IPv6
License Key : aaefb5c9-56238f64-4051c9c8-b79e1c50-ad706abd-177ffe00-0455d8ab-20240312-99999999

Array Networks Customer Support
Telephone : 1-877-992-7729 (1-877-99-ARRAY)
Email : support@arraynetworks.com
Update : please contact support for instructions
Website : http://www.arraynetworks.com

Other Root Version
Rel.APV.10.7.0.15 build on Tue Mar 19 07:19:11 2024

APV-2(config)#
APV-2(config)#slb policy header "test2" "Naveen_http_75_43" "test_http_grp" "a$

APV-2(config)#

Description From Last Updated

is this all the changes needed? this will only allow the configuration to go through. what about slb policy when …

tanyatanya

Please add ut as discussed use curl to generate header request.

kduttakdutta

"cache-control" is not removed. I checked the code as well, the below block of code available in the rel_apv_10_7 branch: …

rvempatirvempati

why did we remove cache-control ? is this intentional?

prajeshprajesh
prajesh
  1. Ship It!
  2. 
      
prajesh
  1. I dont think we should commit to 10.4.x branch. Ask Tanya whether you should commit it to 10.7.1 branch.

    1. Sure Praveen.
      I checked with Tanya, and she suggested to commit to rel_apv_10_7 / rel_apv_10_7_1. Will do the same as mentioned.

  2. 
      
rvempati
  1. Ship It!

  2. 
      
kdutta
  1. 
      
  2. Please add ut as discussed use curl to generate header request.

  3. 
      
rvempati
rvempati
rvempati
prajesh
  1. 
      
  2. why did we remove cache-control ? is this intentional?

    1. No, it is not removed.
      "cache-control" is available in the slb_header_not_supported list.

  3. 
      
rvempati
  1. 
      
  2. "cache-control" is not removed.

    I checked the code as well, the below block of code available in the rel_apv_10_7 branch:
    static __inline uint8_t
    slb_header_not_supported(char *name)
    {

        if (!strcmp(name, "cache-control") ||
            !strcmp(name, "connection") ||
            !strcmp(name, "cookie") ||
            !strcmp(name, "date") ||
    

    Thanks,
    Rohith

  3. 
      
rvempati
rvempati
Review request changed

Testing Done:

   

login as: array

~   array@192.168.162.171's password:
~   Last login: Mon Apr 29 03:59:43 2024 from 192.168.162.170
  ~ array@192.168.162.169's password:
  ~ ArrayOS Beta.APV.10.7.2.2 - untagged unofficial build by uid=0(root) gid=0(root) groups=0(root) on devrohit: on Mon Jul 29 13:49:52 2024
-   ArrayOS Rel.APV.10.7.0.6 - untagged unofficial build by uid=0(root) gid=0(root) groups=0(root) on devrohit: on Sun Apr 21 07:47:21 2024
    Copyright (c) 2000-2024 Array Networks Inc. All rights reserved.

   
   

Type "?" for available commands

   
   

!!Reminder!! Please log on to the WebUI to register this system.

   
   

   
   

   
~  

AN>en

  ~

APV-2>en

    Enable password:

   
~  

AN#c t

  ~

APV-2#c t

   
~  

AN(config)#slb policy header "test2" "Naveen_http_75_43" "test_http_grp" "auth$

~   header policy "test2" is already configured

  ~

APV-2(config)#

  ~ APV-2(config)#show version

   
~  

AN(config)#

  ~

ArrayOS Beta.APV.10.7.2.2 - untagged unofficial build by uid=0(root) gid=0(root) groups=0(root) on devrohit: on Mon Jul 29 13:49:52 2024

-   System is busy. No longer in config mode.

   
~  

  ~
    Host name : APV-2
  +
   System CPU : Intel(R) Xeon(R) CPU
  +
   System RAM : 3879500 kbytes.
  +
   
~  

  ~

System boot time : Mon Jul 29 18:38:50 GMT (+0000) 2024

  + Current time : Mon Jul 29 18:40:50 GMT (+0000) 2024
  + System up time : 2 mins, 30 secs
  + Platform Bld Date : Mon Jul 29 18:38:10 GMT 2024
  + SSL HW : No HW Available
  + Compression HW : No HW Available
  + Network Interface : 4 x 10Gigabit Ethernet fiber
  + Model : Array vAPV
  + Serial Number : 242D68BFB1C3800005012644705634
  + Licensed Limits : vCPUs(x2), NICs(x8), RAM(16 GB), Bandwidth(1024 Mbps)
  + Licensed Features : WebWall Clustering L4SLB L7SLB Caching
  + SSL tProxy SwCompression LLB GSLB QoS
  + MultiLang DynRoute IPv6
  + License Key : aaefb5c9-56238f64-4051c9c8-b79e1c50-ad706abd-177ffe00-0455d8ab-20240312-99999999

  +
  +

Array Networks Customer Support

  + Telephone : 1-877-992-7729 (1-877-99-ARRAY)
  + Email : support@arraynetworks.com
  + Update : please contact support for instructions
  + Website : http://www.arraynetworks.com

   
~  

AN#c t

  ~

Other Root Version

  + Rel.APV.10.7.0.15 build on Tue Mar 19 07:19:11 2024

   
~  

AN(config)#slb policy header "test2" "Naveen_http_75_43" "test_http_grp" "auth$

  ~

APV-2(config)#

  + APV-2(config)#slb policy header "test2" "Naveen_http_75_43" "test_http_grp" "a$

   
~  

AN(config)#

  ~

APV-2(config)#

tanya
  1. 
      
  2. is this all the changes needed? this will only allow the configuration to go through. what about slb policy when traffic comes with the new header. could you provide unit test for that.

    1. I cannot mark it ship until the issuer is resolved or explanation is provided

    2. Yes. I relooked at the changes, the ask is to enable SLB using authorization header. But the fix seesm to be blocking the authorization header policy. This fix does seem inappropriate to me as well. This need to be fixed before this fix can be committed.

  3. 
      
Loading...