Skip to content

Commit

Permalink
Add a new type of filter to validate API Keys
Browse files Browse the repository at this point in the history
Signed-off-by: Kévin Lambert <[email protected]>
  • Loading branch information
knlambert committed Jul 21, 2022
1 parent dc3bb5a commit ddb2e3d
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ Note: Other
cause the browser to reject the request. This has now been fixed and these endpoints will attach
the appropriate CORS headers to the response.

- Feature: You can now define a new type of filter to enforce API Keys on top of your services, and provide a
Kubernetes secrets as a source for the list of all the keys.

## [3.0.0] 2022-06-29
[3.0.0]: https://github.com/datawire/edge-stack/releases/v3.0.0

Expand Down
6 changes: 6 additions & 0 deletions docs/releaseNotes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ items:
and <code>/.ambassador/oauth2/multicookie</code> did not understand CORS or CORS preflight request
which would cause the browser to reject the request. This has now been fixed and these endpoints will
attach the appropriate CORS headers to the response.
- title: Add a new API Key filter
type: feature
body: >-
You can now define a new type of filter to enforce API Keys on top of your services,
and provide a Kubernetes secrets as a source for the list of all the keys.
- version: 3.0.0
date: '2022-06-29'
notes:
Expand Down
63 changes: 63 additions & 0 deletions manifests/edge-stack/aes-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,27 @@ spec:
type: object
spec:
properties:
APIKey:
description: FilterAPIKey enforce a set of API Keys.
properties:
httpHeader:
type: string
keys:
items:
description: APIKeyItem defines an API Key, and the secrets
it is based on.
properties:
secretName:
type: string
secretNamespace:
type: string
value:
type: string
type: object
type: array
required:
- keys
type: object
External:
description: FilterExternal closely mimics AuthService.getambassador.io.
properties:
Expand Down Expand Up @@ -589,6 +610,27 @@ spec:
type: object
spec:
properties:
APIKey:
description: FilterAPIKey enforce a set of API Keys.
properties:
httpHeader:
type: string
keys:
items:
description: APIKeyItem defines an API Key, and the secrets
it is based on.
properties:
secretName:
type: string
secretNamespace:
type: string
value:
type: string
type: object
type: array
required:
- keys
type: object
External:
description: FilterExternal closely mimics AuthService.getambassador.io.
properties:
Expand Down Expand Up @@ -897,6 +939,27 @@ spec:
type: object
spec:
properties:
APIKey:
description: FilterAPIKey enforce a set of API Keys.
properties:
httpHeader:
type: string
keys:
items:
description: APIKeyItem defines an API Key, and the secrets
it is based on.
properties:
secretName:
type: string
secretNamespace:
type: string
value:
type: string
type: object
type: array
required:
- keys
type: object
External:
description: FilterExternal closely mimics AuthService.getambassador.io.
properties:
Expand Down

0 comments on commit ddb2e3d

Please sign in to comment.