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

Subscription Key Security Strategy #1

Closed
cneeson opened this Issue Jun 26, 2018 · 8 comments

Comments

Projects
None yet
3 participants
@cneeson
Copy link

cneeson commented Jun 26, 2018

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Run up the AzureMapsCodeSamples project as-is, no modification required.

Any log messages given by the failure

N/A

Expected/desired behavior

Thanks for this great demo pack. A quick question around the subscripton key.

I am experimenting with using the Map class for a few of our projects, my basic instantiation looks as follows:

new atlas.Map(this.id, {
            "subscription-key": subscriptionKey,
            language: "en-US",
            zoom: this.zoom
            ... more optional params
        }); 

By my understanding, the class requires that the subscription key be provided on instantiation, it will then be held by the class and used for subsequent requests to the API that provides data for the map (tile vectors, traffic incidents etc.) This obviously means that the subscription key must be brought out into client-side JS in order to be supplied to the class.

What I would like is to be able to provide a proxy url for the Map component, which will be able to intercept requests to its API, and insert the subscription key directly from the server.

Hopefully someone can provide a bit of clarity and if I have missed something obvious in the docs!

Thanks

OS and Version?

Windows 10

@rbrundritt

This comment has been minimized.

Copy link
Contributor

rbrundritt commented Jun 26, 2018

There is a new feature coming out soon (few weeks) that will likely be a good option. I'll update this thread once it is announced.

@cneeson

This comment has been minimized.

Copy link
Author

cneeson commented Jul 25, 2018

Any update on this guys?

@jeremylindsayni

This comment has been minimized.

Copy link

jeremylindsayni commented Dec 7, 2018

Hi, is there any update on this item? Thanks

@rbrundritt

This comment has been minimized.

Copy link
Contributor

rbrundritt commented Dec 7, 2018

There is a new higher security option currently in development that will be announced soon.

@jeremylindsayni

This comment has been minimized.

Copy link

jeremylindsayni commented Dec 9, 2018

Thank you for replying - would it be possible for you to give us a broad timeframe for option please?

If my subscription key is in plain text, I believe that anyone who looks at the source could take my key and start running up charges on my account. This is a blocker for me using this service in my production application.

@rbrundritt

This comment has been minimized.

Copy link
Contributor

rbrundritt commented Dec 9, 2018

An anno cement is currently planned in about 2 months.

Note, every other mapping platform uses a plain text key, thus why the initial option is that. We don't do URL restricting as that isn't real security and easy to spoof. That is actually a bigger risk as it provides a false sense of security. There is little reason for people to steal each other's keys as anyone can create one and get a decent amount of free usage. That said, we do want to provide a high security option which will be announced soon.

@jeremylindsayni

This comment has been minimized.

Copy link

jeremylindsayni commented Dec 9, 2018

Thank you for this information, it's useful - I'm looking forward to the announcement.

@rbrundritt

This comment has been minimized.

Copy link
Contributor

rbrundritt commented Feb 19, 2019

I'm happy to report that last week the Azure Maps team announced a high security option for Azure Maps which uses Azure Active Directory (AAD) for authentication. The announcement can be found here: https://azure.microsoft.com/en-us/blog/announcing-azure-maps/

Here is some related documentation:

@rbrundritt rbrundritt closed this Feb 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.