Can I programmatically access gitlab secrets hash?

0 votes

I have ansible on my control machine. I'm trying to setup gitlab using omnibus package. After this, I need to setup runner and mattermost.

In any case, I need the secret hash from gitlab web app to provide it to runner and mattermost.

Names:

Runner: 'regis-token'

mattermost: 'app- id' and 'app-secret'

I have checked the gitlab api and couldn't find a way to get them. I want to know is there any programmatical way through which we can access the secrets without comromising the security?

Mar 29, 2018 in Git & GitHub by Atul
• 10,200 points
51 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

The newer versions of gitlab do support application creation through API:

https://docs.gitlab.com/ce/api/applications.html

and to create a token you can do somthing like this:

sudo -u postgres psql -d gitlab_production -c "INSERT INTO personal_access_tokens VALUES ('1','1','SOMEHASH','initialToken','false','2020-01-01', '2018-01-01 12:00:00', '2018-01-01 12:00:00', E'--- \n- api \n- read_user \n');"
answered Mar 29, 2018 by DareDev
• 6,580 points

Related Questions In Git & GitHub

0 votes
1 answer

Version control as source to gitlab

The steps I'm going to tell you ...READ MORE

answered Apr 23, 2018 in Git & GitHub by ajs3033
• 7,040 points
137 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How do I install Git on windows?

Hey @Akash, follow these steps: Go to this ...READ MORE

answered Feb 19 in Git & GitHub by Nikhil
42 views
0 votes
1 answer

How do I install Git on CentOS?

Hey @Kiran, installing Git on CentOS is ...READ MORE

answered Feb 19 in Git & GitHub by Jobin
15 views
+1 vote
0 answers

Give full access permission to another user in GitHub

How do I give full access permission ...READ MORE

May 15 in Git & GitHub by Umer
26 views
+13 votes
2 answers
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.