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

Refactor code for security policy #1279

Merged
merged 1 commit into from
Jan 28, 2022

Conversation

anmaxvl
Copy link
Contributor

@anmaxvl anmaxvl commented Jan 15, 2022

The current implementation exposes some internal structure,
which is unnecessary as well as some structs are duplicated
across security policy package and security policy tool.
This PR refactors code to de-duplicate exported structures
and hides internal implementation behind new factory methods.

Signed-off-by: Maksim An maksiman@microsoft.com

@anmaxvl anmaxvl requested a review from a team as a code owner January 15, 2022 01:03
@anmaxvl
Copy link
Contributor Author

anmaxvl commented Jan 15, 2022

@SeanTAllen FYI

@anmaxvl anmaxvl force-pushed the policy-tool-code-reorg branch from 03dc145 to 45efb49 Compare January 15, 2022 01:05
The current implementation exposes some internal structure,
which is unnecessary as well as some structs are duplicated
across security policy package and security policy tool.
This PR refactors code to de-duplicate exported structures
and hides internal implementation behind new factory methods.

Signed-off-by: Maksim An <maksiman@microsoft.com>
@SeanTAllen
Copy link
Contributor

All of this seems good to me and in line with discussions that Maksim and I have had.

Copy link
Collaborator

@KenGordon KenGordon left a comment

Choose a reason for hiding this comment

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

Looks fine to me, moved a few things about.

@dcantah dcantah self-assigned this Jan 26, 2022
Copy link
Contributor

@dcantah dcantah left a comment

Choose a reason for hiding this comment

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

lgtm, little question about a toml field name

Copy link
Contributor

@msscotb msscotb left a comment

Choose a reason for hiding this comment

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

lgtm

@anmaxvl anmaxvl merged commit 3ac1cea into microsoft:master Jan 28, 2022
@anmaxvl anmaxvl deleted the policy-tool-code-reorg branch January 28, 2022 22:48
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
The current implementation exposes some internal structure,
which is unnecessary as well as some structs are duplicated
across security policy package and security policy tool.
This PR refactors code to de-duplicate exported structures
and hides internal implementation behind new factory methods.

Signed-off-by: Maksim An <maksiman@microsoft.com>
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.

5 participants