Skip to content

Commit

Permalink
Merge pull request #4 from BristolComputing/3.1.0-dev
Browse files Browse the repository at this point in the history
Merging 3.1.0 development branch into main
  • Loading branch information
kreczko authored Jul 6, 2022
2 parents 7d57530 + 1cf05df commit dae3d40
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 17 deletions.
7 changes: 4 additions & 3 deletions etc/xrootd/Authfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
## under /xrootd.
## There must be at least one such user in order to create the
## private dirs for users willing to store their data in the facility
u xrootd /xrootd/ a
u xrootd /xrootd/ a \
/store/ a

###############################################################################################
### alice
Expand Down Expand Up @@ -101,9 +102,9 @@ x cmssgm /xrootd/cms/store/user/sam/ a \
# CMS users have full access to their own directory and temp, and read for CMS
# While xrootd allows the user to *attempt* any operation - even in other user's
# home directories
g /cms /xrootd/cms/store/user/ a \
g /cms /xrootd/cms/store/user a \
/xrootd/cms/store/temp/ a \
/store/user/ a \
/store/user a \
/store/temp/ a \
readcmsdata

Expand Down
2 changes: 0 additions & 2 deletions etc/xrootd/config.d/10-file-catalog.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
if $(xrdr)
oss.namelib libXrdCmsTfc.so file:/cvmfs/cms.cern.ch/SITECONF/local/PhEDEx/storage.xml?protocol=direct
fi
16 changes: 8 additions & 8 deletions etc/xrootd/config.d/20-https.cfg
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#
# Configure HTTPS access and security
#
http.cadir /etc/grid-security/certificates
http.cert /etc/grid-security/xrd/hostcert.pem
http.key /etc/grid-security/xrd/hostkey.pem

# http.cadir /etc/grid-security/certificates
# http.cert /etc/grid-security/xrd/hostcert.pem
# http.key /etc/grid-security/xrd/hostkey.pem
http.httpsmode auto
http.desthttps yes

if exec xrootd
Expand All @@ -13,19 +13,19 @@ if exec xrootd
xrd.protocol http:$(httpsPort) /usr/lib64/libXrdHttp.so
xrd.protocol http:$(httpsPort) +port
http.selfhttps2http yes

# Enable third-party-copy
http.exthandler xrdtpc libXrdHttpTPC.so

# Pass the bearer token to the Xrootd authorization framework.
http.header2cgi Authorization authz
fi

# just to note that there can be differences: https://github.com/xrootd/xrootd/issues/1369
# Full extraction gives something like:
# sec.vorg="cms cms cms cms cms" sec.grps="/cms /cms/ALARM /cms/GGUSExpert /cms /cms/TEAM" sec.role="production NULL NULL NULL NULL"
# sec.vorg="cms cms cms cms cms" sec.grps="/cms /cms/ALARM /cms/GGUSExpert /cms /cms/TEAM" sec.role="production NULL NULL NULL NULL"
# where the first and 4th entries are identical except for the role. The latter role seems to have fewer permissions.
# http.secxtractor /usr/lib64/libXrdVoms.so certfmt=raw|grpopt=usefirst|vos=atlas,cms,dteam,dune,gridpp,lz,mu3e.org,ops,wlcg|grps=/atlas,/cms,/dteam,/dune,/gridpp,/lz,/mu3e,/ops,/wlcg|dbg
http.secxtractor /usr/lib64/libXrdVoms.so certfmt=raw|grpopt=useall|vos=atlas,cms,dteam,dune,gridpp,lz,mu3e.org,ops,wlcg|grps=/atlas,/cms,/dteam,/dune,/gridpp,/lz,/mu3e,/ops,/wlcg|dbg
http.selfhttps2http no
http.tlsreuse on
http.tlsreuse off
11 changes: 7 additions & 4 deletions etc/xrootd/xrootd-clustered.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ all.sitename $(resourcename)
all.export / nostage
all.manager $(xrdr):3121
cms.allow host *
xrootd.chksum max 2 adler32 crc32 md5
# num Maximum number of checksum calculations that may run at the same time
xrootd.chksum max 62 adler32 crc32 md5


# Disable OSG monitoring
Expand Down Expand Up @@ -45,16 +46,18 @@ all.adminpath /var/spool/xrootd
all.pidpath /var/run/xrootd

# default: startup=90, lookup=5
cms.delay startup 10 lookup 10
cms.delay startup 10 lookup 5

# Set the time file existence information is to be cached in memory.
# Setting the cache time too low will substantially increase overhead.
# default: 8h
# cannot be less than 60s
cms.fxhold noloc 60s 60s
# cms.fxhold noloc 60s 60s

# from https://github.com/xrootd/xrootd/issues/1703
cms.dfs lookup central redirect immed
if $(xrdr)
cms.dfs lookup central redirect immed retries 2
fi

# More configuration files can be added in /etc/xrootd/config.d/
# For example /etc/xrootd/config.d/10-mygrid.cfg and
Expand Down

0 comments on commit dae3d40

Please sign in to comment.