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

Handle fabric removal, factory reset in access control #13876

Closed
mlepage-google opened this issue Jan 24, 2022 · 2 comments
Closed

Handle fabric removal, factory reset in access control #13876

mlepage-google opened this issue Jan 24, 2022 · 2 comments
Assignees
Labels
acl Access Control feature V1.0

Comments

@mlepage-google
Copy link
Contributor

mlepage-google commented Jan 24, 2022

When we have a framework for fabric removal and factory reset, need to handle that.

E.g. fabric 3 removed (but not 1, 2, or 4) --> need to remove ACL entries for fabric 3 only.

Also tests.

@mlepage-google mlepage-google added the acl Access Control feature label Jan 27, 2022
@mlepage-google mlepage-google changed the title Access control handle fabric removal, factory reset Handle fabric removal, factory reset in access control Jan 27, 2022
@mlepage-google mlepage-google self-assigned this Jan 31, 2022
mlepage-google added a commit to mlepage-google/connectedhomeip that referenced this issue Mar 25, 2022
Use the "public" API to delete entries for a fabric.

Tested (on Linux using chip-all-clusters-app and chip-tool) by
commissioning on three fabrics, with 3, 2, and 2 distinct ACLs,
then removing the second (middle) fabric, and verifying that
the remaining 5 ACLs are preserved, even after restart.

Part of issue project-chip#13876 (fabric removal and factory reset)
bzbarsky-apple pushed a commit that referenced this issue Mar 26, 2022
Use the "public" API to delete entries for a fabric.

Tested (on Linux using chip-all-clusters-app and chip-tool) by
commissioning on three fabrics, with 3, 2, and 2 distinct ACLs,
then removing the second (middle) fabric, and verifying that
the remaining 5 ACLs are preserved, even after restart.

Part of issue #13876 (fabric removal and factory reset)
@mlepage-google
Copy link
Contributor Author

Turns out factory data reset isn't really a spec-compliant feature, so handling fabric removal is all that's necessary for now.

@mlepage-google
Copy link
Contributor Author

What's in master branch (PR #16685) is working correctly, but overzealous with persistence. We already have an issue to improve persistence (#14451) so this issue can be closed as the feature is working, and remove fabric is a rare procedure so overzealous persistence is not necessarily an issue anyways.

rochaferraz pushed a commit to rochaferraz/connectedhomeip that referenced this issue Mar 31, 2022
Use the "public" API to delete entries for a fabric.

Tested (on Linux using chip-all-clusters-app and chip-tool) by
commissioning on three fabrics, with 3, 2, and 2 distinct ACLs,
then removing the second (middle) fabric, and verifying that
the remaining 5 ACLs are preserved, even after restart.

Part of issue project-chip#13876 (fabric removal and factory reset)
andrei-menzopol pushed a commit to andrei-menzopol/connectedhomeip that referenced this issue Apr 14, 2022
Use the "public" API to delete entries for a fabric.

Tested (on Linux using chip-all-clusters-app and chip-tool) by
commissioning on three fabrics, with 3, 2, and 2 distinct ACLs,
then removing the second (middle) fabric, and verifying that
the remaining 5 ACLs are preserved, even after restart.

Part of issue project-chip#13876 (fabric removal and factory reset)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acl Access Control feature V1.0
Projects
None yet
Development

No branches or pull requests

4 participants