Giter VIP home page Giter VIP logo

Comments (8)

bsushmith avatar bsushmith commented on June 24, 2024 1

Grants should have owner(s) unless it is undeterminable (like in ImportGrants). If a user doesn't want to receive notifications about certain grants, they should hand them over to someone else.

Yes. Agreed. I meant in a manner of -
Could we have similar restrictions in the way we add/remove approvers for a given step. We check to ensure at least one approver is present in case of removal. We should be able to do that here also.

from guardian.

bsushmith avatar bsushmith commented on June 24, 2024 1

Agreed on the second approach with restrictions on what can be updated. 👍

from guardian.

rahmatrhd avatar rahmatrhd commented on June 24, 2024

@ravisuhag @haveiss @mabdh @bsushmith requesting for your comments 🙏

from guardian.

bsushmith avatar bsushmith commented on June 24, 2024

This feature will also help us in assigning a new owner in case the previous owner is not part of the organization.
For example, we see for serviceAccounts, the previous owners are no longer in the org, and then nobody gets any reminders when a particular serviceAccount grant eventually expires.

Would it be possible to remove owners also? In case somebody wants to re-assign their ownership and does not want to be notified about it?

In the proposed options - I feel option2 might lead to abuse as people might use this to update other fields even if they are not intended to be.

from guardian.

rahmatrhd avatar rahmatrhd commented on June 24, 2024

Would it be possible to remove owners also? In case somebody wants to re-assign their ownership and does not want to be notified about it?

Grants should have owner(s) unless it is undeterminable (like in ImportGrants). If a user doesn't want to receive notifications about certain grants, they should hand them over to someone else.

In the proposed options - I feel option2 might lead to abuse as people might use this to update other fields even if they are not intended to be.

this API should only work on allowed fields. For now, I think it'll be only owner, later after we introduced co-owners we can also add them.

from guardian.

mabdh avatar mabdh commented on June 24, 2024

Yeah, I feel the 2nd solution is simpler. But do we need to restrict the caller of the API? So not all people could update the owner field.

For the next co-owners: []string, I am not sure if it is that scalable to do so, but I think that could be discussed later.

from guardian.

rahmatrhd avatar rahmatrhd commented on June 24, 2024

But do we need to restrict the caller of the API?

@mabdh the API restriction will be done from the auth proxy (shield) only, as right now that's how we configure superadmin privileged APIs as well

from guardian.

rahmatrhd avatar rahmatrhd commented on June 24, 2024

@bsushmith @mabdh can we sign off on the preferred approach? if so I'll work on this soon

from guardian.

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.