Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

// request-validator is a generic ext-authz HTTP service that decides
// allow / deny for incoming requests based on a declarative YAML policy.
//
Expand Down
3 changes: 3 additions & 0 deletions internal/celenv/data.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package celenv

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/celenv/encoding.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package celenv

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/celenv/env.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

// Package celenv builds the CEL environment used by request-validator
// policies, registers the custom functions and provides a program cache.
package celenv
Expand Down
3 changes: 3 additions & 0 deletions internal/celenv/env_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package celenv

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/celenv/http.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package celenv

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/celenv/net.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package celenv

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/celenv/strings.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package celenv

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/celenv/time.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package celenv

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/configwatch/watch.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

// Package configwatch watches a single configuration file for changes and
// invokes a callback whenever the file is rewritten.
//
Expand Down
3 changes: 3 additions & 0 deletions internal/configwatch/watch_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package configwatch

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/facts/facts.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

// Package facts owns the "facts" feature of the policy DSL.
//
// A `facts` entry is a named value that policies can reference from any CEL
Expand Down
3 changes: 3 additions & 0 deletions internal/facts/facts_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package facts

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/grpcserver/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

// Package grpcserver implements the Envoy external processing (ext_proc) gRPC server.
package grpcserver

Expand Down
3 changes: 3 additions & 0 deletions internal/grpcserver/server_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package grpcserver

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/httpserver/access.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package httpserver

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/httpserver/access_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package httpserver

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/httpserver/metrics.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package httpserver

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/httpserver/server.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

// Package httpserver exposes the ext-authz HTTP endpoint.
//
// Envoy/Istio is expected to forward the original downstream request to this
Expand Down
3 changes: 3 additions & 0 deletions internal/httpserver/server_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package httpserver

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/jsonpath/jsonpath.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

// Package jsonpath implements a tiny subset of JSONPath used by request-validator.
//
// Supported syntax (a deliberate, minimal subset):
Expand Down
3 changes: 3 additions & 0 deletions internal/log/log.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

// Package log is a thin wrapper around log/slog that gives the rest of the
// project a single, opinionated logger.
//
Expand Down
3 changes: 3 additions & 0 deletions internal/policy/extproc.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package policy

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/policy/extproc_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package policy

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/policy/policy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package policy

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/policy/policy_facts_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package policy

import (
Expand Down
3 changes: 3 additions & 0 deletions internal/policy/policy_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2026 Alby Hernández <hola@achetronic.com>
// SPDX-License-Identifier: Apache-2.0

package policy

import (
Expand Down
Loading