Skip to content

About

well-known

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

80 Commits

Folders and files

Repository files navigation

Well-known

A tiny service collecting and aggregating well-known data from Services, Ingresses, Gateways, and HTTPRoutes in the same Kubernetes namespace. The data is merged and exposed as a JSON object. Gateway API resources are read from the stable gateway.networking.k8s.io/v1 API by default. The Helm customResources value accepts any namespaced custom resource as group/version/resource.

Installation

See the Helm chart documentation.

Usage

Add an annotation to a Service, Ingress, Gateway, or HTTPRoute:

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

Example

Annotations with the same path are merged across all supported resources 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

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages