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

Configuration validation #2004

Closed
35 tasks done
mssalvatore opened this issue Jun 8, 2022 · 0 comments
Closed
35 tasks done

Configuration validation #2004

mssalvatore opened this issue Jun 8, 2022 · 0 comments

Comments

@mssalvatore
Copy link
Collaborator

mssalvatore commented Jun 8, 2022

Refactor

Component(s) to be refactored

  • Configuration

Explanation

Document the configuration schema somewhere.
Add validation to the marshmallow schema and add this validation to the construction of the Configuration object (#1960)
The API should reject any submitted configuration that fails the validation checks.

Tasks

  • Rename common.configuration to common.agent_configuration - @VakarisZ
  • Figure out how to parse json arrays to tuples - @VakarisZ
  • CustomPBAConfiguration - @shreyamalviya
    • Modify the docstrings
    • Enforce constraints via schema (maybe verify the filenames)
  • PluginConfiguration - @shreyamalviya
    • Modify the docstrings
  • ScanTargetConfiguration (0.25d) - @VakarisZ
    • Modify the docstrings
    • Enforce constraints via schema
    • Change lists to Tuples
  • ICMPScanConfiguration - @shreyamalviya
    • Modify the docstrings
    • Enforce constraints via schema
  • TCPScanConfiguration - @shreyamalviya
    • Modify the docstrings
    • Enforce constraints via schema
    • Change lists to Tuples
  • NetworkScanConfiguration - @shreyamalviya
    • Modify the docstrings
    • Change lists to Tuples
  • ExploitationOptionsConfiguration - @shreyamalviya
    • Modify the docstrings
    • Enforce constraints via schema
    • Change lists to Tuples
  • ExploitationConfiguration - @shreyamalviya
    • Modify the docstrings
    • Change lists to Tuples
  • PropagationConfiguration - @shreyamalviya
    • Modify the docstrings
    • Enforce constraints via schema
  • AgentConfiguration - @shreyamalviya
    • Modify the docstrings
    • Enforce constraints via schema
    • Change lists to Tuples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants