Skip to content

Disabled variables are being used anyway #2986

Open
@skydebernardigu

Description

@skydebernardigu
  1. Newman Version (can be found via newman -v): 5.3.1
  2. OS details (type, version, and architecture): macos Monterey 12.3
  3. Are you using Newman as a library, or via the CLI? as a cli in docker
  4. Did you encounter this recently, or has this bug always been there: cannot determine (first newman use)
  5. Expected behaviour: Disable secret should not be used.
  6. Command / script used to run Newman:
    newman run 01_config_components.postman_collection.json -e 01_config_components_dev.postman_environment.json -n 2 --delay-request 40 -x -g vtp_dev.postman_globals.json
  7. Sample collection, and auxiliary files (minus the sensitive details):
  8. Screenshots (if applicable):

In 01_config_components_dev.postman_environment.json I have a disable api key secret:
{ "key": "back_office_app_sync_api_key", "value": "REDACTED_WRONG_KEY", "type": "secret", "enabled": false },

in global file (vtp_dev.postman_globals.json) I have the same key with enabled: true
{ "key": "back_office_app_sync_api_key", "value": "REDATED_CORRECT_KEY", "type": "default", "enabled": true },

if i run newman I get "UNAUTHORIZED" in response to every request.
After deleting back_office_app_sync_api_key block in first file, every response is OK.
Seems that, in case of duplicated key, newman uses the wrong one.

Thankyou
Debe

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions