Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace os.stat sentinel file check with XRootD http GET #1791

Merged
merged 4 commits into from
Dec 5, 2024

Conversation

mwestphall
Copy link
Contributor

No description provided.

server_utils/origin.go Outdated Show resolved Hide resolved
server_utils/origin.go Outdated Show resolved Hide resolved
server_utils/origin.go Outdated Show resolved Hide resolved
server_utils/origin.go Outdated Show resolved Hide resolved
server_utils/origin.go Outdated Show resolved Hide resolved
server_utils/origin.go Outdated Show resolved Hide resolved
server_utils/origin.go Outdated Show resolved Hide resolved
server_utils/origin.go Show resolved Hide resolved
server_utils/origin.go Outdated Show resolved Hide resolved
server_utils/origin.go Outdated Show resolved Hide resolved
@mwestphall
Copy link
Contributor Author

@jhiemstrawisc left one comment asking for clarification, otherwise implemented the suggested changes

@@ -750,18 +754,64 @@ from S3 service URL. In this configuration, objects can be accessed at /federati
return originExports, nil
}

// Generate a minimally scoped auth token that allows the origin
// to query itself for its sentinel file
func generateSentinelCheckScitoken(resourceScope string) (string, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last minor nitpick -- this function technically generates a WLCG token, which isn't the same as a scitoken. How about "generateSentinelReadToken"?

Copy link
Member

@jhiemstrawisc jhiemstrawisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks Matt!

@jhiemstrawisc
Copy link
Member

The failing test here is unrelated to changes and suggests a runtime hiccup in GHA. Rather than re-run, I'll just merge (was passing before this simple function rename).

@jhiemstrawisc jhiemstrawisc merged commit e2ca6dc into PelicanPlatform:main Dec 5, 2024
19 of 20 checks passed
@jhiemstrawisc jhiemstrawisc linked an issue Dec 10, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sentinel file for S3 origin
2 participants