Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libgit2: enable managed transport by default #718

Merged
merged 1 commit into from
May 24, 2022

Conversation

pjbgf
Copy link
Member

@pjbgf pjbgf commented May 12, 2022

GitManagedTransport is a new feature gate that enables the use of Managed Transport.
This replaces the previous EXPERIMENTAL_GIT_TRANSPORT environment variable that was used for the same result.

This is now an opt-out feature, which can be disabled by starting the controller with the argument --feature-gates=GitManagedTransport=false.

Fixes #689

@pjbgf pjbgf added the area/git Git related issues and pull requests label May 12, 2022
@pjbgf pjbgf added this to the GA milestone May 12, 2022
@stefanprodan
Copy link
Member

@pjbgf can you confirm this was tested with Azure DevOps and AWS CodeCommit?

@pjbgf
Copy link
Member Author

pjbgf commented May 12, 2022

@pjbgf can you confirm this was tested with Azure DevOps and AWS CodeCommit?

This has been tested against:

NAME                            REVISION                                        SUSPENDED       READY   MESSAGE                                                                              
https-bitbucket                 main/d35781a                                    False           True    stored artifact for revision 'main/d35781accf1ea8078de18e154622486042bca4cc'         
https-devops                    main/f0958a4                                    False           True    stored artifact for revision 'main/f0958a4a6f09fe0f893ade2087223755e53661a6'         
https-gitlab                    main/0ee437c                                    False           True    stored artifact for revision 'main/0ee437c33f499e2f588f60e6a92a547f6d5845f8'         
ssh-ecdsa-bitbucket             main/d35781a                                    False           True    stored artifact for revision 'main/d35781accf1ea8078de18e154622486042bca4cc'         
ssh-ecdsa-gitlab                main/0ee437c                                    False           True    stored artifact for revision 'main/0ee437c33f499e2f588f60e6a92a547f6d5845f8'         
ssh-ed25519-bitbucket           main/d35781a                                    False           True    stored artifact for revision 'main/d35781accf1ea8078de18e154622486042bca4cc'         
ssh-rsa-bitbucket               main/d35781a                                    False           True    stored artifact for revision 'main/d35781accf1ea8078de18e154622486042bca4cc'         
ssh-rsa-devops                  main/f0958a4                                    False           True    stored artifact for revision 'main/f0958a4a6f09fe0f893ade2087223755e53661a6'         
ssh-rsa-gitlab                  main/0ee437c                                    False           True    stored artifact for revision 'main/0ee437c33f499e2f588f60e6a92a547f6d5845f8' 
ssh-rsa-github                  main/989fec7                                    False           True    stored artifact for revision 'main/989fec7acb5a9a5ac33ce0276e09d9d87bed7589'         

@stefanprodan is there any specific thing about AWS CodeCommit we are keen to test it against? Any specific protocol/algo?

@stefanprodan
Copy link
Member

We need to make sure we don’t break the recommendations made in our AWS docs https://fluxcd.io/docs/use-cases/aws-codecommit/

@pjbgf
Copy link
Member Author

pjbgf commented May 13, 2022

Trying to use our documentation did not work for me. By going through the official AWS CodeCommit docs, it seems we are missing Your-SSH-Key-ID@ for the SSH URLs.

Once that was sorted, the reconciliation only worked fine when this changes were applied in addition to the changes on #713.

flux reconcile source git ssh-rsa-aws-codecommit
► annotating GitRepository ssh-rsa-aws-codecommit in flux-system namespace
✔ GitRepository annotated
◎ waiting for GitRepository reconciliation
✔ fetched revision main/9686c1a4d6038f3df4a96d453cd809c1d4085bc7

Will put this on hold until the other PR is merged.

@pjbgf pjbgf added the hold Issues and pull requests put on hold label May 13, 2022
@pjbgf pjbgf added hold Issues and pull requests put on hold and removed hold Issues and pull requests put on hold labels May 13, 2022
@pjbgf
Copy link
Member Author

pjbgf commented May 13, 2022

Re-adding hold, until changes from branch gitrepo-rec-fixes gets merged.

@pjbgf pjbgf removed the hold Issues and pull requests put on hold label May 24, 2022
Signed-off-by: Paulo Gomes <paulo.gomes@weave.works>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @pjbgf 🏅

@pjbgf pjbgf merged commit 01cffa9 into fluxcd:main May 24, 2022
@pjbgf pjbgf deleted the default-managed branch May 24, 2022 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/git Git related issues and pull requests
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Enable Libgit2 Managed Transport by Default
2 participants