Code Monkey home page Code Monkey logo

github-oidc-auth-app's People

Contributors

helaili avatar salekseev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

github-oidc-auth-app's Issues

MIT license needs updates

According to https://github.com/helaili/github-oidc-auth-app/blob/main/README.md#credits and verified by reviewing https://github.com/helaili/github-oidc-auth-app/blob/main/jwks.go code has indeed been re-used from https://github.com/github/actions-oidc-gateway-example project that is licensed under MIT license. Per MIT license your project should contain copyright notice of the original as Copyright (c) 2022 GitHub as well as your own copyright.

I am interested in reusing your project but wanted to make sure it was buttoned up from the legal standpoint. Let me know if a PR would be helpful.

Reset cache on multiple instance

Let say I want to have a scale minimum to 2 on this service.
The webhook will trigger a cache reloading on 1 instance not the 2.

I see 3 ways resolving this problem:

  • use an external tools to cache the policies
  • use an external messaging tool to push a "reload" message listened by all the instance
  • create a reload endpoint and make the instance receiving the event to trigger reload on all other instance via a call to the api. Instance resolution could be done via a DNS resolution for instance (headless service on kubernetes, entry in dns with a server pool... )

A dns solution would be like this:

if os.GetEnv("INSTANCES_LIST")!=nil {
        context := context.Background()
	res, err := net.DefaultResolver.LookupIP(context, "ip", os.GetEnv("INSTANCES_LIST"))
	if err != nil {
		log.Fatalf("No ip found for the given instance list %s", os.GetEnv("INSTANCES_LIST"), err)
	}
	for _, ip := range res {
		// Call the /resetCache endpoint to reset the cache
		_, err := http.Post(fmt.Sprintf("http://%s/resetCache", ip.String()), "application/json", nil)
		if err != nil {
			log.Fatalf("Instance with IP %s is in error", ip, err)
		}
	}
}
```

any thought on this ?

Server-side storage of the config file

Some organizations might want to separate the config file from GitHub to ensure proper separation of concerns. This type of deployment could be an option as others might prefer the repo based experience.

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.