update integrations

This commit is contained in:
Maycon Santos
2025-03-09 19:32:38 +01:00
parent 8430139d80
commit d8bcf745b0
4 changed files with 8 additions and 8 deletions

2
go.mod
View File

@@ -60,7 +60,7 @@ require (
github.com/miekg/dns v1.1.59
github.com/mitchellh/hashstructure/v2 v2.0.2
github.com/nadoo/ipset v0.5.0
github.com/netbirdio/management-integrations/integrations v0.0.0-20250309172507-ee34714caafc
github.com/netbirdio/management-integrations/integrations v0.0.0-20250309183036-fe518506f9de
github.com/netbirdio/signal-dispatcher/dispatcher v0.0.0-20241010133937-e0df50df217d
github.com/okta/okta-sdk-golang/v2 v2.18.0
github.com/oschwald/maxminddb-golang v1.12.0

4
go.sum
View File

@@ -529,8 +529,8 @@ github.com/netbirdio/go-netroute v0.0.0-20240611143515-f59b0e1d3944 h1:TDtJKmM6S
github.com/netbirdio/go-netroute v0.0.0-20240611143515-f59b0e1d3944/go.mod h1:sHA6TRxjQ6RLbnI+3R4DZo2Eseg/iKiPRfNmcuNySVQ=
github.com/netbirdio/ice/v3 v3.0.0-20240315174635-e72a50fcb64e h1:PURA50S8u4mF6RrkYYCAvvPCixhqqEiEy3Ej6avh04c=
github.com/netbirdio/ice/v3 v3.0.0-20240315174635-e72a50fcb64e/go.mod h1:YMLU7qbKfVjmEv7EoZPIVEI+kNYxWCdPK3VS0BU+U4Q=
github.com/netbirdio/management-integrations/integrations v0.0.0-20250309172507-ee34714caafc h1:ighDmYrYbNGj+XMh8F0Ro5yDZ89PaNXRcM9eXrwtLHU=
github.com/netbirdio/management-integrations/integrations v0.0.0-20250309172507-ee34714caafc/go.mod h1:gxlShs2JgyGBdGt4ctGVZsShX2Tcv8YFYt9QKr3jNhU=
github.com/netbirdio/management-integrations/integrations v0.0.0-20250309183036-fe518506f9de h1:YK4gywy+JKZXu2x/jQPaxvLFs6b5nR97yP9mtjmWru8=
github.com/netbirdio/management-integrations/integrations v0.0.0-20250309183036-fe518506f9de/go.mod h1:gxlShs2JgyGBdGt4ctGVZsShX2Tcv8YFYt9QKr3jNhU=
github.com/netbirdio/service v0.0.0-20240911161631-f62744f42502 h1:3tHlFmhTdX9axERMVN63dqyFqnvuD+EMJHzM7mNGON8=
github.com/netbirdio/service v0.0.0-20240911161631-f62744f42502/go.mod h1:CIMRFEJVL+0DS1a3Nx06NaMn4Dz63Ng6O7dl0qH0zVM=
github.com/netbirdio/signal-dispatcher/dispatcher v0.0.0-20241010133937-e0df50df217d h1:bRq5TKgC7Iq20pDiuC54yXaWnAVeS5PdGpSokFTlR28=

View File

@@ -12,7 +12,7 @@ import (
pb "github.com/golang/protobuf/proto" // nolint
"github.com/golang/protobuf/ptypes/timestamp"
"github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/realip"
integrationsConfig "github.com/netbirdio/management-integrations/integrations/config"
"github.com/netbirdio/management-integrations/integrations"
log "github.com/sirupsen/logrus"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc/codes"
@@ -605,7 +605,7 @@ func toNetbirdConfig(config *Config, turnCredentials *Token, relayToken *Token,
Relay: relayCfg,
}
integrationsConfig.ExtendNetBirdConfig(nbConfig, extraSettings)
integrations.ExtendNetBirdConfig(nbConfig, extraSettings)
return nbConfig
}

View File

@@ -9,7 +9,7 @@ import (
"sync"
"time"
integrationsConfig "github.com/netbirdio/management-integrations/integrations/config"
"github.com/netbirdio/management-integrations/integrations"
log "github.com/sirupsen/logrus"
"github.com/netbirdio/netbird/management/proto"
@@ -217,7 +217,7 @@ func (m *TimeBasedAuthSecretsManager) pushNewTURNAndRelayTokens(ctx context.Cont
}
}
integrationsConfig.ExtendNetBirdConfig(update.NetbirdConfig, nil)
integrations.ExtendNetBirdConfig(update.NetbirdConfig, nil)
log.WithContext(ctx).Debugf("sending new TURN credentials to peer %s", peerID)
m.updateManager.SendUpdate(ctx, peerID, &UpdateMessage{Update: update})
@@ -241,7 +241,7 @@ func (m *TimeBasedAuthSecretsManager) pushNewRelayTokens(ctx context.Context, pe
},
}
integrationsConfig.ExtendNetBirdConfig(update.NetbirdConfig, nil)
integrations.ExtendNetBirdConfig(update.NetbirdConfig, nil)
log.WithContext(ctx).Debugf("sending new relay credentials to peer %s", peerID)
m.updateManager.SendUpdate(ctx, peerID, &UpdateMessage{Update: update})