Skip to content

Commit

Permalink
feat(runtime): add service configuration and discovery support
Browse files Browse the repository at this point in the history
- Add support for service-specific configuration in runtime.Config
- Implement registry and service configuration binding
- Update runtime.Runtime to use new service configuration methods
- Refactor config.Scan to use the new cfg field
  • Loading branch information
godcong committed Dec 24, 2024
1 parent 1440014 commit 3afa654
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions agent/middleware/security/authn.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,12 @@ func NewAuthNServer(cfg *configv1.Security, ss ...OptionSetting) (middleware.Mid
func NewAuthN(cfg *configv1.Security, ss ...OptionSetting) (middleware.Middleware, error) {
log.Debugf("NewAuthN: creating server authenticator middleware with config: %+v", cfg)
option := settings.ApplyDefaultsOrZero(ss...)
if option == nil || option.Authenticator == nil {
if option.Authenticator == nil {
log.Errorf("NewAuthN: option or authenticator is nil, returning error")
return nil, ErrorCreateOptionNil
}

log.Debugf("NewAuthN: applying defaults and creating token parser")
//tokenParsers := aggregateTokenParsers(
// option.TokenParser,
// FromTransportClient(option.HeaderAuthorize, option.Scheme),
// FromTransportServer(option.HeaderAuthorize, option.Scheme))

return func(handler middleware.Handler) middleware.Handler {
return func(ctx context.Context, req interface{}) (interface{}, error) {
log.Debugf("NewAuthN: handling request: %+v", req)
Expand Down

0 comments on commit 3afa654

Please sign in to comment.