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

restricting logs, output to appdata local directory for write operations #479

Open
wants to merge 3 commits into
base: integration
Choose a base branch
from

Conversation

snamilikonda
Copy link

@snamilikonda snamilikonda commented Nov 21, 2024

Pull Request Template

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Checklist

  • The code change is covered by unit tests. I have added tests that prove my fix is effective or that my feature works
  • I have performed end-to-end test locally.
  • New and existing unit tests pass locally with my changes
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I used clear names for everything
  • I have performed a self-review of my own code

@snamilikonda snamilikonda requested a review from a team as a code owner November 21, 2024 17:01
@snamilikonda snamilikonda linked an issue Nov 21, 2024 that may be closed by this pull request

public bool IsValidFilePath(string filePath)
{
if (string.IsNullOrWhiteSpace(filePath))
return false;
Copy link
Author

Choose a reason for hiding this comment

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

additional considerations here on what is valid

/// Wrapper for any System.IO methods needed
/// </summary>
[Export(typeof(IFileSystem))]
public class FileSystem : IFileSystem
Copy link
Author

@snamilikonda snamilikonda Nov 22, 2024

Choose a reason for hiding this comment

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

add an allowlist and denylist regexes to restrict where files can be read from
by default allow everything and deny nothing. users can allow or deny what they want.

input taken testsetting at highest level

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.

[Feature]: Restrict location of file storage on test runs
1 participant