Skip to content

Commit

Permalink
Add a cert field to HostAuthInput so we can use a cert from the host …
Browse files Browse the repository at this point in the history
…to do policy checks potentially. (#85)

i.e. issuer of host cert == issuer of peer cert is most likely case
  • Loading branch information
sfc-gh-jchacon authored Mar 4, 2022
1 parent 4ddb054 commit c3a150c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions auth/opa/rpcauth/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ type HostAuthInput struct {
// The host address
Net *NetAuthInput `json:"net"`

// Information about the certificate served by the host, if any
Cert *CertAuthInput `json:"cert"`

// Information about the principal associated with the host, if any
Principal *PrincipalAuthInput `json:"principal"`
}
Expand Down

0 comments on commit c3a150c

Please sign in to comment.