Skip to content

Latest commit

 

History

History
272 lines (190 loc) · 7.8 KB

CHANGELOG.md

File metadata and controls

272 lines (190 loc) · 7.8 KB

Table of Contents

v0.12.0 - 2020/07/30

Summary

This release adds support for Kong 2.1 series and a number of enterprise entities.

Added

  • Added HTTPClientWithHeaders helper function to inject authn/authz related HTTP headers in requests to kong.

  • New fields in types:

    • Service struct has three new fields:
      • TLSVerifyDepth
      • TLSVerify
      • CACertificates
    • ClientCertificate field has been added to Upstream struct.
    • Type field has been added to PassiveHealthcheck struct.
  • Following new services for Kong Enterprise have been introduced:

    • WorkspaceService to manage workspaces in kong
    • AdminService to manage users of Kong Manager
    • MTLSAuthService to manage MTLS credentials

Misc

  • Changed the branch name from master to main
  • Introduced linters to improve code health

v0.11.0 - 2020/01/17

Summary

  • This release adds support for Kong 2.0.0.

Added

  • Threshold field has been added to Upstream struct.
  • PathHandling field has been added to Route struct.

v0.10.0 - 2019/10/27

Summary

  • This release adds support for Kong 1.4.

Added

  • HostHeader field has been added to Upstream struct.
  • Tags field has been added to the following types:
    • KeyAuth
    • Basicauth
    • HMACAuth
    • Oauth2Credential
    • ACLGroup
    • JWTAuth

v0.9.0 - 2019/08/24

Breaking changes

  • client.Do() returns a response object even on errors so that clients can inspect the response directly when needed. The error condition has changed to include HTTP status codes 300 to 399 as success and not failure. b1f9eda31
  • String() method has been dropped from all types defined in this package.

Added

  • NewRequest() method helping with creating HTTP requests is now exported
  • URLs parsed inside the package are more robust.
  • New method GetByCustomID has been introduced to fetch Consumers by custom_id.

v0.8.0 - 2019/08/21

Added

  • Oauth2Credential type and service has been added which can be used to create Oauth2 credentials in Kong for some Oauth2 flows.

v0.7.0 - 2019/08/13

Summary

This release brings support for CRUD methods for authentication credentials in Kong.

Added

  • The following credentials and corresponding services have been added:
    • key-auth
    • basic-auth
    • hmac-auth
    • jwt
    • acl

v0.6.2 - 2019/08/09

Fix

  • Add missing omitempty tag to ClientCertificate field

v0.6.1 - 2019/08/09

Fix

  • Fix a typo in Service struct definition for YAML tag

v0.6.0 - 2019/08/09

Summary

  • This release adds support for Kong 1.3.

Breaking change

  • Validator Interface has been dropped and Valid() method from all entities is dropped. #8

Added

  • Headers field has been added to Route struct. #5
  • ClientCertificate field has been added to Service struct. #5
  • CACertificate is a new core entity in Kong. A struct to represent it and a corresponding new service is added. #5
  • Algorithm field has been added to Upstream struct. #9

v0.5.1 - 2019/08/05

Fix

  • Add missing healthchecks.active.unhealthy.interval field to Upstream #6

v0.5.0 - 2019/06/07

Summary

  • This release adds support for Kong 1.2.

Added

  • Added HTTPSRedirectStatusCode property to Route struct. #3

Breaking change

  • Create() for Custom Entities now supports HTTP PUT method. If id is specified in the object, it will be used to PUT the entity. This was always POST previously. #3

v0.4.1 - 2019/04/11

Fix

  • Add omitempty property to Upstream fields for Kong 1.0 compatibility

v0.4.0 - 2019/04/06

Summary

  • This release adds support for features released in Kong 1.1. This version is compatible with Kong 1.0 and Kong 1.1.

Breaking Change

  • Please note that the version naming scheme for this library has changed from x.y.z to vX.Y.Z. This is to ensure compatibility with Go modules.

Added

  • Tags field has been added to all Kong Core entity structs.
  • List methods now support tag based filtering introduced in Kong 1.1. Tags can be ANDed or ORed together. ListOpt struct can be used to specify the tags for filtering.
  • Protocols field has been added to Plugin struct.
  • New fields Type, HTTPSSni and HTTPSVerifyCertificate have been introduced for Active HTTPS healthchecks.
  • TargetService has two new methods MarkHealthy() and MarkUnhealthy() to change the health of a target.

0.3.0 - 2018/12/19

Summary

  • This release adds support for Kong 1.0. It is not compatible with 0.x.y versions of Kong due to breaking Admin API changes as the deprecated API entity is dropped.
  • The code and API for the library is same as 0.2.0, with the exception that struct defs and services related to API is dropped.

Breaking changes

  • API struct definition is no longer available.
  • APIService is no longer available. Please ensure your code doesn't rely on these before upgrading.
  • Plugin struct has dropped the API field.

0.2.0 - 2018/12/19

Summary

  • This release adds support for Kong 0.15.x. It is not compatible with any other versions of Kong due to breaking Admin API changes in Kong for Plugins, Upstreams and Targets entities.

Breaking changes

  • Target struct now has an Upstream member in place of UpstreamID.
  • Plugin struct now has Consumer, API, Route, Service members instead of ConsumerID, APIID, RouteID and ServiceID.

Added

  • RunOn property has been added to Plugin.
  • New properties are added to Route for L4 proxy support.

0.1.0 - 2018/12/01

Summary

  • Debut release of this library
  • This release comes with support for Kong 0.14.x
  • The library is not expected to work with previous or later releases of Kong since every release of Kong is introducing breaking changes to the Admin API.