Distributed Services with Go: missed wiring for the auth in Chapter 5. Secure Your Services (pg. 97)

On page 97 (v. Beta 4): The book jumps to…Our server now authorizes its requests!
However, the reader is not ready yet b/c they need to add the wiring to server_test.go

	authorizer := auth.New(config.ACLModelFile, config.ACLPolicyFile) // <--- here

	cfg = &Config{
		CommitLog: clog,
		Authorizer: authorizer,  // <--- here
	}

Thanks, I’m looking at this now.

1 Like

I’ve updated this in the book. It’ll be in the final copy. Thanks for reporting this all the other issues you found. I went through every snippet in the book for the final copy to make sure everything works.