open-consul/agent/consul
Daniel Nephin 9435118179 acl: remove Server.ResolveTokenIdentityAndDefaultMeta
This method suffered from similar naming to a couple other methods on Server, and had not great
re-use (2 callers). By copying a few of the lines into one of the callers we can move the
implementation into the second caller.

Once moved, we can see that ResolveTokenAndDefaultMeta is identical in both Client and Server, and
likely should be further refactored, possibly into ACLResolver.

This change is being made to make ACL resolution easier to trace.
2021-08-05 15:20:13 -04:00
..
authmethod Replace use of 'sane' where appropriate 2021-07-02 12:18:46 -04:00
discoverychain agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
fsm fix state index for `CAOpSetRootsAndConfig` op (#10675) 2021-08-04 13:07:49 -04:00
prepared_query agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
state state: refactor some node/coordinate state store functions to take an EnterpriseMeta (#10687) 2021-07-23 13:42:23 -05:00
stream stream: remove bufferItem.NextLink 2021-06-07 17:04:46 -04:00
testdata
usagemetrics usagemetrics: add cluster members to metrics API (#10340) 2021-06-03 08:25:53 -07:00
wanfed lint: fix warning by removing reference to deprecated interface 2021-05-04 14:09:14 -04:00
acl.go acl: remove Server.ResolveTokenIdentityAndDefaultMeta 2021-08-05 15:20:13 -04:00
acl_authmethod.go ACL Node Identities (#7970) 2020-06-16 12:54:27 -04:00
acl_authmethod_oss.go acl: add auth method for JWTs (#7846) 2020-05-11 20:59:29 -05:00
acl_authmethod_test.go
acl_client.go acl: remove Server.ResolveTokenIdentityAndDefaultMeta 2021-08-05 15:20:13 -04:00
acl_endpoint.go acl: remove unused error return 2021-08-05 15:20:13 -04:00
acl_endpoint_legacy.go acl: remove rule == nil checks 2021-07-30 13:58:35 -04:00
acl_endpoint_oss.go acl: add auth method for JWTs (#7846) 2020-05-11 20:59:29 -05:00
acl_endpoint_test.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
acl_oss.go Move static token resolution into the ACLResolver (#10013) 2021-04-14 12:39:35 -04:00
acl_oss_test.go
acl_replication.go Replace use of 'sane' where appropriate 2021-07-02 12:18:46 -04:00
acl_replication_legacy.go
acl_replication_legacy_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
acl_replication_test.go Merge pull request #9340 from hashicorp/dnephin/skip-slow-tests-with-short 2020-12-11 13:33:44 -05:00
acl_replication_types.go Handle FSM.Apply errors in raftApply 2021-04-20 13:29:29 -04:00
acl_server.go acl: remove Server.ResolveTokenIdentityAndDefaultMeta 2021-08-05 15:20:13 -04:00
acl_server_oss.go Move static token resolution into the ACLResolver (#10013) 2021-04-14 12:39:35 -04:00
acl_test.go acl: recouple acl filtering from ACLResolver 2021-08-05 15:20:13 -04:00
acl_token_exp.go Move some things around to allow for license updating via config reload 2021-05-25 09:57:50 -04:00
acl_token_exp_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
auto_config_backend.go auto-config: move autoConfigBackend impl off of Server 2021-07-12 13:42:40 -04:00
auto_config_backend_test.go auto-config: move autoConfigBackend impl off of Server 2021-07-12 13:42:40 -04:00
auto_config_endpoint.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
auto_config_endpoint_test.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
auto_encrypt_endpoint.go rpc: remove unnecessary arg to ForwardRPC 2021-05-06 13:30:07 -04:00
auto_encrypt_endpoint_test.go config: remove duplicate TLSConfig fields from agent/consul.Config 2021-07-09 18:49:42 -04:00
autopilot.go trim help strings to save a few bytes 2020-11-16 11:02:11 -08:00
autopilot_oss.go Switch to using the external autopilot module 2020-11-09 09:22:11 -05:00
autopilot_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
catalog_endpoint.go acl: remove unused error return 2021-08-05 15:20:13 -04:00
catalog_endpoint_test.go acl: move vetRegisterWithACL and vetDeregisterWithACL 2021-08-05 15:17:54 -04:00
client.go RPC Timeout/Retries account for blocking requests (#8978) 2021-05-27 17:29:43 -04:00
client_serf.go Refactor of serf feature flag tags. 2021-05-20 12:57:06 -04:00
client_test.go sync changes to oss files made in enterprise (#10670) 2021-07-22 13:58:08 -05:00
cluster_test.go
config.go config: remove misleading UseTLS field 2021-07-09 19:01:45 -04:00
config_endpoint.go acl: remove acl == nil checks 2021-07-30 14:28:19 -04:00
config_endpoint_test.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
config_replication.go Handle FSM.Apply errors in raftApply 2021-04-20 13:29:29 -04:00
config_replication_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
connect_ca_endpoint.go acl: use acl.ManangeAll when ACLs are disabled 2021-07-30 12:58:24 -04:00
connect_ca_endpoint_test.go connect/ca: ensure edits to the key type/bits for the connect builtin CA will regenerate the roots (#10330) 2021-07-13 11:12:07 -05:00
coordinate_endpoint.go acl: Remove the remaining authz == nil checks 2021-07-30 14:55:35 -04:00
coordinate_endpoint_test.go state: refactor some node/coordinate state store functions to take an EnterpriseMeta (#10687) 2021-07-23 13:42:23 -05:00
discovery_chain_endpoint.go acl: use acl.ManangeAll when ACLs are disabled 2021-07-30 12:58:24 -04:00
discovery_chain_endpoint_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
enterprise_client_oss.go Preparation for changing where license management is done. 2021-05-24 10:19:31 -04:00
enterprise_config_oss.go
enterprise_server_oss.go Move some things around to allow for license updating via config reload 2021-05-25 09:57:50 -04:00
enterprise_server_oss_test.go Preparation for changing where license management is done. 2021-05-24 10:19:31 -04:00
federation_state_endpoint.go acl: use acl.ManangeAll when ACLs are disabled 2021-07-30 12:58:24 -04:00
federation_state_endpoint_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
federation_state_replication.go Handle FSM.Apply errors in raftApply 2021-04-20 13:29:29 -04:00
federation_state_replication_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
filter.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
filter_test.go Enable gofmt simplify 2020-06-16 13:21:11 -04:00
flood.go agent: refactor to use a single addrFn 2020-05-05 21:08:10 +02:00
gateway_locator.go server: initialize mgw-wanfed to use local gateways more on startup (#9528) 2021-01-25 17:30:38 -06:00
gateway_locator_test.go server: initialize mgw-wanfed to use local gateways more on startup (#9528) 2021-01-25 17:30:38 -06:00
health_endpoint.go acl: remove acl == nil checks 2021-07-30 14:28:19 -04:00
health_endpoint_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
helper_test.go Update viz endpoint to include topology from intentions 2021-04-14 10:20:15 -06:00
intention_endpoint.go acl: remove Server.ResolveTokenIdentityAndDefaultMeta 2021-08-05 15:20:13 -04:00
intention_endpoint_test.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
internal_endpoint.go acl: remove Server.ResolveTokenToIdentityAndAuthorizer 2021-08-05 15:20:13 -04:00
internal_endpoint_test.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
issue_test.go stream: Use a no-op event publisher if streaming is disabled 2020-10-28 13:54:19 -04:00
kvs_endpoint.go acl: Remove the remaining authz == nil checks 2021-07-30 14:55:35 -04:00
kvs_endpoint_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
leader.go state: refactor some node/coordinate state store functions to take an EnterpriseMeta (#10687) 2021-07-23 13:42:23 -05:00
leader_connect.go telemetry: add a metric for agent TLS cert expiry 2021-08-04 13:51:44 -04:00
leader_connect_ca.go defer setting the state before returning to avoid stuck in `INITIALIZING` state (#10630) 2021-08-05 14:51:19 -04:00
leader_connect_ca_test.go check expiry date of the root/intermediate before using it to sign a leaf (#10500) 2021-07-13 12:15:06 -04:00
leader_connect_test.go Reset root prune interval after TestLeader_CARootPruning completes 2021-07-26 15:43:40 -06:00
leader_federation_state_ae.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
leader_federation_state_ae_test.go server: use the presense of stored federation state data as a sign that we already activated the federation state feature flag (#9519) 2021-01-25 13:24:32 -06:00
leader_intentions.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
leader_intentions_oss.go server: skip deleted and deleting namespaces when migrating intentions to config entries (#9186) 2020-11-13 13:56:41 -06:00
leader_intentions_oss_test.go server: skip deleted and deleting namespaces when migrating intentions to config entries (#9186) 2020-11-13 13:56:41 -06:00
leader_intentions_test.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
leader_metrics.go telemetry: add log message when certs are about to expire 2021-08-04 14:18:59 -04:00
leader_test.go state: refactor some node/coordinate state store functions to take an EnterpriseMeta (#10687) 2021-07-23 13:42:23 -05:00
logging.go
logging_test.go
merge.go
merge_test.go
operator_autopilot_endpoint.go acl: remove Server.ResolveTokenToIdentityAndAuthorizer 2021-08-05 15:20:13 -04:00
operator_autopilot_endpoint_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
operator_endpoint.go
operator_raft_endpoint.go acl: remove Server.ResolveTokenToIdentityAndAuthorizer 2021-08-05 15:20:13 -04:00
operator_raft_endpoint_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
options.go sync changes to oss files made in enterprise (#10670) 2021-07-22 13:58:08 -05:00
options_oss.go Preparation for changing where license management is done. 2021-05-24 10:19:31 -04:00
prepared_query_endpoint.go acl: use acl.ManangeAll when ACLs are disabled 2021-07-30 12:58:24 -04:00
prepared_query_endpoint_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
raft_rpc.go
replication.go Refactor of serf feature flag tags. 2021-05-20 12:57:06 -04:00
replication_test.go Move some things around to allow for license updating via config reload 2021-05-25 09:57:50 -04:00
rpc.go docs: correct some misleading telemetry docs 2021-06-28 12:20:53 -04:00
rpc_test.go config: remove misleading UseTLS field 2021-07-09 19:01:45 -04:00
rtt.go state: refactor some node/coordinate state store functions to take an EnterpriseMeta (#10687) 2021-07-23 13:42:23 -05:00
rtt_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
segment_oss.go trim help strings to save a few bytes 2020-11-16 11:02:11 -08:00
serf_test.go
server.go sync changes to oss files made in enterprise (#10670) 2021-07-22 13:58:08 -05:00
server_connect.go auto-config: move autoConfigBackend impl off of Server 2021-07-12 13:42:40 -04:00
server_lookup.go
server_lookup_test.go ci: enable SA4006 staticcheck check 2020-06-16 13:10:11 -04:00
server_oss.go sync changes to oss files made in enterprise (#10670) 2021-07-22 13:58:08 -05:00
server_register.go connect: update centralized upstreams representation in service-defaults (#10015) 2021-04-15 14:21:44 -05:00
server_serf.go config: remove misleading UseTLS field 2021-07-09 19:01:45 -04:00
server_test.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
session_endpoint.go acl: remove unused error return 2021-08-05 15:20:13 -04:00
session_endpoint_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
session_timers.go
session_timers_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
session_ttl.go agent/structs: add a bunch more EnterpriseMeta helper functions to help with partitioning (#10669) 2021-07-22 13:20:45 -05:00
session_ttl_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
snapshot_endpoint.go acl: use acl.ManangeAll when ACLs are disabled 2021-07-30 12:58:24 -04:00
snapshot_endpoint_test.go Upgrade raft-autopilot and wait for autopilot it to stop when revoking leadership (#9644) 2021-01-27 11:14:52 -05:00
stats_fetcher.go Switch to using the external autopilot module 2020-11-09 09:22:11 -05:00
stats_fetcher_test.go Maybe fix another data race in a test 2020-12-22 18:53:54 -05:00
status_endpoint.go Switch to using the external autopilot module 2020-11-09 09:22:11 -05:00
status_endpoint_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
subscribe_backend.go sync changes to oss files made in enterprise (#10670) 2021-07-22 13:58:08 -05:00
subscribe_backend_test.go config: remove duplicate TLSConfig fields from agent/consul.Config 2021-07-09 18:49:42 -04:00
system_metadata.go Handle FSM.Apply errors in raftApply 2021-04-20 13:29:29 -04:00
system_metadata_test.go testing: skip slow tests with -short 2020-12-07 13:42:55 -05:00
txn_endpoint.go acl: rename acl.Authorizer vars to authz 2021-08-05 15:19:47 -04:00
txn_endpoint_test.go state: refactor some node/coordinate state store functions to take an EnterpriseMeta (#10687) 2021-07-23 13:42:23 -05:00
util.go Move RPC router from Client/Server and into BaseDeps (#8559) 2020-08-27 11:23:52 -04:00
util_test.go Remove bytesToUint64 from agent/consul 2020-06-18 12:45:43 -04:00