From 1b54b70a8df27fc0e00ce556945f00504a3a351d Mon Sep 17 00:00:00 2001 From: Marsell Kukuljevic Date: Fri, 15 Nov 2024 16:40:02 +0100 Subject: [PATCH] Fix Host header problem with proxy, switch Azure auth to type Fides uses. --- check_mk-azure/azure-spearhead-0.2.0.mkp | Bin 5544 -> 0 bytes check_mk-azure/azure-spearhead-0.2.2.mkp | Bin 0 -> 5683 bytes .../check_mk/agents/special/agent_azure_common | 17 ++++++++++++----- .../check_mk/web/plugins/wato/azure_common.py | 6 +++--- 4 files changed, 15 insertions(+), 8 deletions(-) delete mode 100755 check_mk-azure/azure-spearhead-0.2.0.mkp create mode 100755 check_mk-azure/azure-spearhead-0.2.2.mkp diff --git a/check_mk-azure/azure-spearhead-0.2.0.mkp b/check_mk-azure/azure-spearhead-0.2.0.mkp deleted file mode 100755 index be07ed8e3d1f7a800bb480df291e7b0a17fa1aff..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5544 zcmai%RZtrYqJ?oS?p~}AJQTO!4u#?p+>2ABXmN+&P#lUCw-yMlr8pFd6Fff}ptxl3 z-iNzSJNNC(oVRc0%zTF_5eH>^p2ralc`E(EXYG5-eVt|a(D&GR`n}Q0%;c*q!sTSlKk#Fk^&y65+Ro#o#vO}dVD=P%Im@Z|xp%jLgi`cd zb-#0m?|xlB=Vv`69p<}f*IA#yi;x2cy}%RLfq3a z7g%_BrpqqI7a7GSGb3f42lp=+wo^=_3xE%g0X_4q!8^I?ULu9x7k-l!(%@nNU((U| zbN`-vZ|#d9=`5d_Ete8?Ii(_ge?%A}r5YI}a2-I06=3qo29}13`gs1NHUxWIK^_42 zC{B?Vb1%)!NFo~~uRC8|O8dB}v2UUYUB59<1X4PM4QwqwJD z-_wf5usOkCq)I*l-v&bWu|Lu(U*&36;(jYy(xHn1a0$0%;pHh=7rZ`D)F1T{Qz*)Z zMNJB%iy!r-ET3D#aPg$9YKC}HSqXB>=~zz#Vamgut^jXf5plIlL%EOU0O`^kW(xl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E^B-?`;`3im#Jv_H9mIOD)iq>!%;Xj{U;)*%+Hv@~W4d-57lg1n9XTj&7%A z@0?iP-tn@0_62RG=m73ilr1w7b^-p@_E_cr%U}4{3HfsZ40aDQA(Wg@oSb6pONW zl=|#a7LBrXy5Z;Nn;CyuXmlNeZvIVP|H-gnF{f?sMcFj5Cb#g0nKM%oBkKXmN$YVk zHGJoDB}Z{e$-6E>ex^1TOfvqI9r#9JiA8C@@=J{QEUy)>Q`R|If(kSKk$*8B2N?1A z=euERCj-L+yTA{aTg`<7!#!4otLXVxj;(KfqCS&?RR3fb4JGv1(PQt5JxSAJ+s-6Q zBlB0T+S?UX%sCz4i3yAH81M!Ip_jrP+j0?{0Gz%v0!q48Tj{%hD8Xxy;tG-?%=w{R zqLwT=42>HhGmCAvoPoW)nqH~WMiXSIWrxQf*gwrQo<7{zpB2!ow~{miup@w5CC?-6 z7o-lxNi?+MsuT?CHk^pc!#141i8=6urhgdRqWN0`R!mb27V6@D8jgtYJ=qnl@pawS yqjfC44kkt=@7bZllkFUaBEoz-bshUYReAhpqyOzH+&K;)(fP83MNkkZDE|VbSFBF} diff --git a/check_mk-azure/azure-spearhead-0.2.2.mkp b/check_mk-azure/azure-spearhead-0.2.2.mkp new file mode 100755 index 0000000000000000000000000000000000000000..509d3a3b0ce53f2ed022bb80cfb90d877c24b290 GIT binary patch literal 5683 zcmZ{mWl$6VqqTvhySr=Y5Tv`ik?!tPN?1}tkWP^fl@J!mW$Bd;X~d;Nx?`!mcjo)< z`|I9+XU_Te%$%8r=_57@jfc1!8uCQeD`>S1jHtJZ0iTqM=6*}GlP%$*VFLQR&*Eg1 z_Hq5BURkcHp`@INulUDM_Temqib#%KE01AS)32Gy8)q5jWM{6l5sOiIJ_=B#v-fjT zf5I|)>jIv2NH?C*#lOG(D>SlJQ{HkQ54HfNSSV)3hkKH`4 z8b(&NXp7%u!#oIp!S{xGb&gVaBWBl1_G(d5uBd)Cotn#*TdVX4`VQk19jaCd=pBC8EhNjxIq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