-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: private submodule repository (#348)
- Loading branch information
1 parent
fe34a5e
commit e020ab5
Showing
9 changed files
with
43 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,3 +148,23 @@ that are potentially useful are: | |
```bash | ||
git config -f .gitmodules --unset submodule.xxx.branch | ||
``` | ||
|
||
## Private repository profiles | ||
|
||
To use private repositories as submodules, the pipeline must have access to | ||
the repository. This can be achieved by configuring the git credentials in the | ||
vault path `/secret/git` under a key named `credentials`. These credentials are | ||
usually in the form of a personal access token (PAT), which is put in the URL, | ||
which points to the base host of the repository, as in this example: | ||
`https://user:[email protected]`. The URL is set as the value for the | ||
`credentials` key: | ||
|
||
 | ||
|
||
If private repositories across multiple GIT servers are used, the credentials | ||
URL for each one must be listed in the value, separated by space. | ||
|
||
The recommended settings for the PAT are: | ||
|
||
- For `GitHub`: use fine-grained token, providing access only to the profile | ||
repositories with read permissions for: `Contents`, `Commit statuses`, and `Metadata`. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ cloud_platform_client_secret_name: AWS_SECRET_ACCESS_KEY | |
k8s_cluster_module: base-k8s | ||
cloud_region: eu-west-1 | ||
k8s_cluster_type: microk8s | ||
ansible_collection_tag: v5.3.9-rc01 | ||
iac_terraform_modules_tag: v5.3.9-rc02 | ||
ansible_collection_tag: v5.4.0-rc2 | ||
iac_terraform_modules_tag: v5.4.0-rc2 | ||
letsencrypt_email: [email protected] | ||
dns_zone_force_destroy: true | ||
longhorn_backup_object_store_destroy: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters