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

Add example implementation of access control #11550

Merged
merged 23 commits into from
Nov 16, 2021

Commits on Nov 8, 2021

  1. Add full implementation of access control

    New interface (issue project-chip#10249) and new implementation (issue project-chip#10250).
    
    Implementation is all in-memory and uses only static storage and stack
    (no heap).
    
    Some details missing (e.g. CAT support) but most is here, though not yet
    hooked up to other code.
    
    Comes with unit tests.
    mlepage-google committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    4008c6b View commit details
    Browse the repository at this point in the history
  2. Fix configuration

    Was added at last minute, missed this spot.
    mlepage-google committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    ba57c95 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2021

  1. Address code review comments

    - rewrite portions of the check loop to use boolean instead of goto
    - refactor privilege checking to make it clearer
    - ensure storage classes are POD types (with static_assert)
    - remove memsets on storage classes (for now, can re-add later)
    - clarify some comments
    - remove debug log statement
    mlepage-google committed Nov 9, 2021
    Configuration menu
    Copy the full SHA
    9405ff3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    77130a4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    efbc851 View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2021

  1. Address code review comments

    Also fix some compiler warnings/errors on other builds
    mlepage-google committed Nov 10, 2021
    Configuration menu
    Copy the full SHA
    374cc54 View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2021

  1. Add tests for fabric filtered indexing

    Refactor the index conversion (to/from fabric filtered) to be clearer.
    mlepage-google committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    2061acc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0bc0ec7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5246b6a View commit details
    Browse the repository at this point in the history
  4. Address code review comments

    - change Target::Flags from int to unsigned
    - use unsigned in static_asserts for flags
    - tweak auto variables
    mlepage-google committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    a1bf4da View commit details
    Browse the repository at this point in the history
  5. Add docs and comments

    - Add API documentation (mainly to clarify in/out parameters).
    - Add implementation comments (where warranted).
    - Add more unit tests (mainly for removing subjects/targets).
    - A few fixes to get aforementioned tests passing.
    - A bit of refactoring/renaming to clarify the code.
    mlepage-google committed Nov 11, 2021
    Configuration menu
    Copy the full SHA
    1de1315 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6f37b35 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    034ff9c View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2021

  1. Configuration menu
    Copy the full SHA
    f357aa2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34b3edd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    32456e6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a4f4418 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    057b27c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    06b8834 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    df20d99 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b9cf23b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    e877fc9 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    3cc4171 View commit details
    Browse the repository at this point in the history