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

Config Via URL #44

Open
benyanke opened this issue Mar 8, 2019 · 4 comments
Open

Config Via URL #44

benyanke opened this issue Mar 8, 2019 · 4 comments

Comments

@benyanke
Copy link

benyanke commented Mar 8, 2019

It would be useful to be able to specify the configuration (except keys, of course) in the URL, for bookmarking purposes.

One example implementation:

Given the following config string: {'bucket':'BUCKETNAME,'mfa':'false','region':'us-east-2'}

Could be base 64 encoded to: eydidWNrZXQnOidCVUNLRVROQU1FLCdtZmEnOidmYWxzZScsJ3JlZ2lvbic6J3VzLWVhc3QtMid9

And put on the URL:

bucketview.example.com/#eydidWNrZXQnOidCVUNLRVROQU1FLCdtZmEnOidmYWxzZScsJ3JlZ2lvbic6J3VzLWVhc3QtMid9

Which would then preload the config on page load.

@ninovanhooff
Copy link

Great idea, could be useful for me as well. I think I'd be able to create decent PR for this. Stay tuned

@john-aws
Copy link
Contributor

john-aws commented Jun 4, 2019

Definitely a good idea. I understand the choice of base64 but wondering if a more readable alternative could also work (with minor URL encoding as needed). That would make URL creation and modification more user-friendly.

@paps
Copy link

paps commented Jun 4, 2019

@ninovanhooff thanks! Eagerly waiting for your PR. This is a great idea

@ninovanhooff
Copy link

ninovanhooff commented Jun 4, 2019

See PR #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants