From ba417e8001d0012267303941008797320f427c6d Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 22 Jan 2024 09:57:38 -0600 Subject: [PATCH] renaming to skip-auth --- nodebuilder/rpc/config.go | 10 +++++----- nodebuilder/rpc/constructors.go | 2 +- nodebuilder/rpc/flags.go | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/nodebuilder/rpc/config.go b/nodebuilder/rpc/config.go index 36f5ba3d5c..d6031082a8 100644 --- a/nodebuilder/rpc/config.go +++ b/nodebuilder/rpc/config.go @@ -8,17 +8,17 @@ import ( ) type Config struct { - Address string - Port string - AuthDisabled bool + Address string + Port string + SkipAuth bool } func DefaultConfig() Config { return Config{ Address: defaultBindAddress, // do NOT expose the same port as celestia-core by default so that both can run on the same machine - Port: defaultPort, - AuthDisabled: false, + Port: defaultPort, + SkipAuth: false, } } diff --git a/nodebuilder/rpc/constructors.go b/nodebuilder/rpc/constructors.go index 69c7605344..194dea8a03 100644 --- a/nodebuilder/rpc/constructors.go +++ b/nodebuilder/rpc/constructors.go @@ -37,5 +37,5 @@ func registerEndpoints( } func server(cfg *Config, auth jwt.Signer) *rpc.Server { - return rpc.NewServer(cfg.Address, cfg.Port, cfg.AuthDisabled, auth) + return rpc.NewServer(cfg.Address, cfg.Port, cfg.SkipAuth, auth) } diff --git a/nodebuilder/rpc/flags.go b/nodebuilder/rpc/flags.go index cf4a55bb44..550b6ba908 100644 --- a/nodebuilder/rpc/flags.go +++ b/nodebuilder/rpc/flags.go @@ -10,7 +10,7 @@ import ( var ( addrFlag = "rpc.addr" portFlag = "rpc.port" - authFlag = "rpc.disable-auth" + authFlag = "rpc.skip-auth" ) // Flags gives a set of hardcoded node/rpc package flags. @@ -30,7 +30,7 @@ func Flags() *flag.FlagSet { flags.Bool( authFlag, false, - "Disable authentication for RPC requests", + "Skips authentication for RPC requests", ) return flags @@ -51,6 +51,6 @@ func ParseFlags(cmd *cobra.Command, cfg *Config) { panic(err) } if ok { - cfg.AuthDisabled = true + cfg.SkipAuth = true } }