Use this to create (admin) personal access token in gitlab database. Mainly used for automation.

Overview

gitlab-personal-access-token

Ensure PAT is present in gitlab database. This tool is mainly used when you need to automate gitlab installation and configuration afterwards. Normally you need to generate the access token via the web UI. With this tool, you can inject your own Personal access token directly into Gitlab database.

Getting started

API_KEY value must be exactly 20 characters long

Example used in Ansible task:

- name: Create Gitlab PAT for admin
  community.kubernetes.k8s:
    definition:
      apiVersion: batch/v1
      kind: Job
      metadata:
        name: gitlab-create-admin-pat
        namespace: default
      spec:
        ttlSecondsAfterFinished: 300
        template:
          spec:
            containers:
            - name: main
              image: cinaq/gitlab-personal-access-token:v0.1.0
              env:
              - name: PG_HOST
                value: gitlab-postgresql
              - name: PG_PORT
                value: "5432"
              - name: PG_DBNAME
                value: gitlabhq_production
              - name: PG_USERNAME
                value: gitlab
              - name: PG_PASSWORD
                value: "{{ gitlab_postgresql_password.resources[0].data['postgresql-password'] | b64decode }}"
              - name: USER_ID
                value: "1"
              - name: API_KEY
                value: "{{ gitlab_admin_api_key }}"
              - name: DB_KEY_BASE
                value: "{{ gitlab_rails_secrets.production.db_key_base }}"
              imagePullPolicy: Always
            restartPolicy: OnFailure
    wait: yes
    wait_timeout: 300
    wait_condition:
      type: Complete
      status: True

License

MIT License

You might also like...
A Python package, that allows you to acquire your RecNet authorization bearer token with your account credentials!

RecNet-Login This is a Python package, that allows you to acquire your RecNet bearer token with your account credentials! Installation Done via git: p

A JSON Web Token authentication plugin for the Django REST Framework.

Simple JWT Abstract Simple JWT is a JSON Web Token authentication plugin for the Django REST Framework. For full documentation, visit django-rest-fram

Brute force a JWT token. Script uses multithreading.
Brute force a JWT token. Script uses multithreading.

JWT BF Brute force a JWT token. Script uses multithreading. Tested on Kali Linux v2021.4 (64-bit). Made for educational purposes. I hope it will help!

Official implementation of the AAAI 2022 paper
Official implementation of the AAAI 2022 paper "Learning Token-based Representation for Image Retrieval"

Token: Token-based Representation for Image Retrieval PyTorch training code for Token-based Representation for Image Retrieval. We propose a joint loc

This is a Token tool that gives you many options to harm the account.

Trabis-Token-Tool This is a Token tool that gives you many options to harm the account. Utilities With this tools you can do things as : ·Delete all t

Spotify User Token Generator Template

Spotify User Token Generator Template Quick Start $ pip3 install -r requirements

Toolkit for Pyramid, a Pylons Project, to add Authentication and Authorization using Velruse (OAuth) and/or a local database, CSRF, ReCaptcha, Sessions, Flash messages and I18N

Apex Authentication, Form Library, I18N/L10N, Flash Message Template (not associated with Pyramid, a Pylons project) Uses alchemy Authentication Authe

Awesome Django authorization, without the database

rules rules is a tiny but powerful app providing object-level permissions to Django, without requiring a database. At its core, it is a generic framew

A simple username/password database authentication solution for Streamlit
A simple username/password database authentication solution for Streamlit

TL;DR: This is a simple username/password login authentication solution using a backing database. Both SQLite and Airtable are supported.

Releases(v0.1.1)
Owner
CINAQ Internet Technologies
CINAQ Internet Technologies
Includes Automation and Personal Projects

Python Models, and Connect Forclient & OpenCv projects Completed Automation** Alarm (S

tushar malhan 1 Jan 15, 2022
Provide OAuth2 access to your app

django-oauth2-provider django-oauth2-provider is a Django application that provides customizable OAuth2-authentication for your Django projects. Docum

Caffeinehit 334 Jul 27, 2022
A Python tool to generate and refresh Amazon access tokens.

amazon_auth A Python tool to generate and refresh Amazon access tokens. Description This tool generates and outputs Amazon access and refresh tokens f

null 15 Nov 21, 2022
JSON Web Token implementation in Python

PyJWT A Python implementation of RFC 7519. Original implementation was written by @progrium. Sponsor If you want to quickly add secure token-based aut

José Padilla 4.5k Jan 9, 2023
A JSON Web Token authentication plugin for the Django REST Framework.

Simple JWT Abstract Simple JWT is a JSON Web Token authentication plugin for the Django REST Framework. For full documentation, visit django-rest-fram

Simple JWT 3.3k Jan 1, 2023
Simple extension that provides Basic, Digest and Token HTTP authentication for Flask routes

Flask-HTTPAuth Simple extension that provides Basic and Digest HTTP authentication for Flask routes. Installation The easiest way to install this is t

Miguel Grinberg 1.1k Jan 5, 2023
JSON Web Token Authentication support for Django REST Framework

REST framework JWT Auth Notice This project is currently unmaintained. Check #484 for more details and suggested alternatives. JSON Web Token Authenti

José Padilla 3.2k Dec 31, 2022
Simple extension that provides Basic, Digest and Token HTTP authentication for Flask routes

Flask-HTTPAuth Simple extension that provides Basic and Digest HTTP authentication for Flask routes. Installation The easiest way to install this is t

Miguel Grinberg 940 Feb 13, 2021
JSON Web Token Authentication support for Django REST Framework

REST framework JWT Auth JSON Web Token Authentication support for Django REST Framework Overview This package provides JSON Web Token Authentication s

Styria Digital Development 178 Jan 2, 2023
A JSON Web Token authentication plugin for the Django REST Framework.

Simple JWT Abstract Simple JWT is a JSON Web Token authentication plugin for the Django REST Framework. For full documentation, visit django-rest-fram

Jazzband 3.2k Dec 29, 2022