-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the insecure version of the Cluster.AutoConfig RPC endpoint
Right now this is only hooked into the insecure RPC server and requires JWT authorization. If no JWT authorizer is setup in the configuration then we inject a disabled “authorizer” to always report that JWT authorization is disabled.
- Loading branch information
Showing
16 changed files
with
4,713 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package agentpb | ||
|
||
func (req *AutoConfigRequest) RequestDatacenter() string { | ||
return req.Datacenter | ||
} | ||
|
||
func (req *AutoConfigRequest) IsRead() bool { | ||
return false | ||
} | ||
|
||
func (req *AutoConfigRequest) AllowStaleRead() bool { | ||
return false | ||
} | ||
|
||
func (req *AutoConfigRequest) TokenSecret() string { | ||
return req.ConsulToken | ||
} | ||
|
||
func (req *AutoConfigRequest) SetTokenSecret(token string) { | ||
req.ConsulToken = token | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.