cdnvalidator

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

cdnvalidator service

The cdnvalidator provides an abstraction layer for Cloudfront invalidations. It delegates access for different owners of distribution paths to manage performance and cache control requirements.

Architecture

The CDN Validator provides a RESTful API detailed in the OpenAPI documentation.

Authn/Authz

The service relies on being deployed behind a reverse proxy that handles forward authentication and validation of the JWT. Authorization decisions will be made against the groups and scp claims of a JWT.

Configuration

distributions:
    sandbox:
        id: "<Cloudfront Distribution ID>"
        prefix: "/my/path"
entitlements:
    mygroup:
    - sandbox

The sandbox is the vanity name representing a virtual distribution along the path prefix /my/path. The entitlement mygroup will only be allowed to submit invalidation requests for /my/path/* resources.

  • Many vanity names MAY be created with the same Cloudfront distribution ID
  • Entitlements MAY be assigned to more than one distribution.
  • Vanity distributions MUST not conflict in paths.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cli
jwt
server/api/v1beta1
Perform CDN Invalidations on specific distributions.
Perform CDN Invalidations on specific distributions.
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL