2021-10-19 17:21:41 -04:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-02-02 17:15:17 -08:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2021-10-19 17:21:41 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
|
|
package controller.auth.v1;
|
|
|
|
|
|
|
|
|
|
option go_package = "github.com/hashicorp/boundary/internal/gen/controller/auth;auth";
|
|
|
|
|
|
|
|
|
|
// RequestInfo contains request parameters necessary for checking authn/authz
|
|
|
|
|
message RequestInfo {
|
|
|
|
|
// path of the request
|
|
|
|
|
string path = 10;
|
|
|
|
|
|
|
|
|
|
// method (http verb) of the request
|
|
|
|
|
string method = 20;
|
|
|
|
|
|
|
|
|
|
// public_id for the request
|
|
|
|
|
string public_id = 30;
|
|
|
|
|
|
|
|
|
|
// encrypted_token from the request
|
|
|
|
|
string encrypted_token = 40;
|
|
|
|
|
|
|
|
|
|
// token from the request
|
|
|
|
|
string token = 50;
|
|
|
|
|
|
|
|
|
|
// token_format of the request's token
|
|
|
|
|
uint32 token_format = 60;
|
|
|
|
|
|
|
|
|
|
// scope_id_override for the request (helpful for tests)
|
|
|
|
|
string scope_id_override = 70;
|
|
|
|
|
|
|
|
|
|
// user_id_override for the request (helpful for tests)
|
|
|
|
|
string user_id_override = 80;
|
|
|
|
|
|
|
|
|
|
// disable_authz_failures for the request (helpful for tests)
|
|
|
|
|
bool disable_authz_failures = 90;
|
|
|
|
|
|
|
|
|
|
// disable_auth_entirely for the request (helpful for tests)
|
|
|
|
|
bool disable_auth_entirely = 100;
|
|
|
|
|
|
|
|
|
|
// ticket is a unique id that allows the grpc-gateway to verify that the info
|
|
|
|
|
// came from its companion http proxy
|
|
|
|
|
string ticket = 110;
|
2021-10-23 21:23:49 -04:00
|
|
|
|
|
|
|
|
// trace_id is the request's trace_id
|
|
|
|
|
string trace_id = 120;
|
|
|
|
|
|
|
|
|
|
// event_id is the request's event id
|
|
|
|
|
string event_id = 130;
|
2021-12-09 20:41:08 -05:00
|
|
|
|
|
|
|
|
// the client ip for the request
|
|
|
|
|
string client_ip = 140;
|
2024-08-29 17:14:42 -04:00
|
|
|
|
|
|
|
|
// url actions from the request path
|
|
|
|
|
repeated string actions = 141;
|
2021-10-19 17:21:41 -04:00
|
|
|
}
|