Closed
Bug 404362
Opened 17 years ago
Closed 17 years ago
Changes to serving API
Categories
(mozilla.org Graveyard :: Server Operations, task)
mozilla.org Graveyard
Server Operations
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: laura, Assigned: oremj)
References
Details
Anything inside
https://addons.mozilla.org/api
probably shouldn't be availably publicly.
1. We should serve this stuff via a different subdomain (api.addons.mozilla.org?) to avoid cross domain exploits.
2. Even so, I'd like not to see it available outside of the VPN until it's ready for public consumption (anticipated December)
Assignee | ||
Updated•17 years ago
|
Assignee: server-ops → oremj
Assignee | ||
Comment 1•17 years ago
|
||
If I set this up at api.addons.m.o do I need another instance of remora or can I just create a new vhost with /foo/api as the docroot?
Reporter | ||
Comment 2•17 years ago
|
||
I can't see why a vhost wouldn't work.
Comment 3•17 years ago
|
||
Seems like there is a need for another wildcard SSL certificate for *.addons.mozilla.org now that we have both facebook.addons.mozilla.org and api.addons.mozilla.org.
Assignee | ||
Comment 4•17 years ago
|
||
I think I'm a little unclear about the vhost. Should it just be a mimic the current vhost so that the api is accessible at https://api.addons.mozilla.org/api or does it need to be accessible at https://api.addons.mozilla.org?
Reporter | ||
Comment 5•17 years ago
|
||
That's a good question :)
I think the latter looks cleaner but I don't know how much it's going to confuse cake.
Comment 6•17 years ago
|
||
Should probably go with api/ if we plan on using cake. The alternative is using the latter and using a rewrite so we don't confuse cake.
Another alternative is to route things with api in the domain to the api controller... I think that's possible.
Assignee | ||
Comment 7•17 years ago
|
||
What action should I take?
https://addons.mozilla.org/api <- is now forbidden.
Comment 8•17 years ago
|
||
Let's go for the simpler api.addons.mozilla.org -- we should be able to make that work like we did with facebook, right?
Assignee | ||
Comment 9•17 years ago
|
||
http://facebook.addons.mozilla.org isn't anything special. I think all that logic is done through facebook itself.
Comment 10•17 years ago
|
||
Damn, so for now let's set up api.addosn.mozilla.org/api and we will try to figure out if it's worth stripping /api off the end using routing magic or rewrites.
Comment 11•17 years ago
|
||
Bleh, okay, so we talked about this and services.addons.mozilla.org/api seemed to be coolest -- Laura you ok w/ that?
Assignee | ||
Comment 12•17 years ago
|
||
I have this set up at https://services.addons.mozilla.org/api/ looks like there is nothing to test yet, so we may have to reopen to iron out a few things once something is there.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 13•17 years ago
|
||
Hmm...should be there now, but the api urls give me 403s...can we open this up internally at least? I know Mossop needs it for testing.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 14•17 years ago
|
||
I can either:
* Open it up to everybody
* Put HTTP auth on it
Comment 15•17 years ago
|
||
Why wouldn't we open it up to everybody?
Reporter | ||
Comment 16•17 years ago
|
||
We talked about this in the AMO meeting today. It would be nice to have some kind of limited beta in place to begin with to iron out any wrinkles. Basil was in favor of allowing access from a list of IPs if that's possible. The goal is of course to open it to everybody after a short period.
Comment 17•17 years ago
|
||
Well if you need to restrict it to begine with then an IP access list is easier for me than authentication.
Assignee | ||
Comment 18•17 years ago
|
||
Matthew, would you please create and internal VIP accessible via mpt-vpn? Please reassign to me when you are done.
Assignee: oremj → mrz
Status: REOPENED → NEW
Comment 19•17 years ago
|
||
oremj - this isn't any different than making any other vserver. Only difference is you're picking an address out of 10.2.72 instead.
Assignee: mrz → oremj
Assignee | ||
Comment 20•17 years ago
|
||
It's looking like auth is going to be a lot easier with our current set up than making it vpn only. Is using auth completely unacceptable?
Comment 21•17 years ago
|
||
(In reply to comment #20)
> It's looking like auth is going to be a lot easier with our current set up than
> making it vpn only. Is using auth completely unacceptable?
Auth is actually preferable to me than VPN access, since I don't have VPN access to mpt.
Assignee | ||
Comment 22•17 years ago
|
||
I realized this has been public for quite a while, maybe a couple months, at https://addons.mozilla.org/en-US/firefox/api/addon/7/
Is there any use in hiding it now?
Assignee | ||
Comment 23•17 years ago
|
||
What needs to be done to complete this bug?
Comment 24•17 years ago
|
||
I think the only problem remaining is that the AMO URL should be disabled and the services URL is still broken:
https://services.addons.mozilla.org/en-US/firefox/api/addon/7/
We can disable the AMO URL via app config, but still unclear as to why the api is a 403 on the services vhost.
Assignee | ||
Comment 25•17 years ago
|
||
(In reply to comment #24)
> I think the only problem remaining is that the AMO URL should be disabled and
> the services URL is still broken:
> https://services.addons.mozilla.org/en-US/firefox/api/addon/7/
>
Anything with /api/ no longer 403s.
> We can disable the AMO URL via app config, but still unclear as to why the api
> is a 403 on the services vhost.
>
Comment 26•17 years ago
|
||
Can I just clarify what the official URL for use should be. Comment 12 suggested it was https://services.addons.mozilla.org/api/ but that seems to redirect to https://addons.mozilla.org/en-US/firefox/api/...
Currently what appears to be working is:
https://services.addons.mozilla.org/%LOCALE%/%APP%/api/
Is that the correct url for me to hardcode into the app?
Reporter | ||
Comment 27•17 years ago
|
||
Yes, that URL is correct.
Assignee | ||
Comment 28•17 years ago
|
||
Can I close this or is there more to be done?
Reporter | ||
Comment 29•17 years ago
|
||
Fine by me. Dave?
Comment 30•17 years ago
|
||
Yep seems fine, I'll just file additional bugs if I hit any problems.
Assignee | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•