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

Ownership support for volumes #820

Merged
merged 1 commit into from
Jan 16, 2019
Merged

Conversation

lpabon
Copy link
Member

@lpabon lpabon commented Jan 15, 2019

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:

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]>
@lpabon lpabon force-pushed the ownership-oidc2 branch 2 times, most recently from fc519d8 to 2bd2528 Compare January 15, 2019 07:02
Copy link

@ptheunis ptheunis left a 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.

@@ -32,19 +29,24 @@ const (
InterceptorContextTokenKey InterceptorContextkey = "tokenclaims"
)

// UserInfo contins information about the user taked from the token

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?

Choose a reason for hiding this comment

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

File ticket for this.

Copy link
Member Author

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

Choose a reason for hiding this comment

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

File ticket for this.

Copy link
Member Author

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

Choose a reason for hiding this comment

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

File ticket for this

Copy link
Member Author

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

Choose a reason for hiding this comment

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

File ticket for this

Copy link
Member Author

Choose a reason for hiding this comment

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

@lpabon lpabon merged commit dacb2a4 into libopenstorage:master Jan 16, 2019
@lpabon lpabon deleted the ownership-oidc2 branch January 16, 2019 19:45
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.

2 participants