Open
Description
- Newman Version (can be found via
newman -v
): 5.3.1 - OS details (type, version, and architecture): macos Monterey 12.3
- Are you using Newman as a library, or via the CLI? as a cli in docker
- Did you encounter this recently, or has this bug always been there: cannot determine (first newman use)
- Expected behaviour: Disable secret should not be used.
- 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
- Sample collection, and auxiliary files (minus the sensitive details):
- 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