GitLab

Service description

GitLab is a collaborative code management and software development project service based on the Git system. The CC-IN2P3 instance is provided to IN2P3 members, to academic users whose organization is part of the eduGAIN federation and their collaborators, for a professional use only. The GitLab platform is self-hosted (ie. no third party cloud services are is use) deployed in its Community version. By default, every new user-created project is private but can inherit its parent groups visibility. Project access and visibility follow the rules defined in the GitLab official documentation.

In case of problem, please contact our user support.

Compliance with the terms of use

We may disable or remove accounts or projects that do not comply with the terms of use, in particular with respect to intellectual property rights.

For any information on features, upgrades or service support, please refer to the gitlab-maintenance project. This is not a ticketing system: for any request, continue to contact our user support.

Account registration

The CC-IN2P3 GitLab instance is accessible at https://gitlab.in2p3.fr. When not logged in, users will be presented with the GitLab sign up page where all instructions regarding account registration and user log in methods are presented.

New academic users MUST register for a GitLab account by clicking on the CC-IN2P3 Single Sign On button, using either their CC-IN2P3 account or any account from the eduGAIN federation. Using the single sign on mechanism ensures that your account request is processed automatically and access to the GitLab platform granted without further delay or action. Please refer to the identity federation paragraph for all information on this method of authentication.

Attention

Please refrain from using multiple eduGAIN accounts to register because you would then end up with multiple GitLab accounts that cannot be merged. If you need to switch your GitLab account to another eduGAIN identity, please contact our user support.

As a last resort solution, users may go through a manual account request, using the manual account request link, that is present in the third item of the dropdown menu, from the sign up page.

Accounts that are requested manually will be initially blocked, pending for the manual validation by GitLab platform administrators. When a user finds his registration pending validation, a “responsible” (eg. the project maintainer or the user’s supervisor) must confirm the legitimacy of account request to user support, specifying the username or e-mail associated with the account.

Account requests not validated within a month will be automatically cleared out.

Important

It is possible that an account created via eduGAIN is not operational: the account exists, but is “temporary”, with a hash as username. If you find yourself in this situation, contact user support; changing the name, email etc., in the hope of using it won’t work: it will never be possible to reconnect once the session has expired.

By default new users will have a different status depending on whether their account was created via Single Sign On (external = false) or not (external = true).

  • external = false: no usage restriction is applied.

  • external = true: the creation of new projects or groups of projects is restricted to the namespaces of which they are members, to the exclusion of their personal namespace. Failure of such an attempt will be characterized by the following, somewhat cryptic, GitLab message:

404: Namespace not valid

Note

In general, and to ease project ownership management, we strongly suggest the use the personal namespace only if absolutely necessary. The “external” restriction may be removed upon request to our user support.

Invite collaborators

It is possible to give access to your projects to other GitLab platform users, through the Project Information > Members menu. If the account already exists, the new “member” may be added directly with the desired access rights level. If the user does not have a GitLab account yet, an email invitation will be sent to the provided address in order to create one. Please use, whenever possible, institutional email addresses and use personal addresses (such as Yahoo, Gmail or others) only as a last resort. Invited users should also prefer using Single Sign On when registering.

SSH configuration

The recommended way to interact with a git repository (project) is to use SSH. You may follow this help configure your SSH key.

Enable SSO authentication

When an account is created using the manual registration form, the user will not be able to use the SSO authentication. To be able to do so, you should configure it in your profile:

Preferences > Account > Service sign-in

Account duplicates

When registering with SSO, GitLab builds the username field using the first part of the e-mail address up to the @ character. This may create duplicates with already registered usernames from the user organizations. To avoid it you have to:

  • register using the Username/Password form and choosing a different username,

  • enable SSO for that account.

Handling large files

Git is not very efficient at managing large binary files (> few MBs) which have the additional drawback of not being “differentiable”. To manage such files, such as audio, video, graphics files or virtual machines images, GitLab supports “git lfs”.

Continuous Integration/Deployment

GitLab provides the GitLab CI continuous integration platform. Information concerning continuous integration (pipelines, jobs, environments, etc.) is displayed in the “CI/CD” menu of the GitLab vertical menu.

Note

By default, all projects have access to several public shared runners that will process your CI jobs. However, they are shared for several thousands of users and their resources are very limited. Confidentiality of data is not garanteed since the hardware may be shared by several users at the same time. In the case the shared runners are not enough, you can easily deploy and use your own CI infrastructure for your projects. More on the GitLab runner documentation.

For any issue you may contact our user support.

GitLab static web pages

The CC-IN2P3 GitLab instance provides static web pages, the so-called “GitLab Pages”. Such a page will have the following URL:

https://<user.id>.pages.in2p3.fr/<project-name>/

Advanced pages features

The following features are supported:

  • Custom domains: it requires the purchase of a DNS name and proper configuration on your part.

  • HTTPS certificates: static or automatic with Letsencrypt.

  • Access control: may limit access to only authenticated members of your project (at least Guest).

Additional advanced features may require interaction with our user support.

Attention

GitLab Pages is intended to host static, small and simple web pages. The main usecase is documentation (the Wiki may also be used in that fashion). Any other usecase would probably be best served through more classical webhosting. In that case and if you’re a IN2P3 user or member of a IN2P3 collaboration don’t hesitate to ask our user support.