Skip to content

Instantly share code, notes, and snippets.

Design: proxying token-based auth (GitHub) alongside HTTP Basic (GitLab)

Status: proposal / not yet implemented. This document describes the problem, the current code's assumptions, and a design + implementation plan for adding GitHub token-auth support without breaking the existing GitLab (HTTP Basic) flow. All file references are relative to git_cdn/ (e.g. util.py means git_cdn/git_cdn/util.py), consistent with doc/overview.md.

Table of contents

  1. Problem statement

git_cdn Architecture

This document describes what the git_cdn/ project (Renault's grouperenault/git_cdn, MIT licensed) actually does today, based on a full read of the source under git_cdn/git_cdn/. It is meant as a standalone reference for understanding, running, and eventually improving the existing Python implementation — not as a spec for a rewrite.

All file references are relative to git_cdn/ (e.g. git_cdn/upload_pack.py means git_cdn/git_cdn/upload_pack.py).

import robotti.Ohjain;
public class Viivakimara {
private static final String[] FONT = {
"2>7<3<6<4<5<5<5<1>1<3>>4",
"2>1>1<1<1>4>1<1<3<1<1>6<1>>2",
"2>2>1>1>5>2>2<1>1<2<3>1>5>1>1<1>2<1>1<4<3>>4",
"2>2>1>1>5>2>3<1<3>2>5>1>1>2<3<7<3>>4",