-
Notifications
You must be signed in to change notification settings - Fork 27
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
Replace os.stat sentinel file check with XRootD http GET #1791
Conversation
@jhiemstrawisc left one comment asking for clarification, otherwise implemented the suggested changes |
server_utils/origin.go
Outdated
@@ -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) { |
There was a problem hiding this comment.
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"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks Matt!
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). |
No description provided.