Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@andrewpmartinez
Copy link
Member

  • uses dynamic JSON protobuf struct marshalling to avoid having to declare every setting in protobuf

- uses dynamic JSON protobuf struct marshalling to avoid having to
  declare every setting in protobuf
@andrewpmartinez andrewpmartinez requested review from a team as code owners February 12, 2025 18:13
store.settingControllerListeners[setting][id] = append(store.settingControllerListeners[setting][id], listener)
}
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not clear why you're deleting the listener if the controller specific settings are removed. Isn't the listener still going to want to react to changes to the global config?

type controllerSettingStoreImpl struct {
*baseStore[*ControllerSetting]
indexName boltz.ReadIndex
symbolEnrollments boltz.EntitySetSymbol
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The map is likely being accessed/mutated across goroutines, should probably be protected

func (ae *AppEnv) GetPeerSigners() []*x509.Certificate {
return ae.HostController.GetPeerSigners()
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have GetId(). That's return the token id from the cert, AFAIK, so this should hopefully not be needed.

if err != nil {
return nil, fmt.Errorf("could not marshal entity: %w", err)
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm doing some json in protobuf as well for inspect stuff. I'll look at this and see if it makes sense to use there.

"github.com/openziti/ziti/controller/models"
"go.etcd.io/bbolt"
)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is TrustDomainSettings used?

Copy link
Member

@plorenz plorenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good, couple of smaller things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants