Skip to content

stenic/well-known

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Well-known

A tiny service collecting and aggregating well-known data from Services and Ingresses in the same Kubernetes namespace. The data is merged and exposed as a JSON object.

Installation

See the Helm chart documentation.

Usage

Add an annotation to a Service or Ingress:

annotation path
well-known.stenic.io/[path] /.well-known/[path]

Example

Annotations with the same path are merged across all Services and Ingresses in the namespace.

apiVersion: v1
kind: Service
metadata:
  name: auth-service
  annotations:
    well-known.stenic.io/openid-configuration: |
      {"issuer": "https://auth.example.com", "authorization_endpoint": "https://auth.example.com/authorize"}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: api-ingress
  annotations:
    well-known.stenic.io/openid-configuration: |
      {"token_endpoint": "https://auth.example.com/token"}

The resulting endpoint contains the merged data from both resources:

curl http://[ingress]/.well-known/openid-configuration

{
    "issuer": "https://auth.example.com",
    "authorization_endpoint": "https://auth.example.com/authorize",
    "token_endpoint": "https://auth.example.com/token"
}

About

well-known

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •