Coder Social home page Coder Social logo

API Keys and secrets about flathub HOT 11 OPEN

flathub avatar flathub commented on May 25, 2024
API Keys and secrets

from flathub.

Comments (11)

razzeee avatar razzeee commented on May 25, 2024 2

The plan is to finish this in january

from flathub.

nedrichards avatar nedrichards commented on May 25, 2024 1

I don't think that'd make a measurable difference, but it could be a strategy to obscure if needed. @ramcq suggested:

could we provision a flathub worker gpg key, which is copied onto each worker and could decrypt stuff which you encrypt to that key? and it can be copied over to the worker from the master

Which would be a longer term solution. For now, I'll just put the key in the manifest and revoke it if there are issues.

from flathub.

bilelmoussaoui avatar bilelmoussaoui commented on May 25, 2024 1

We need something like this for the future FeedReader in order to build Feedly plugin. Currently, we use some env vars defined in the manifest that we replace with the ones defined on Gitlab CI.
I think the best way to resolve this is to have the possibility to define env variables in flathub.org/ and be able to use them on the manifest.

from flathub.

TingPing avatar TingPing commented on May 25, 2024 1

I'm still not sure what this accomplishes. Users will always be able to pull the key out of feedreader. So in the end this is just obfuscation to stop crawlers which can be done any way you want.

from flathub.

jangernert avatar jangernert commented on May 25, 2024 1

Well, it's the difference between leaving the door unlocked and open and having a spare key somewhere hidden in the yard.

I'm about to release a first beta of NewsFlash and was hoping this would by now be possible.
The problem with the feedly API secret is that feedly is extremely strict about handing them out. For now I am using one that could be found in the code of an old Sailfish OS application. But ideally I want to apply for a unique secret.
For FeedReader, where the secret is simply in the code, my application got denied. Granted for not specified reasons. But not leaking the secret in a too obvious way is for sure part of getting one.

So my only option if I still want to apply to get a secret is have a non working feedly backend in the flathub build.

edit: in the gitlab CI pipeline we use two environment variables that can only be accessed by members of the project. That seems to work well for us so far.

from flathub.

TingPing avatar TingPing commented on May 25, 2024

If you just want to stop web crawlers finding it maybe store it in the manifest encoded in like base64 and decode it as part of the build process?

from flathub.

TingPing avatar TingPing commented on May 25, 2024

Well once the key is in the application the user can always extract it...

The only value I can think of is as I said, avoiding scrapers on github and I don't think we need actual encryption to do that.

from flathub.

GustavoPeredo avatar GustavoPeredo commented on May 25, 2024

Any updates on this issue?

Maybe implement something similar to Github's actions?

from flathub.

razzeee avatar razzeee commented on May 25, 2024

This will be mitigated, by allowing external builds.

from flathub.

gdesmott avatar gdesmott commented on May 25, 2024

I'd need this as well for Karapulse's Spotify application key.

from flathub.

gdesmott avatar gdesmott commented on May 25, 2024

in the gitlab CI pipeline we use two environment variables that can only be accessed by members of the project. That seems to work well for us so far.

The gitlab solution also takes care of censoring the secrets from the build logs, so they don't accidentally appear there.

from flathub.

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.