Code Monkey home page Code Monkey logo

Comments (12)

hypnoglow avatar hypnoglow commented on May 28, 2024 3

@willejs I had some thoughts about it, and I see two options for now:

  1. As far as I found, aws cli does not support anonymous credentials, but it seems that golang client does. This may work out, I need to investigate and write some tests for this.

  2. More complicated solution. We can add a special option to publish index file and chart files with both public and private urls.

    This way, the plugin user will keep working with s3://... urls when pushing charts, e.g.:

    helm s3 init s3://public-repo-bucket
    helm repo add public-repo s3://public-repo-bucket
    helm s3 push ./foo-1.2.3.tgz public-repo --publish # note --publish flag

    And, because chart will have both public and private url, other users can only use Helm itself and be able to fetch index and chart by public urls, e.g.:

    helm repo add public-repo https://public-repo-bucket.s3.amazonaws.com
    helm fetch public-repo/foo # will use https://public-repo-bucket.s3.amazonaws.com/foo-1.2.3.tgz

    This solution also needs investigation and verification that Helm will be able to fetch chart by public url when there is one.

from helm-s3.

hypnoglow avatar hypnoglow commented on May 28, 2024 3

Unfortunately, #46 is not acceptable as it will break some functional, for example, it will be impossible to delete charts from the index when there are http(s):// urls instead of expected s3://. Also, it does not integrate with the reindex operation.

I'm in the process of writing a proposal about public repositories and solving the issue in a way that will keep all the existing features of the plugin working. I'm going to publish it and welcome anyone for the review.

from helm-s3.

hypnoglow avatar hypnoglow commented on May 28, 2024 2

Hey folks, I've opened a PR with a proposal, welcome if you're interested. Please check if I'm missing something there. Also, I'm open to alternative solutions if you have ideas.

from helm-s3.

willejs avatar willejs commented on May 28, 2024 1

Hi @hypnoglow, In short I want to publish my charts to a public S3 bucket, and allow anyone to download them. So the helm s3 plugin either needs to support an anonymous AWS credential provider or publish the charts with only https:// urls instead of s3:// urls.

The plugin is really useful for managing a private chart repo on S3, but i want my charts to be public, so i need to use https:// s3 bucket urls instead, along side the new --acl flag with 'public-read' flags.
Does this make sense?

from helm-s3.

skliche avatar skliche commented on May 28, 2024 1

We are highly interested in this option. Would be cool if we could use that in near future. Our use case is that we use the helm s3 plugin to push to a public s3 bucket and we want to rewrite the URLs from s3:// to https://...

from helm-s3.

osterman avatar osterman commented on May 28, 2024 1

@skliche @willejs - Agreed - this would be an awesome way to managed public chart repos like the one we currently provide: https://github.com/cloudposse/charts

@hypnoglow
The helm-s3 plugin does a better job of managing charts in the S3 bucket than we do, but we need to expose the public bucket url in the index: https://charts.cloudposse.com` and not the s3:// bucket.

As far as our use-case goes, we don't need to support the s3:// urls (and probably @skliche as well). Would it simplify the implementation to just support overiding the base URL?

from helm-s3.

skliche avatar skliche commented on May 28, 2024 1

@osterman yes you are right, we use the s3 plugin only to push to the s3 bucket and expose only https URLs. By the way, I created a fork where I merged this PR and we are using it for almost a month now without a problem.

from helm-s3.

willejs avatar willejs commented on May 28, 2024

I had a look at this and put this together #46
I am not sure its the best approach, but it does work 😒

from helm-s3.

hypnoglow avatar hypnoglow commented on May 28, 2024

Hi @willejs , thanks for your interest.

Sorry, but I don't get what do you mean by public URLs? Can you please describe your use case in detail? How do you want to upload charts and how you want them to be downloaded?

I think it's easy to get into a mess here. Basically, the helm itself manages repos and their corresponding URLs. And helm has somewhat poor support about multiple URLs per chart entry in the index. But let's see, maybe we can make something useful.

from helm-s3.

willejs avatar willejs commented on May 28, 2024

@hypnoglow any thoughts?

from helm-s3.

osterman avatar osterman commented on May 28, 2024

I think #46 is perfect =)

from helm-s3.

osterman avatar osterman commented on May 28, 2024

Thanks @hypnoglow !

from helm-s3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.