Giter Club home page Giter Club logo

Comments (2)

jasoncpatton avatar jasoncpatton commented on August 16, 2024

This problem goes a little deeper than first thought. The real issue is that there needs to be two-way, secure communications between all of the daemons involved -- the CredD, the CredMon, and the OAuthCredMon Flask app. Here's the list of what needs to needs to be sent securely that cannot be done without the Flask app running as root or using an underprivileged directory to store credentials (and other items):

  1. From CredD to Flask app: OAuth client_secrets (i.e. the "key file")
  2. From Flask app to CredMon: OAuth tokens

I'm considering writing a full design doc to help elicit feedback, but here's my current thinking:

We can always add more endpoints to the Flask app. For (1), have the CredD send the key file ClassAds over HTTPS. We can use filesystem authentication to prove that requests are coming from a rootly CredD. Similarly, for (2), have the CredD request a token pickup directory to have the CredMon watch* from the Flask app when it is launched. Again, use the filesystem to authenticate that the request is coming from a root-owned process.

*The biggest question remaining is how to have the CredMon watch a directory such that tokens are transferred ASAP to the SEC_CREDENTIAL_DIRECTORY after being written. First thought is to use inotify or (failing that) frequent polling. However, the python-inotify RHEL package is from an older implementation that is no longer being maintained (based on the Issues list, it's broken starting with Python 3.5) rather than a more current implementation. Another option would be allow some way for the Flask app to send the CredD or CredMon a command. One way to do this would be to drop the CredMon's euid to whatever the Flask app is running as so that the Flask app can send the CredMon a signal.

from scitokens-credmon.

jasoncpatton avatar jasoncpatton commented on August 16, 2024

Working out of https://github.com/jasoncpatton/scitokens-credmon/tree/secure_creddir for this, will set up a PR after some commits.

from scitokens-credmon.

Related Issues (17)

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.