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

bootstrap: Add support for Git HTTP/S authorization header #4728

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

toomaj
Copy link
Contributor

@toomaj toomaj commented Apr 17, 2024

This pull request introduces the capability to use Personal Access Tokens (PATs) as bearer tokens for authenticating Git operations in Oracle Visual Builder Studio (VBS). Oracle VBS requires that PATs be included in the Authorization header to secure Git operations. To facilitate this, a new flag, --with-bearer-token, has been added. When enabled, this flag treats the provided password as a bearer token, aligning with Oracle VBS's authentication requirements.

This change is crucial for developers leveraging Oracle VBS who need to integrate with Flux's automation capabilities in environments that mandate bearer token authentication. For detailed guidance on configuring PATs in Oracle VBS, please refer to the Oracle documentation: Access a Git Repository Using Token-Based Authentication

@stefanprodan stefanprodan changed the title Support git authorization header bootstrap: Add support for Git HTTP/S authorization header Apr 17, 2024
@stefanprodan stefanprodan added the area/bootstrap Bootstrap related issues and pull requests label Apr 17, 2024
@toomaj toomaj force-pushed the support-git-authorization-header branch 2 times, most recently from 4915fdf to ae7128e Compare April 17, 2024 06:44
Signed-off-by: toomaj <toomaj@tuta.io>

Set tokenAuth to true with withBearerToken

Signed-off-by: toomaj <toomaj@tuta.io>

Set breaderToken if tokenAuth & withBearerToken were set

Signed-off-by: toomaj <toomaj@tuta.io>
@toomaj toomaj force-pushed the support-git-authorization-header branch from ae7128e to 9ff9f2b Compare April 17, 2024 06:47
@stefanprodan stefanprodan mentioned this pull request Apr 17, 2024
59 tasks
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 @toomaj 🥇

@stefanprodan stefanprodan merged commit 90f3c5a into fluxcd:main Apr 17, 2024
7 checks passed
@toomaj toomaj deleted the support-git-authorization-header branch April 21, 2024 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bootstrap Bootstrap related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants