Code Monkey home page Code Monkey logo

platform-go-middlewares's Introduction

ConsoleDot Platform Common Middleware

Common Go code for the console.redhat.com open-source platform.

Documentation

Go Reference

Stable version: v1

Usage:

go get github.com/redhatinsights/platform-go-middlewares

Non Go-modules users need to explicitly pull required version:

go get github.com/redhatinsights/[email protected]

The stable version is frozen now and we only accept security or high-important bugfixes.

Branch name: v1

Experimental version: v2

Usage:

go get github.com/redhatinsights/platform-go-middlewares@master

We are working on cleaning the API and making it more robust and flexible.

Branch name: master

Major changes (upgrading)

v2

  • Minimum Go version is 1.20
  • Updated of all dependencies to the latest version.
  • Updated of unit test version matrix to the last three major Go versions.
  • Added new root field Entitlements and associated type.
  • Deprecated Get and With functions, use GetIdentity and WithIdentity.
  • Introduced GetRawIdentity and WithRawIdentity for optional raw identity.
  • Deprecated GetIdentityHeader, replaced with GetRawIdentity. Before calling this function, WithRawIdentity must be set.
  • Key type is no longer exported, use appropriate functions.
  • Separated parsing and validation into two exported functions.
  • New middleware function EnforceIdentityWithLogger with custom logging interface.

platform-go-middlewares's People

Contributors

aleccohan avatar bsquizz avatar dependabot[bot] avatar iphands avatar jharting avatar jhjaggars avatar lzap avatar psav avatar semtexzv avatar stevehnh avatar subpop avatar tremes avatar wcmitchell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.