Git Product home page Git Product logo

Comments (7)

cronopio avatar cronopio commented on July 23, 2024

I been thinking this in a while. Im not sure if 2193228 could expose a security gap for you I guess no, so I would go more for a fake testkey like

-----BEGIN RSA PRIVATE KEY-----
SoMeThIngFuNhErEaNdOthErsRaNdoMsChArAtEres
-----END RSA PRIVATE KEY-----

ssh-rsa MoArRandOmChArAcTeReSHeRe  [email protected]

In that case we should select different files when nock is disabled and point the users to create their own key when want to do a "live" run tests like we do on authentication configs.

from pkgcloud.

stammen avatar stammen commented on July 23, 2024

Excellent suggestion. I will give the fake testkey files a try to make sure they do not break any tests on all the providers. I will also update azure to use fake management certificates (if possible). We already select different config files when nock is turned off and errors are thrown when the files are not found. The user is already required to add a config file in test/configs for each provider when nock is off. These .json config files are ignored with .gitignore. When nock is on, we look in test/configs/mock for the provider config files.

from pkgcloud.

cronopio avatar cronopio commented on July 23, 2024

Yeah, thats what I mean, do the same.

@stammen you are doing an awesome work.

from pkgcloud.

stammen avatar stammen commented on July 23, 2024

I submitted a pull request with the testkeys now using the dummy data. I used SoMeThIngFuNhErEaNdOthErsRaNdoMsChArAtEres encoded to base64 in all of the files.

from pkgcloud.

cronopio avatar cronopio commented on July 23, 2024

Thanks @stammen, can you try now with the HEAD of master at bc154ff if your reproducible test case is solved, for confirm please.

from pkgcloud.

stammen avatar stammen commented on July 23, 2024

All tests pass in reproducible test case on windows and mac using HEAD of master at bc154ff.

from pkgcloud.

cronopio avatar cronopio commented on July 23, 2024

awesome!

from pkgcloud.

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.