[WMS-113] glite-wms-create-proxy.sh uses an undefined GLOBUS_LOCATION env var Created: 16/Jan/14  Updated: 16/Jan/14  Resolved: 16/Jan/14

Status: Resolved
Project: WMS
Component/s: None
Affects Version/s: 3.6.2 WMS Server
Fix Version/s: 3.6.3 WMS Server
Security Level: Public (Visbile by non-authn users.)

Type: Bug Priority: Major
Reporter: Alvise Dorigo Assignee: Alvise Dorigo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

https://ggus.eu/ws/ticket_info.php?ticket=100083



 Comments   
Comment by Alvise Dorigo [ 16/Jan/14 ]

Fix committed in org.glite.wms. It consists in the replacement of GLOBUS_LOCATION with WMS_LOCATION_USR in the shell script.

To test it, it's just sufficient to upgrade the glite-wms-purger rpm and execute:

grep "grid-proxy-init" /usr/sbin/glite-wms-create-proxy.sh

which should print out:

proxy=`"${WMS_LOCATION_USR}/bin/grid-proxy-init" -q \

They have already verified that this substitution on the script solves the problem of 512bit generated proxy. Read carefully the related ticket and the related ones because this issue is tightly related to WMS-114.

In fact the missing variable GLOBUS_LOCATION avoids the invocation of grid-proxy-init, which by default produces 1024bit proxies.
But we observed that the proxy is still updated; by what ? by an internal mechanism of the wms purger which uses internal an hard-coded value (512bit) for the proxy generation (issue WMS-114).

When issue WMS-113 is solved, the proxy are correctly generated with 1024bit because grid-proxy-init is invoked by the cron; but the purger still has the hard-coded value of 512bit in it's proxy_init() function. Then, if the cron fails for some reason, because of WMS-114 issue the proxy goes back to 512bits.

Fix to WMS-114 makes sure the the WMS's proxy will always be generated with 1024bits.

Generated at Sat Apr 27 02:47:56 CEST 2024 using Jira 9.12.5#9120005-sha1:fa8821cdb090f6b5ec0424ddb13fa19bc92d8429.