Whitelist for "lockdown" mode
See original GitHub issueContext
I have an express app, which has to do some queries to third parties in order to answer its own queries. I use supertest
to test the app. Now I record the queries going to the third party with nock and want to play them back on my tests. When I now use NOCK_BACK_MODE=lockdown
, I get an error because supertest
tries to connect to the app running at localhost:34227
or something. In this case I would like to forbid queries to any third parties but allow queries to localhost:*
. I think that could be quite helpful.
Alternatives
I do not think so.
Has the feature been requested before?
I searched the issues and found nothing.
If the feature request is accepted, would you be willing to submit a PR?
Maybe. Cannot promise.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
5.16. Configuring Firewall Lockdown Red Hat Enterprise Linux 7
The lockdown whitelist can contain commands, security contexts, users and user IDs. If a command entry on the whitelist ends with an asterisk...
Read more >FAQ - Lockdown Privacy
Here's how to whitelist an app or website: Open Lockdown; Tap "Whitelist"; On iOS, tap the "domain-to-whitelist.com" field. Or if you're on macOS,...
Read more >How to bypass Google's Santa LOCKDOWN mode
The lockdown mode is a whitelisting system, where only the whitelisted binaries can run and everything else will be blocked.
Read more >How to Use Lockdown Mode on iPhone - Lifewire
How to Enable Lockdown Mode on iPhone · Open Settings. · Scroll down and tap Privacy & Security. · Tap Lockdown Mode. ·...
Read more >LOCKDOWN Statement - SAS Help Center
The lockdown path list contains all the paths that are accessible to a particular server. (This list is often referred to as a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It would be nice to pass options into
nockBack
.The maintainers are currently focused on working on other things, see #1404 and #1441. But we sure can help review pull requests and help if you get stuck in some way.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We try to do our best, but nock is maintained by volunteers and there is only so much we can do at a time. Thank you for your contributions.