-
Notifications
You must be signed in to change notification settings - Fork 118
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
Ownership support for volumes #820
Conversation
Ownership adds the management of the Ownership object in the volume spec, which is used to determine permissions on access to a volume. Signed-off-by: Luis Pabón <[email protected]>
fc519d8
to
2bd2528
Compare
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
2 Minor typos in comments and some tickets to file so we don't forget.
pkg/auth/userinfo.go
Outdated
@@ -32,19 +29,24 @@ const ( | |||
InterceptorContextTokenKey InterceptorContextkey = "tokenclaims" | |||
) | |||
|
|||
// UserInfo contins information about the user taked from the token |
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.
contains*
taken*
fmt.Errorf("Failed to find volume mapping for %v", req.MountPath) | ||
volid := resp.GetVolume().GetId() | ||
|
||
// TODO: Idempotency? |
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.
File ticket for this.
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.
@@ -343,6 +366,9 @@ func (s *CloudBackupServer) SchedDelete( | |||
return nil, status.Error(codes.Unavailable, "Resource has not been initialized") | |||
} | |||
|
|||
// TODO |
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.
File ticket for this.
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.
@@ -261,6 +276,9 @@ func (s *CloudBackupServer) StateChange( | |||
return nil, status.Error(codes.Unavailable, "Resource has not been initialized") | |||
} | |||
|
|||
// TODO |
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.
File ticket for this
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.
@@ -190,6 +195,10 @@ func (s *CloudBackupServer) Status( | |||
return nil, status.Error(codes.Unavailable, "Resource has not been initialized") | |||
} | |||
|
|||
// XXX Check ownership |
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.
File ticket for this
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.
2bd2528
to
233c32a
Compare
What this PR does / why we need it:
Ownership adds the management of the Ownership object in the
volume spec, which is used to determine permissions on access
to a volume.
Which issue(s) this PR fixes (optional)
Part of #448
Special notes for your reviewer: