-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuf.yaml
More file actions
34 lines (34 loc) · 1.33 KB
/
Copy pathbuf.yaml
File metadata and controls
34 lines (34 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# buf module configuration for the LightweightAuth proto surface.
# See DESIGN.md §1 (Door B) and §7 (M8).
#
# Code is generated with `buf generate` (see buf.gen.yaml). The
# generated *.pb.go / *_grpc.pb.go files are committed alongside the
# .proto sources so consumers don't need a proto toolchain installed.
version: v2
# `name` makes this module publishable to the Buf Schema Registry. With
# this set, `buf push` uploads the api/proto tree as
# buf.build/mikeappsec/lightweightauth so downstream consumers can
# `buf generate buf.build/mikeappsec/lightweightauth` and codegen
# clients without vendoring the .proto files. Tracked under
# DOC-OPENAPI-1.
modules:
- path: api/proto
name: buf.build/mikeappsec/lightweightauth
lint:
use:
- STANDARD
except:
# Single-package module; the file path mirrors the package, so the
# standard "DIRECTORY_SAME_PACKAGE" rule trips on our doc.go.
- PACKAGE_DIRECTORY_MATCH
# We deliberately call the service `Auth`, not `AuthService` (the
# generated client is `authv1.NewAuthClient`, which reads better).
- SERVICE_SUFFIX
# Authorize and AuthorizeStream intentionally share the same
# request/response messages — see DESIGN.md §1 (Door B).
- RPC_REQUEST_RESPONSE_UNIQUE
- RPC_REQUEST_STANDARD_NAME
- RPC_RESPONSE_STANDARD_NAME
breaking:
use:
- FILE