atsign-foundation / at_server

The software implementation of Atsign's core technology
https://docs.atsign.com
BSD 3-Clause "New" or "Revised" License
39 stars 13 forks source link

Need a way to prevent an app from *accidentally* removing its own enrollment #1926

Closed gkc closed 2 months ago

gkc commented 2 months ago

Is your feature request related to a problem? Please describe.

Possibility that a user, managing enrollments, accidentally revokes their current enrollment. This would be super annoying and difficult, perhaps impossible to recover from.

Describe the solution you'd like

Describe alternatives you've considered

No response

Additional context

No response

murali-shris commented 2 months ago

@gkc 1) if enrollment being revoked is current connection enrollment 1.1 enroll:revoke:{"enrollmentId":"123"} - throw Exception 1.2 enroll:revoke:force:{"enrollmentId":"123"} - revoke the enrollment 2) if enrollment being revoked is some other client enrollment 2.1 enroll:revoke:{"enrollmentId":"123"} - revoke the enrollment 2.2 enroll:revoke:force:{"enrollmentId":"123"} - revoke the enrollment

Are these scenarios correct?

gkc commented 2 months ago

Yes they are