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.

Allow skipping export of Organizations

See original GitHub issue

Describe the problem you’d like to have solved

Hi, I’ve recently updated the CLI to version 7, to allow exporting actions.

However, I’m having an issue where our tenant contains thousands of orgs.

The CLI now wants to export them along with their connections, which can’t be done in a timely manner, and is not desired for our use-case.

My preference is to treat these Orgs as data, rather than as config that should be exported. I’m wondering if there is any support for this. (or if there are any suggestions for ergonomic work-arounds)

I can’t find any evidence that this is supported, but I thought I would ask.

It’s not clear to me whether it is safe to try to delete organizations from the resulting export, and then deploy, or if this would delete organizations. (This issue seems relevant: https://github.com/auth0/auth0-deploy-cli/issues/387)

Describe the ideal solution

Some way to exclude organizations from the export.

e.g, an environment variable, or some kind of manifest that outlines the desired export)

Attempted work arounds

I tried dropping the read:organizations scope, but the export throws:

2022-03-03T03:21:01.811Z - info: Retrieving organizations data from Auth0
2022-03-03T03:21:02.012Z - error: Problem running command export during stage load when processing type organizations
2022-03-03T03:21:02.012Z - error: Insufficient scope, expected any of: read:organizations
2022-03-03T03:21:02.013Z - debug: Forbidden: Insufficient scope, expected any of: read:organizations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
willveddcommented, Mar 9, 2022

Ah ok, my mistake! Resource exclusion on the export side is a commonly requested feature that’s on our roadmap. We can certainly keep this open until it gets addressed more formally.

2reactions
willveddcommented, Mar 8, 2022

Thanks for raising this. I think this is a duplicate of #387 which I have just merged a relevant fix for. In short, excluding resources from the configuration-as-code files should exclude them from being handled by the deploy CLI. That is, as long as the data doesn’t explicitly define those resources as an empty set and rather not defined at all, they should be skipped. I think what you’ve found is that organizations paired with the YAML format doesn’t follow this pattern and that will be fixed in an upcoming release (#434).

But something to remember is that as long as AUTH0_ALLOW_DELETE isn’t set to true, you’re never at risk of deleting any of your organizations. So as far as workarounds go, until 7.5.0 is released, it’s ok to remove organization configuration and have AUTH0_ALLOW_DELETE:false in your config, you’ll just see some warnings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions about Export Control Compliance
Thus, generally speaking, the export control regulations permit U.S. universities to allow foreign nationals (e.g., students, faculty, academic appointees, ...
Read more >
U.S. Export Controls - International Trade Administration
The United States imposes export controls to protect national security interests and promote foreign policy objectives.
Read more >
Deemed Exports FAQs - BIS.doc.gov
Yes, you are required to apply for a deemed export license. Under the sanctions imposed by the U.S. Government, any export which includes...
Read more >
Know the import and export laws and regulations
You should identify the appropriate sources in your destination countries on the official government websites. World Trade Organization (WTO) notifications may ...
Read more >
Allow or block Google Takeout - Google Workspace Admin Help
Set the Data export permission to Allow for everyone or Don't allow for everyone. Click Save. (Optional) Set permissions for an organizational unit....
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