Skip to content

Mint auth interface into the JWT token #1196

Description

@gtema

Future steps of authn/authz rework assume keystone will only issue unscoped jwt tokens. This present problem with guarding the access where now keystone-rs is able to guard admin access to admin i/f, but unscoped jwt sent to nova doesn't have this info anymore. To address this put the i/f name the initial auth request came in into the jwt:

{
  "sub": "user:ops-alice",
  "iss": "https://keystone.internal:8444/v4/oauth2/system",
  "aud": "openstack-admin-api",
  "amr": ["hwk", "tpm"],
  "openstack": {
    "system_scope": "all",
    "roles": ["admin"],
    "issuance_channel": "admin_uds"
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions