EDGEGRID GOLANG RELEASE NOTES
10.0.0 (Feb 3, 2025)
BREAKING CHANGES:
-
APPSEC
- Renamed field
FirewallPolicyIds
toFirewallPolicyIDs
in the following structures:Siemexp
RatePolicyAPISelectors
GetSiemSettingsResponse
UpdateSiemSettingsRequest
RemoveSiemSettingsRequest
- Removed the deprecated
NetworkLayerProtection
interface containing these methods:GetNetworkLayerProtections
GetNetworkLayerProtection
UpdateNetworkLayerProtection
RemoveNetworkLayerProtection
- Removed these deprecated methods:
GetExportConfigurations
GetPenaltyBoxes
GetRatePolicyAction
RemovePolicyProtections
GetSlowPostProtectionSetting
GetWAFModes
- Renamed field
-
BOTMAN
- Removed the deprecated
ChallengeInterceptionRules
interface containing these methods:GetChallengeInterceptionRules
UpdateChallengeInterceptionRules
- Removed the deprecated
-
CPS
- Removed the deprecated
UpdateChange
method.
- Removed the deprecated
-
IAM
- Removed the deprecated
UpdateTFA
method.
- Removed the deprecated
-
Logging
- Changed logger from apex to the custom interface
- Logger method differences:
- A new method
With
has been added that condenses the apex methods (WithError
,WithField
,WithFields
,WithDuration
) into one.WithError
,WithField
,WithFields
,WithDuration
methods are not included in the new logger.- The
Entry
(documentation) type no longer exists in the new logger,With
instead ofEntry
returns a new logger instance with new fields.
- Logging methods (
Fatal
,Error
,Warn
,Info
,Debug
) can accept key-value pairs in addition to a message,- The attribute arguments are processed as follows: If an argument is a string and this is not the last argument, the following argument is treated as the value and the two are combined into an key - value pair. Otherwise, the argument is treated as a value with key "!BADKEY".
- formatted logging methods (
Fatalf
,Errorf
,Warnf
,Infof
,Debugf
) remain unchanged.
- A new method
- Logger method differences:
- By default
slog
with custom handler is used. log.Interface
allows users to define default logger withSetLogger
method and provides option to use different logger backend.- Instructions on using different logger backends can be found in
pkg/log/README.md
file
- Instructions on using different logger backends can be found in
- Log output structure have changed slightly,
- Time format was adjusted, logger will use 24-hour clock with milliseconds instead of 12-hour clock used previously.
- Changed logger from apex to the custom interface
-
Networklists
- Renamed field
UniqueIds
toUniqueIDs
in the following structures:GetNetworkListSubscriptionRequest
UpdateNetworkListSubscriptionRequest
RemoveNetworkListSubscriptionRequest
- Renamed field
FEATURES/ENHANCEMENTS:
-
General
- Migrated to Go
1.22
. - Improved formatting of validation errors.
- Added an ability to return an error for
session.Option
. - Updated vulnerable dependencies.
- Improved code by resolving issues reported by linter.
- Migrated to Go
-
APPSEC
-
PAPI
- Added the
OriginalInput
parameter in theGetRuleTreeRequest
to allow returning upgraded content of rules. When omitted it is equal to true, meaning that returned rules are exactly as sent.
- Added the
BUG FIXES:
- DNS
- Fixed an incorrect URL for the
ListGroups
method.
- Fixed an incorrect URL for the