From: awx-p...@googlegroups.com <awx-p...@googlegroups.com> on behalf of Roman <inv...@gmail.com>
Sent: Wednesday, July 22, 2020 8:29:23 PM
To: AWX Project <awx-p...@googlegroups.com>
Subject: [awx-project] Re: Cannot use Gitlab personal access token for SCM
I have figured it out. It is not ideal because API token is stored in clear and anyone with access to AWX can see it. I am not comfortable with this approach but looks like it is the only one apart from SSH key.
1) create personal access token with read_repository permissions: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token
2) create project, SCM type: Git
3) paste URL, it should look like: `https://gitlabusername:personal_access_token@gitlab.com/group/privateproject.git`
On Monday, 20 July 2020 16:03:26 UTC+1, Roman wrote:I want my AWX to pull git repository from my private repo in gitlab.com.
The choice is either SSH key or personal access token. I would prefer access token, so that I could configure read only access.
How to create token in GitLab: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token
In AWX, I can add credential for GitLab https://docs.ansible.com/ansible-tower/latest/html/userguide/credentials.html#add-a-new-credentialMy AWX v 11.2.0 gives me choice to add "GitLab Personal Access Token"But when I create project, and use git for SCM, SCM Credentials choice is blank.
I can add ssh key and use it for git, but would prefer not to use ssh key.
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-p...@googlegroups.com.
If I am right your gitlab token is just in the password of the credential object with your username being the same.
That's how I have used my token currently. I have one on my user account because i use 2fa
Get Outlook for iOS
Sent: Wednesday, July 22, 2020 8:59:13 PM
To: AWX Project <awx-p...@googlegroups.com>
Subject: Re: [awx-project] Re: Cannot use Gitlab personal access token for SCM
Yes
On Wednesday, 22 July 2020 09:33:13 UTC+1, Wei-Yen Tan wrote:
From: awx-p...@googlegroups.com <awx-p...@googlegroups.com> on behalf of Roman <inv...@gmail.com>
Sent: Wednesday, July 22, 2020 8:29:23 PM
To: AWX Project <awx-p...@googlegroups.com>
Subject: [awx-project] Re: Cannot use Gitlab personal access token for SCM
I have figured it out. It is not ideal because API token is stored in clear and anyone with access to AWX can see it. I am not comfortable with this approach but looks like it is the only one apart from SSH key.
1) create personal access token with read_repository permissions: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token
2) create project, SCM type: Git
3) paste URL, it should look like: `https://gitlabusername:personal_a...@gitlab.com/group/privateproject.git`
On Monday, 20 July 2020 16:03:26 UTC+1, Roman wrote:I want my AWX to pull git repository from my private repo in gitlab.com.
The choice is either SSH key or personal access token. I would prefer access token, so that I could configure read only access.
How to create token in GitLab: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token
In AWX, I can add credential for GitLab https://docs.ansible.com/ansible-tower/latest/html/userguide/credentials.html#add-a-new-credentialMy AWX v 11.2.0 gives me choice to add "GitLab Personal Access Token"But when I create project, and use git for SCM, SCM Credentials choice is blank.
I can add ssh key and use it for git, but would prefer not to use ssh key.
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/4c0a8bff-b5ac-4643-92b4-6314f88cb129o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
That's right, you store your token in the password field of a SCM credential and use that credential to update the project in AWX.
El miércoles, 22 de julio de 2020 a las 11:04:51 UTC+2, weiye...@gmail.com escribió:
If I am right your gitlab token is just in the password of the credential object with your username being the same.
That's how I have used my token currently. I have one on my user account because i use 2fa
Get Outlook for iOS
Sent: Wednesday, July 22, 2020 8:59:13 PM
To: AWX Project <awx-p...@googlegroups.com>
Subject: Re: [awx-project] Re: Cannot use Gitlab personal access token for SCM
Yes
On Wednesday, 22 July 2020 09:33:13 UTC+1, Wei-Yen Tan wrote:
From: awx-p...@googlegroups.com <awx-p...@googlegroups.com> on behalf of Roman <inv...@gmail.com>
Sent: Wednesday, July 22, 2020 8:29:23 PM
To: AWX Project <awx-p...@googlegroups.com>
Subject: [awx-project] Re: Cannot use Gitlab personal access token for SCM
I have figured it out. It is not ideal because API token is stored in clear and anyone with access to AWX can see it. I am not comfortable with this approach but looks like it is the only one apart from SSH key.
1) create personal access token with read_repository permissions: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token
2) create project, SCM type: Git
3) paste URL, it should look like: `https://gitlabusername:personal_access_token@gitlab.com/group/privateproject.git`
On Monday, 20 July 2020 16:03:26 UTC+1, Roman wrote:I want my AWX to pull git repository from my private repo in gitlab.com.
The choice is either SSH key or personal access token. I would prefer access token, so that I could configure read only access.
How to create token in GitLab: https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token
In AWX, I can add credential for GitLab https://docs.ansible.com/ansible-tower/latest/html/userguide/credentials.html#add-a-new-credentialMy AWX v 11.2.0 gives me choice to add "GitLab Personal Access Token"But when I create project, and use git for SCM, SCM Credentials choice is blank.
I can add ssh key and use it for git, but would prefer not to use ssh key.
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/4c0a8bff-b5ac-4643-92b4-6314f88cb129o%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "AWX Project" group.