open-consul/acl
Dhia Ayachi 219a3c5bd3
Leadership transfer cmd (#14132)
* add leadership transfer command

* add RPC call test (flaky)

* add missing import

* add changelog

* add command registration

* Apply suggestions from code review

Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>

* add the possibility of providing an id to raft leadership transfer. Add few tests.

* delete old file from cherry pick

* rename changelog filename to PR #

* rename changelog and fix import

* fix failing test

* check for OperatorWrite

Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>

* rename from leader-transfer to transfer-leader

* remove version check and add test for operator read

* move struct to operator.go

* first pass

* add code for leader transfer in the grpc backend and tests

* wire the http endpoint to the new grpc endpoint

* remove the RPC endpoint

* remove non needed struct

* fix naming

* add mog glue to API

* fix comment

* remove dead code

* fix linter error

* change package name for proto file

* remove error wrapping

* fix failing test

* add command registration

* add grpc service mock tests

* fix receiver to be pointer

* use defined values

Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>

* reuse MockAclAuthorizer

* add documentation

* remove usage of external.TokenFromContext

* fix failing tests

* fix proto generation

* Apply suggestions from code review

Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>

* Apply suggestions from code review

* add more context in doc for the reason

* Apply suggestions from docs code review

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>

* regenerate proto

* fix linter errors

Co-authored-by: github-team-consul-core <github-team-consul-core@hashicorp.com>
Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>
Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>
Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2022-11-14 15:35:12 -05:00
..
resolver Move ACLResolveResult into acl/resolver package (#13467) 2022-06-17 10:24:43 +01:00
MockAuthorizer.go Leadership transfer cmd (#14132) 2022-11-14 15:35:12 -05:00
acl.go update ACLs for cluster peering (#15317) 2022-11-09 13:02:58 -08:00
acl_oss.go Use split wildcard partition name 2022-10-13 16:55:28 -06:00
acl_test.go [OSS] Add new peering ACL rule (#13848) 2022-07-22 14:42:23 -06:00
authorizer.go Add ACL enforcement to peering endpoints 2022-07-25 09:34:29 -06:00
authorizer_oss.go Fixup authz for data imported from peers (#15347) 2022-11-14 11:36:27 -07:00
authorizer_test.go Leadership transfer cmd (#14132) 2022-11-14 15:35:12 -05:00
chained_authorizer.go [OSS] Add new peering ACL rule (#13848) 2022-07-22 14:42:23 -06:00
chained_authorizer_test.go [OSS] Add new peering ACL rule (#13848) 2022-07-22 14:42:23 -06:00
enterprisemeta_oss.go Add SourcePeer fields to relevant Intentions types (#13390) 2022-06-08 13:24:10 -04:00
errors.go Regenerate files according to 1.19.2 formatter 2022-10-24 16:12:08 -04:00
errors_oss.go Fixups for error messages from ACL Errors (#12620) 2022-03-25 12:34:59 -07:00
errors_test.go Leadership transfer cmd (#14132) 2022-11-14 15:35:12 -05:00
policy.go [OSS] Add new peering ACL rule (#13848) 2022-07-22 14:42:23 -06:00
policy_authorizer.go Fixup authz for data imported from peers (#15347) 2022-11-14 11:36:27 -07:00
policy_authorizer_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
policy_authorizer_test.go Fixup authz for data imported from peers (#15347) 2022-11-14 11:36:27 -07:00
policy_merger.go [OSS] Add new peering ACL rule (#13848) 2022-07-22 14:42:23 -06:00
policy_merger_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
policy_oss.go re-run gofmt on 1.17 (#11579) 2021-11-16 12:04:01 -06:00
policy_test.go [OSS] Add new peering ACL rule (#13848) 2022-07-22 14:42:23 -06:00
static_authorizer.go [OSS] Add new peering ACL rule (#13848) 2022-07-22 14:42:23 -06:00
static_authorizer_test.go acl: remove t.Parallel 2020-11-17 12:37:02 -05:00
testing.go Fixups for error messages from ACL Errors (#12620) 2022-03-25 12:34:59 -07:00
validation.go acl: gRPC login and logout endpoints (#12935) 2022-05-04 17:38:45 +01:00