Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nsc should provide template import and export #427

Open
tbeets opened this issue Aug 11, 2021 · 1 comment
Open

nsc should provide template import and export #427

tbeets opened this issue Aug 11, 2021 · 1 comment
Labels
enhancement Enhancement to existing functionality

Comments

@tbeets
Copy link

tbeets commented Aug 11, 2021

Similar to nats-cli for JS stream and consumer CRUD, nsc should provide an option to export the current grants, flags, and settings of an Account JWT as a JSON template and provide an nsc option to source a JSON template in lieu of command-line parameters or interactive prompts.

@tommylp
Copy link

tommylp commented Apr 4, 2022

I think this would need some more attention.

Our use case is that we need to move accounts between different operators without also giving the users that where created under that previous account access under the newly imported account.

Say that we have an DEV server with its operator, accounts and users. We make changes to the account along the way of development. Now we would like to import the fully configured account with all is imports and exports to the STAGE server WITHOUT at the same time give all DEV users that where created on DEV access to STAGE.

Adding all the users to a revocation list is not an option as we see it.

The only way that we currently see is to rerun all the nsc commands for imports, exports and other settings on the new account. This is really painful when we have lots of accounts. I REALLY hope that I just missed something and that there is a better way to do this.

So one way would be to be able to export all the settings/imports/exports of an account and then create a new account and import these settings again.

@variadico variadico added the enhancement Enhancement to existing functionality label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants