Skip to content

Commit

Permalink
Merge pull request PelicanPlatform#907 from jhiemstrawisc/issue-906
Browse files Browse the repository at this point in the history
Configure 'sec.protbind' for public origins
  • Loading branch information
jhiemstrawisc authored Mar 7, 2024
2 parents 2478671 + a792012 commit 80602d4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
4 changes: 2 additions & 2 deletions param/parameters_struct.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions xrootd/resources/xrootd-origin.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ xrd.tlsca certfile {{.Server.TLSCACertificateFile}}
{{if eq .Origin.EnableDirListing false}}
http.listingdeny true
{{end}}
{{if eq .Origin.EnablePublicReads true}}
sec.protbind * none
{{end}}
{{if .Origin.EnableMacaroons}}
http.exthandler xrdmacaroons libXrdMacaroons.so
macaroons.secretkey {{.Xrootd.MacaroonsKeyFile}}
Expand Down
35 changes: 18 additions & 17 deletions xrootd/xrootd_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,23 +79,24 @@ enable = true

type (
OriginConfig struct {
Multiuser bool
EnableCmsd bool
EnableMacaroons bool
EnableVoms bool
EnableDirListing bool
SelfTest bool
CalculatedPort string
NamespacePrefix string
RunLocation string
Mode string
S3Bucket string
S3Region string
S3ServiceName string
S3ServiceUrl string
S3AccessKeyfile string
S3SecretKeyfile string
S3UrlStyle string
Multiuser bool
EnableCmsd bool
EnableMacaroons bool
EnableVoms bool
EnablePublicReads bool
EnableDirListing bool
SelfTest bool
CalculatedPort string
NamespacePrefix string
RunLocation string
Mode string
S3Bucket string
S3Region string
S3ServiceName string
S3ServiceUrl string
S3AccessKeyfile string
S3SecretKeyfile string
S3UrlStyle string
}

CacheConfig struct {
Expand Down

0 comments on commit 80602d4

Please sign in to comment.