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

Remove support for OAuth 1.0a and Basic Auth #286

Closed
mmd-osm opened this issue Feb 26, 2023 · 12 comments · Fixed by #354 or #362
Closed

Remove support for OAuth 1.0a and Basic Auth #286

mmd-osm opened this issue Feb 26, 2023 · 12 comments · Fixed by #354 or #362

Comments

@mmd-osm
Copy link
Collaborator

mmd-osm commented Feb 26, 2023

Now that JOSM also has some support for OAuth 2, it’s time to consider removing OAuth 1.0a in the next CGImap release.

Target timeframe: Q4/23 or Q1/24.

@pnorman
Copy link
Contributor

pnorman commented Feb 26, 2023

Are there plans to remove it for the entire site? Lots of things still use 1.0a

@Zverik
Copy link

Zverik commented Feb 26, 2023

Uhhhh...

JOSM is not the only one tool in OSM ecosystem to use OAuth. There are hundreds of apps, websites, desktop software that also needs to authenticate. And before we know that at least a half of these switched to OAuth 2, we should not turn 1.0a off. Please.

@tomhughes
Copy link
Contributor

Whilst I agree that this needs to be carefully planned I don't think a metric like that is going to work.

We could certainly count how many OAuth 1 clients are being used but that tells us very little - is a client that is being used simply defunct or has it switched to OAuth 2? What about clients like JOSM that support both and not all users have switched so both are in use? Without a way of linking OAuth 1 and 2 client IDs we can't begin to know when a client has switched.

On top of which there is going to be a very long tail so 50% of clients will be a miniscule proportion of actual use.

@HolgerJeromin
Copy link

There are some people using linux distro editors like
https://packages.debian.org/bullseye/josm

@Zverik
Copy link

Zverik commented Feb 26, 2023

My point is, why disable 1.0 at all?

@mmd-osm
Copy link
Collaborator Author

mmd-osm commented Feb 26, 2023

I think the plan has always been to get rid of OAuth 1.0a at one point (cf. openstreetmap/openstreetmap-website#3177 (comment)), in particular now that we have OAuth 2 since almost two years as an alternative.

For CGImap it’s definitely reducing technical debt, both in terms of code as well as external dependencies. This is a very important concern for long term maintainability of the code. I’m sure there are similar reasons on Rails.

@pnorman
Copy link
Contributor

pnorman commented Feb 26, 2023

If this were merged before OAuth 1.0a is turned off by admins, this would require directing calls currently handled by cgimap to the rails port based on the type of authentication used, which seems like a bad idea.

@mmd-osm
Copy link
Collaborator Author

mmd-osm commented Feb 27, 2023

Like today, admins can decide when to deploy a new cgimap version to production. So merging would only impact the dev instance (which could be avoided by setting up a new dedicated cgimap instance based on a test branch).

Although this is at least 6-12 months away, some planning and coordination of efforts for sure needs to happen. This issue only covers the CGImap bit.

@mmd-osm
Copy link
Collaborator Author

mmd-osm commented Mar 19, 2023

Adding a link to the official OWG announcemnt: https://www.openstreetmap.org/user/pnorman/diary/401157

Thanks @pnorman for taking care of it.

Prometheus monitoring: https://prometheus.openstreetmap.org/d/5rTT87FMk/web-site?orgId=1&refresh=1m&viewPanel=26

@Firefishy
Copy link
Contributor

Adding a link to the official OWG announcemnt: https://www.openstreetmap.org/user/pnorman/diary/401157

We discussed it on the last OWG call. We are preparing and measuring, we have not yet made an official depreciation notice with a timeline. Just "at risk" for now. ;-)

@mmd-osm
Copy link
Collaborator Author

mmd-osm commented Mar 19, 2023

That's fine for now. I started looking into some more details, and it turned out that around 2500 LOC that mostly only Matt knows could be removed.

First iteration: https://github.com/mmd-osm/openstreetmap-cgimap/tree/patch/removeoauth1

@mmd-osm mmd-osm changed the title Remove support for OAuth 1.0a Remove support for OAuth 1.0a and Basic Auth Apr 7, 2023
@mmd-osm
Copy link
Collaborator Author

mmd-osm commented Apr 7, 2023

Since OWG proposes to deprecate Basic Auth as well, I have included this change in this issue.

@mmd-osm mmd-osm added this to the v0.9.0 milestone Oct 16, 2023
@mmd-osm mmd-osm linked a pull request Dec 20, 2023 that will close this issue
@mmd-osm mmd-osm linked a pull request Feb 17, 2024 that will close this issue
@mmd-osm mmd-osm pinned this issue Apr 12, 2024
@mmd-osm mmd-osm reopened this Apr 16, 2024
@mmd-osm mmd-osm unpinned this issue Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants