Giter Club home page Giter Club logo

Comments (5)

boredazfcuk avatar boredazfcuk commented on May 27, 2024

There's no variable that can be set which would switch it off, unfortunately.

In the first releases of my code I only printed ***** in the logs, but I changed that after I wasted half a day due to an incorrect password.

Printing the plain text in the log file doesn't make a difference as only the root user has access to the container log files location. If the root use wants to see the Apple ID's credentials, a quick docker inspect <whatever the container is named> | grep apple will reveal them. No need to trawl through the logs.

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 27, 2024

Well, I've created a new version that will save the credentials (in plain text) to a file in the /config directory, All it really does is move the problem from the log files directory to the config directory. It dies prevent it being stored in a docker variable though so it can no longer be found through a docker inspect <container name> though, so that's an improvement, of sorts

However, while I have been testing this, I've noticed a far larger security problem. When the script runs the Python command to download the photos, and user can just ps -ef | grep password and they will be able to see the credentials that are passed on the command line. If you're concerned about security, then it's probably best if you avoid using this.

I did look at storing the credentials in the system/Python keyrings quite a while ago but found neither worked and just bombed the application out with an error. I didn't spend much time investigating as I'd got a working solution. I think I should probably revisit it now I know it's leaking credentials.

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 27, 2024

I've implemented keyring stored passwords now and it's working. I just need to test that the old method still works and that switching to keyring stored passwords works OK.

Problem is that my account has been throttled for too many downloads. Hopefully it'll clear in a few hours/days.

from docker-icloudpd.

BoxOfSnoo avatar BoxOfSnoo commented on May 27, 2024

Fantastic! I will watch for it, appreciate your work.

from docker-icloudpd.

boredazfcuk avatar boredazfcuk commented on May 27, 2024

Gives me something to do during the COVID lockdown!

I've just pushed the new version now. You'll have to either omit the apple_password option, or set it to usekeyring

Then launch the container interactively, like you do when you generated the 2FA cookie, and complete the keyring setup process. You'll have to enter a text authentication code from Apple like I did, presumably.

You should then see the password 'usekeyring' in the logs instead of the actual password.

The keyring password file will live in /config/python_keyring/ so it persists across container re-creations. If you check it, the password inside is encrypted.

from docker-icloudpd.

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.