Giter VIP home page Giter VIP logo

Comments (6)

gaelph avatar gaelph commented on May 28, 2024

So, in the data model, there should be another relation between:

  • the target projet,
  • the invitee user,
  • the generated code.

A new line gets added when the invitee generates the code.
Then, the project owner can find the project and user related to said code and proceed with role assignment and so on.

from keystone.

gaelph avatar gaelph commented on May 28, 2024

There should be subcommands for each step:

  • ks invite [email] sends instructions to the invitee to generate the code, and to create a keystone account if necessary
  • ks invite generate [project] generates an invitee code for the project. The invitee is responsible for transmitting the code
  • ks invite accept [code] adds the invitee to the project, the project owner assigns their role
  • ks invite reject [code] discards the project/invitee/code relation

from keystone.

devx-opensource avatar devx-opensource commented on May 28, 2024

Not sure there's a need to link an invitation code to a project. The invitee code could only be used as an identifier to find him on keystone, just like a username. Difference being that it's a one-time use.

  • ks invite [email] sends instructions to the invitee by email to generate a one-time code (24h TTL) , and to create a keystone account if necessary
  • ks project add [invitee code] adds the invitee to the project, then the project owner assigns the invitee role

from keystone.

gaelph avatar gaelph commented on May 28, 2024

But we use ks secret add to add secrets, and ks file add to add files. So ks project add looks like it is to add projects.
It looks like we have a new members resource with CRUD operations like secrets and files.

Since in the CLI resources are singular nouns, it gives us:

  • ks member to list all members of the project with their roles
  • ks member add [codes...] to add members. Maybe we allow for several codes to be used at once ?
  • ks member rm [usernames...] to expel members. Same : several usernames at once ?
  • ks member set-role [username] to set the role for a member

And:

  • ks invite [emails...] sends instructions to the invitee by email to generate a one-time code (24h TTL) , and to create a keystone account if necessary
  • ks invite generate-code to generate the one-time code ?

from keystone.

gaelph avatar gaelph commented on May 28, 2024

Would it be possible to add a known list of users from a file ? As in:
ks member add --from-file the-a-team.yml

from keystone.

gaelph avatar gaelph commented on May 28, 2024
  • ks invite [emails...] just sends mail with instructions
  • ks whoami a unique member id of the form username@<github|gitlab>
  • ks member add [usernames...]

from keystone.

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.