Skip to content

[v13] Generate user login state from access lists and integrate into certificates.#30628

Merged
mdwn merged 1 commit intobranch/v13from
mike.wilson/v13-user-login-state-generator
Aug 21, 2023
Merged

[v13] Generate user login state from access lists and integrate into certificates.#30628
mdwn merged 1 commit intobranch/v13from
mike.wilson/v13-user-login-state-generator

Conversation

@mdwn
Copy link
Copy Markdown
Contributor

@mdwn mdwn commented Aug 17, 2023

Backport #29364 to branch/v13.

…icates. (#29364)

* Generate user login state from access lists and integrate into certificates.

On login, the user login state will be generated, using access lists to
register additional roles and traits that will be inserted into the user's
certificate.

Tests have been added to exercise this as well.

* Cache user login states, filter roles that aren't in the backend.

* Small refactor.

* Optimize RPC calls, test merge login in auth.go more thoroughly.

* Warn when role is missing.

* Update so access info uses the user login state directly, user login state comprises the whole state as opposed to a mix.

* Logic tweaks to restore tests.

* Integrate user login state cache.

* Swap out get user for get user state where applicable.

* Revert unrelated debug change.

* Add in missing err check.

* Further replacing with user state.

* Revert changes to helpers to try to get integration tests working.

* Revert "Revert changes to helpers to try to get integration tests working."

This reverts commit 682e920.

* Add in user type to generator.

* Use supplied user for generating SSH certs.
@mdwn mdwn added this pull request to the merge queue Aug 21, 2023
Merged via the queue into branch/v13 with commit 4821263 Aug 21, 2023
@mdwn mdwn deleted the mike.wilson/v13-user-login-state-generator branch August 21, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants