mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 18:33:19 +02:00
authorize: audit logging (#2050)
* authorize: add databroker server and record version to result, force sync via polling * authorize: audit logging
This commit is contained in:
parent
00e56212ec
commit
f4c4fe314a
18 changed files with 1395 additions and 1390 deletions
|
@ -1,6 +1,7 @@
|
|||
package protoutil
|
||||
|
||||
import (
|
||||
"google.golang.org/protobuf/proto"
|
||||
"google.golang.org/protobuf/types/known/anypb"
|
||||
"google.golang.org/protobuf/types/known/wrapperspb"
|
||||
)
|
||||
|
@ -106,3 +107,10 @@ func NewAnyUInt32(v uint32) *anypb.Any {
|
|||
a, _ := anypb.New(wrapperspb.UInt32(v))
|
||||
return a
|
||||
}
|
||||
|
||||
// GetTypeURL gets the TypeURL for a protobuf message.
|
||||
func GetTypeURL(msg proto.Message) string {
|
||||
// taken from the anypb package
|
||||
const urlPrefix = "type.googleapis.com/"
|
||||
return urlPrefix + string(msg.ProtoReflect().Descriptor().FullName())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue