Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acl: add replication to ACL Roles from authoritative region. #14176

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

jrasell
Copy link
Member

@jrasell jrasell commented Aug 18, 2022

ACL Roles along with policies and global token will be replicated
from the authoritative region to all federated regions. This
involves a new replication loop running on the federated leader.

Policies and roles may be replicated at different times, meaning
the policies and role references may not be present within the
local state upon replication upsert. In order to bypass the RPC
and state check, a new RPC request parameter has been added. This
is used by the replication process; all other callers will trigger
the ACL role policy validation check.

There is a new ACL RPC endpoint to allow the reading of a set of
ACL Roles which is required by the replication process and matches
ACL Policies and Tokens. A bug within the ACL Role listing RPC has
also been fixed which returned incorrect data during blocking
queries where a deletion had occurred.

related: #13120
targets: feature branch

Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @jrasell!

nomad/leader.go Show resolved Hide resolved
nomad/leader.go Show resolved Hide resolved
nomad/acl_endpoint_test.go Outdated Show resolved Hide resolved
nomad/structs/acl.go Show resolved Hide resolved
nomad/structs/acl.go Outdated Show resolved Hide resolved
nomad/leader.go Show resolved Hide resolved
nomad/leader.go Outdated Show resolved Hide resolved
nomad/leader.go Show resolved Hide resolved
nomad/leader.go Show resolved Hide resolved
ACL Roles along with policies and global token will be replicated
from the authoritative region to all federated regions. This
involves a new replication loop running on the federated leader.

Policies and roles may be replicated at different times, meaning
the policies and role references may not be present within the
local state upon replication upsert. In order to bypass the RPC
and state check, a new RPC request parameter has been added. This
is used by the replication process; all other callers will trigger
the ACL role policy validation check.

There is a new ACL RPC endpoint to allow the reading of a set of
ACL Roles which is required by the replication process and matches
ACL Policies and Tokens. A bug within the ACL Role listing RPC has
also been fixed which returned incorrect data during blocking
queries where a deletion had occurred.
@jrasell jrasell force-pushed the f-gh-13120-acl-role-replication branch from 50c1605 to 0abaee5 Compare August 19, 2022 08:31
@jrasell jrasell merged commit f2effdc into f-gh-13120-sso-umbrella Aug 22, 2022
@jrasell jrasell deleted the f-gh-13120-acl-role-replication branch August 22, 2022 06:54
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants