question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Whitelist for "lockdown" mode

See original GitHub issue

Context

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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
paulmelnikowcommented, Feb 26, 2019

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.

0reactions
stale[bot]commented, Oct 8, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found