Serge Bazanski | bee272f | 2022-09-13 13:52:42 +0200 | [diff] [blame^] | 1 | syntax = "proto3"; |
| 2 | package cloud.api; |
| 3 | option go_package = "source.monogon.dev/cloud/api"; |
| 4 | |
| 5 | service IAM { |
| 6 | rpc WhoAmI(WhoAmIRequest) returns (WhoAmIResponse); |
| 7 | } |
| 8 | |
| 9 | message WhoAmIRequest { |
| 10 | } |
| 11 | |
| 12 | message WhoAmIResponse { |
| 13 | // Opaque identifier (eg. UUID) of the acting account. Immutable. |
| 14 | string account_id = 1; |
| 15 | // Primary email address of the acting account. Can change, must not be used |
| 16 | // as a foreign key in other systems. |
| 17 | string email = 2; |
| 18 | } |