Add Git HTTPS push tokens for snapcraft experiment

Bug #1824399 reported by Colin Watson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Colin Watson

Bug Description

There's some experimental work going on in snapcraft that would be made easier by being able to request temporary push tokens allowing users to push to Launchpad-hosted Git repositories over HTTPS (so that they don't have to set up SSH keys). This is a special case of the more general requirement for what some other sites call "HTTPS access tokens" or similar, but it's simpler because we don't need to make the tokens persistent or add UI for managing/revoking them, but for the moment we can just issue tokens with a relatively short expiry period.

I'm working on this, and am filing this bug to track the work.

Related branches

Colin Watson (cjwatson)
Changed in launchpad:
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Colin Watson (cjwatson)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
Colin Watson (cjwatson)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

This is safe to deploy because the new issueAccessToken method will fail with "RuntimeError: codehosting.git_macaroon_secret_key not configured" until we get that configured. I'll file a ticket for that.

tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Colin Watson (cjwatson) wrote :

Some more of this is deployed now. However, we still need that configuration tweak, and I realised that we also need a way to create repositories via the API, so I'm working on that.

Changed in launchpad:
status: Fix Committed → In Progress
Colin Watson (cjwatson)
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.