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

[Bug]: Collaborator private attributes were accessible from Aggregator steps #31

Conversation

scngupta-dsp
Copy link

Issue Description:

  • Collaborator private attributes were accessible from Aggregator steps

Fix Summary:

  • Collaborator is now made private attribute of LocalRuntime so that it is not accessible from aggregator steps

Changes:

  • Framework Modules: collaborator is made a private attribute of LocalRuntime
    openfl/experimental/runtime/local_runtime.py

  • New Testcase: Workflow interface test to validate this functionality
    tests/github/experimental/testflow_privateattributes.py

  • Updates to existing Test cases: local_runtime._collaborators is modified to local_runtime.collaborator
    tests/github/experimental/testflow_exclude.py
    tests/github/experimental/testflow_include.py
    tests/github/experimental/testflow_include_exclude.py
    tests/github/experimental/testflow_internalloop.py
    tests/github/experimental/testflow_reference.py
    tests/github/experimental/testflow_reference_with_exclude.py
    tests/github/experimental/testflow_reference_with_include.py

  • Updates to Tutorials: local_runtime._collaborators is modified to local_runtime.collaborator
    openfl-tutorials/experimental/Global_DP/Workflow_Interface_Mnist_Implementation_1.py
    openfl-tutorials/experimental/Global_DP/Workflow_Interface_Mnist_Implementation_2.py
    openfl-tutorials/experimental/Privacy_Meter/cifar10_PM.py
    openfl-tutorials/experimental/Vertical_FL/Workflow_Interface_VFL_Two_Party.ipynb
    openfl-tutorials/experimental/Vertical_FL/Workflow_Interface_Vertical_FL.ipynb
    openfl-tutorials/experimental/Workflow_Interface_101_MNIST.ipynb
    openfl-tutorials/experimental/Workflow_Interface_102_Aggregator_Validation.ipynb
    openfl-tutorials/experimental/Workflow_Interface_201_Exclusive_GPUs_with_Ray.ipynb
    openfl-tutorials/experimental/Workflow_Interface_301_MNIST_Watermarking.ipynb

scngupta-dsp and others added 4 commits December 16, 2022 13:08
…at collaborator private variables are not accessible to aggregators
…s local_runtime._collaborators is no longer accessible. Updated Workflow Interface testcases and Tutorials with this change
- Aggregator private attributes are accessible only in Aggregator steps
- Collaborator private attributes are accessible only in Collaborator steps
@psfoley psfoley self-requested a review December 17, 2022 00:14
@psfoley psfoley merged commit f7cacb9 into psfoley:experimental-workflow-interface Dec 17, 2022
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