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

Introducing Role Based Access Control (RBAC) - build RBAC cache #1263

Merged
merged 1 commit into from Feb 11, 2021
Merged

Introducing Role Based Access Control (RBAC) - build RBAC cache #1263

merged 1 commit into from Feb 11, 2021

Conversation

SeanCondon
Copy link
Contributor

Part 1 of enforcing RBAC - build the RBAC cache by listening to events from "rbac" DeviceChanges store

Only do this if authentication is turned on

Part 1 of enforcing RBAC - build the RBAC cache
@@ -186,42 +190,6 @@ func GetManager() *Manager {
return &mgr
}

// ComputeDeviceChange computes a given device change the given updates and deletes, according to the path
// on the configuration for the specified target
func (m *Manager) ComputeDeviceChange(deviceName devicetype.ID, version devicetype.Version,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just moved this to setconfig.go in the same package - it's only ever used from there so did not need to be in this file

Copy link
Contributor

@adibrastegarnia adibrastegarnia left a comment

Choose a reason for hiding this comment

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

LGTM. please make sure the tests are OK.

@SeanCondon SeanCondon merged commit 1400cf6 into onosproject:master Feb 11, 2021
@SeanCondon SeanCondon deleted the scIntroduceRbac branch February 11, 2021 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants