Define and add IneligibleStatus fields for access list members and owners#31857
Define and add IneligibleStatus fields for access list members and owners#31857
IneligibleStatus fields for access list members and owners#31857Conversation
There was a problem hiding this comment.
I have no issue with the code per se.
I'm not sure how I feel about having this transient field as part of the underlying object -- I feel like this should be handled in the UI endpoint layer. As is this field could get stored in the backend, and it strikes me as a derivable field at run time.
What do you think?
Edit: I'm vacillating on this because, thinking more on it, there is prior art here, isn't there? @jakule, what do you think?
jakule
left a comment
There was a problem hiding this comment.
As I mentioned in the comment, INELIGIBLE_STATUS_UNKNOWN should not be used as eligible status. Apart from that the PR looks good. I missed this the last time.
There was a problem hiding this comment.
This doesn't sound correct. UNSPECIFY means unknown. We should not assume that when the status is unknown, the user is eligible. Please add INELIGIBLE_STATUS_ELIGIBLE to indicate that we checked the user and all requirements are met and leave the unknown as the default value for situations where we were not able to determine it (error for example)
8f5de12 to
b71c5a8
Compare
…ault Define option fn's to set the ineligibleStatus upon request
889f79d to
a306b77
Compare
part of https://github.com/gravitational/teleport.e/issues/1899
For members ineligibility status is nonzero when:
membership_requiresfieldsFor owners ineligibility status is nonzero when:
ownership_requiresfields