Hi there,
> 1. To use /auth/jwt/login, I need to provide a named role. What is the "bounded_subject" in step 3 of
https://www.vaultproject.io/docs/auth/jwt.html (see Configuration? Is it the user who is logging in or the application (client)? In my JWT I have an email address as identifier, but the actual role to be given to JWT login API is would be the same name as engineering_foo, for example, if Bob is logging in.
It's the expected value of the 'sub' claim in the JWT.
> 2. What would the group_claims / user_claims be like? that's also not very clear to me exactly what they are.
The user claim (string) is the claim in the JWT that should be used to
uniqely identify the user. This value is then used in Identity as the
alias name for the mount. The group claim (string array) is used to
identify the groups that the user belongs to, which is used for
populating Identity groups.
> 3. The doc also mentions identity. How does JWT user/group claims used to setup aliases? Do I have to first create an entity for Bob (bob can either assume as with engineering_foo or engineering_manager permission).
You don't need to create an entity ahead of time; one will be created
if one doesn't exist/match for that combination of alias mount and
name. The next time the user logs in that name will identify them and
they will be associated with the same entity.
As for groups, the identity system does not automatically create group
aliases. We may make that toggleable in the future but it prevents
users with amazing numbers of groups (we've seen hundreds) from
automatically creating an equally amazing number of group aliases when
they log in, which often will not be desirable.
Best,
Jeff