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

Error in Parsing the YAML Config File #142

Open
farsheedify opened this issue Dec 1, 2024 · 0 comments
Open

Error in Parsing the YAML Config File #142

farsheedify opened this issue Dec 1, 2024 · 0 comments

Comments

@farsheedify
Copy link

farsheedify commented Dec 1, 2024

Issue Summary:

I am encountering a warning when attempting to run a scan with the -tdc flag while passing a YAML file containing the configuration data.

Details:
Warning Message:
[11:36:22] WARNING actor1 is required config_data_handler.py:34

Steps to Reproduce:

  1. Copy-paste the example configuration from the README file into a YAML file.
  2. Run the following command:

offat -f openapi.json --server http://[serveraddress] -tdc test_data_config.yaml -o output.yaml -of yaml

Environment:

Tested on both Ubuntu and Windows.
Installed the tool using pip.
Also tested manual installation and running with poetry.

Despite following the example provided in the README, I continue to receive the warning about actor1 being required. I have verified the YAML file's structure and content, but the issue persists across different environments and installation methods. The content of the YAML file is:

actors:
  - actor1:
    request_headers:
      - name: Authorization
        value: Bearer [Token1]
      - name: User-Agent
        value: offat-actor1

    query:
      - name: id
        value: 145
        type: int
      - name: country
        value: uk
        type: str
      - name: city
        value: london
        type: str

    body:
      - name: name
        value: actorone
        type: str
      - name: email
        value: [email protected]
        type: str
      - name: phone
        value: +11233211230
        type: str

    unauthorized_endpoints: # For broken access control
      - "/store/order/.*"
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

No branches or pull requests

1 participant