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

Enable authentication headers so that charts can be fetched directly from Github (Artifacts or Source tree) or any other auth protected location #932

Open
voycey opened this issue Aug 12, 2022 · 8 comments

Comments

@voycey
Copy link

voycey commented Aug 12, 2022

Description

We have a build process that builds our charts in a Github private repository:

image

Currently there is no way to authenticate against github (or anything with basic authentication) to fetch these .tar.gz files from this private repository if passing a chart.

For example:

resource "helm_release" "extensions" {
    name    = "tymlez-extensions"
    chart    = "https://github.com/Tymlez/tymlez-charts/releases/download/v.0.0.1/tymlez-extensions.tar.gz"

    repository_username = var.github_token
    repository_password = var.github_token
}

This does not work and doesn't provide the token as authentication (as I assume it is trying to auth to a helm repository).

Potential Terraform Configuration

resource "helm_release" "extensions" {
    name    = "tymlez-extensions"
    chart    = "https://github.com/Tymlez/tymlez-charts/releases/download/v.0.0.1/tymlez-extensions.tar.gz"

    authentication = {
        Authorization = var.github_token
    }

}

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@voycey voycey changed the title Enable authentication headers so that charts can be fetched directly from Github (Artifacts or Source tree) Enable authentication headers so that charts can be fetched directly from Github (Artifacts or Source tree) or any other auth protected location Aug 12, 2022
@EvertonSA
Copy link

Hi, do you know if this is true for artifactory as well?

I have not found a single example on the internet on fetching from private repositories. I might be wrong though.

@EvertonSA
Copy link

Hi, do you know if this is true for artifactory as well?

I have not found a single example on the internet on fetching from private repositories. I might be wrong though.

#81 never mind, found it

@arybolovlev
Copy link
Contributor

Hi @voycey,

Could you please try to use your GitHub username as a repository_username and Github token as a repository_password and let us know if that works?

Thank you.

@szimmermancorista
Copy link

Hi @arybolovlev,

I have encountered the same issue. Using my GitHub username as a repository_username and Github token as a repository_password does not work. I think authentication against Github would be a great feature.

Thank you.

@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you!

@github-actions github-actions bot added the stale label Oct 6, 2023
@voycey
Copy link
Author

voycey commented Oct 6, 2023

I believe this issue still remains @arybolovlev
I havent tested it in a while though?

@github-actions github-actions bot removed the stale label Oct 6, 2023
@fhisamoto
Copy link

Is there a chance to release this feature in a near future?

@ask0n
Copy link

ask0n commented May 25, 2024

@voycey did you manage to download release from private GH repo with curl?
When I try to use same path from browser_download_url it returns 404, exactly the same answer gets helm provider.
The only option to download release via cli I found so far is via https://api.github.com/repos/ endpoint with -H "Accept: application/octet-stream" -H "Accept: application/vnd.github.v3+json" headers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants