From 129318c22010b46d2824dfac3b2fad0da02acdbd Mon Sep 17 00:00:00 2001 From: Jianpeng Chao Date: Fri, 8 May 2020 12:09:39 -0700 Subject: [PATCH] Add cartID and configRevision to policy audit log PiperOrigin-RevId: 310603268 Change-Id: I3fc934468e83122fa50573a1cec596bec3dbfc00 --- lib/auditlog/auditlog.go | 6 ++ lib/auditlog/auditlog_test.go | 20 +++-- lib/auditlogsapi/handler_test.go | 40 +++++----- lib/auditlogsapi/translation.go | 3 + lib/dam/dam_test.go | 2 + lib/dam/token_flow.go | 18 +++-- proto/auditlogs/v0/auditlogs.pb.go | 121 +++++++++++++++++------------ proto/auditlogs/v0/auditlogs.proto | 5 ++ 8 files changed, 130 insertions(+), 85 deletions(-) diff --git a/lib/auditlog/auditlog.go b/lib/auditlog/auditlog.go index d5fb0af8..bd6f6e55 100644 --- a/lib/auditlog/auditlog.go +++ b/lib/auditlog/auditlog.go @@ -108,6 +108,10 @@ type PolicyDecisionLog struct { PassAuthCheck bool // ErrorType of deny. ErrorType string + // CartID of request. + CartID string + // ConfigRevision the request using. Can use /config/history/{revision} to see the policy. + ConfigRevision int64 // Message of deny. Message interface{} } @@ -126,6 +130,8 @@ func WritePolicyDecisionLog(client *logging.Client, log *PolicyDecisionLog) { "project_id": serviceinfo.Project, "service_type": serviceinfo.Type, "service_name": serviceinfo.Name, + "cart_id": log.CartID, + "config_revision": strconv.FormatInt(log.ConfigRevision, 10), } entry := logging.Entry{ diff --git a/lib/auditlog/auditlog_test.go b/lib/auditlog/auditlog_test.go index bd078dde..4ffd4e5e 100644 --- a/lib/auditlog/auditlog_test.go +++ b/lib/auditlog/auditlog_test.go @@ -109,14 +109,16 @@ func TestWritePolicyDecisionLog(t *testing.T) { serviceinfo.Name = "n1" pl := &PolicyDecisionLog{ - TokenID: "tid", - TokenSubject: "sub", - TokenIssuer: "http://issuer.example.com", - Resource: "http://example.com/dam/v1alpha/resources/a-dataset/roles/viewer", - TTL: "1d", - PassAuthCheck: false, - ErrorType: "untrusted_issuer", - Message: `{"error": "This is a json err"}`, + TokenID: "tid", + TokenSubject: "sub", + TokenIssuer: "http://issuer.example.com", + Resource: "http://example.com/dam/v1alpha/resources/a-dataset/roles/viewer", + TTL: "1d", + PassAuthCheck: false, + ErrorType: "untrusted_issuer", + CartID: "cart_id", + ConfigRevision: 1, + Message: `{"error": "This is a json err"}`, } WritePolicyDecisionLog(server.Client, pl) @@ -139,6 +141,8 @@ func TestWritePolicyDecisionLog(t *testing.T) { "project_id": "p1", "service_type": "t1", "service_name": "n1", + "cart_id": "cart_id", + "config_revision": "1", }, }}, }} diff --git a/lib/auditlogsapi/handler_test.go b/lib/auditlogsapi/handler_test.go index a9564c5a..bbf1a955 100644 --- a/lib/auditlogsapi/handler_test.go +++ b/lib/auditlogsapi/handler_test.go @@ -67,14 +67,16 @@ func Test_AccessLog(t *testing.T) { } auditlog.WriteAccessLog(ctx, f.logger, al) pl := &auditlog.PolicyDecisionLog{ - TokenID: "tid", - TokenSubject: "sub", - TokenIssuer: "http://issuer.example.com", - Resource: "http://example.com/dam/v1alpha/resources/a-dataset/roles/viewer", - TTL: "1d", - PassAuthCheck: false, - ErrorType: "untrusted_issuer", - Message: `{"error": "This is a json err"}`, + TokenID: "tid", + TokenSubject: "sub", + TokenIssuer: "http://issuer.example.com", + Resource: "http://example.com/dam/v1alpha/resources/a-dataset/roles/viewer", + TTL: "1d", + PassAuthCheck: false, + ErrorType: "untrusted_issuer", + CartID: "cart_id", + ConfigRevision: 0, + Message: `{"error": "This is a json err"}`, } auditlog.WritePolicyDecisionLog(f.logger, pl) after := time.Now() @@ -141,16 +143,18 @@ func Test_AccessLog(t *testing.T) { { Name: "users/sub@http:%2F%2Fissuer.example.com/auditlogs/", PolicyLog: &apb.PolicyLog{ - ServiceName: "unset-serviceinfo-Name", - ServiceType: "unset-serviceinfo-Type", - TokenId: "tid", - TokenSubject: "sub", - TokenIssuer: "http://issuer.example.com", - Decision: apb.Decision_FAIL, - ErrorType: "untrusted_issuer", - Reason: `{"error": "This is a json err"}`, - ResourceName: "http://example.com/dam/v1alpha/resources/a-dataset/roles/viewer", - Ttl: &dpb.Duration{Seconds: 86400}, + ServiceName: "unset-serviceinfo-Name", + ServiceType: "unset-serviceinfo-Type", + TokenId: "tid", + TokenSubject: "sub", + TokenIssuer: "http://issuer.example.com", + Decision: apb.Decision_FAIL, + ErrorType: "untrusted_issuer", + Reason: `{"error": "This is a json err"}`, + ResourceName: "http://example.com/dam/v1alpha/resources/a-dataset/roles/viewer", + Ttl: &dpb.Duration{Seconds: 86400}, + CartId: "cart_id", + ConfigRevision: "0", }, }, }, diff --git a/lib/auditlogsapi/translation.go b/lib/auditlogsapi/translation.go index 7aab667b..510b77a4 100644 --- a/lib/auditlogsapi/translation.go +++ b/lib/auditlogsapi/translation.go @@ -125,6 +125,9 @@ func ToPolicyLog(e *lepb.LogEntry) (*apb.AuditLog, error) { ResourceName: labels["resource"], Ttl: timeutil.DurationProto(ttl), + + CartId: labels["cart_id"], + ConfigRevision: labels["config_revision"], } return &apb.AuditLog{Name: name, PolicyLog: l}, nil } diff --git a/lib/dam/dam_test.go b/lib/dam/dam_test.go index 6417235e..f782a48a 100644 --- a/lib/dam/dam_test.go +++ b/lib/dam/dam_test.go @@ -1750,6 +1750,8 @@ func TestLoggedIn_Hydra_Success_Log(t *testing.T) { "project_id": "p1", "service_type": "t1", "service_name": "n1", + "cart_id": "ls-1234", + "config_revision": "1", }, } diff --git a/lib/dam/token_flow.go b/lib/dam/token_flow.go index 7428424b..689de4bc 100644 --- a/lib/dam/token_flow.go +++ b/lib/dam/token_flow.go @@ -442,14 +442,16 @@ func resourceToString(res *pb.ResourceTokenRequestState_Resource) string { return fmt.Sprintf("%s/%s/%s/%s", res.Realm, res.Resource, res.View, res.Role) } -func writePolicyDeccisionLog(logger *logging.Client, id *ga4gh.Identity, res *pb.ResourceTokenRequestState_Resource, ttl time.Duration, err error) { +func writePolicyDeccisionLog(logger *logging.Client, id *ga4gh.Identity, res *pb.ResourceTokenRequestState_Resource, ttl time.Duration, cartID string, cfgRevision int64, err error) { log := &auditlog.PolicyDecisionLog{ - TokenID: id.ID, - TokenSubject: id.Subject, - TokenIssuer: id.Issuer, - Resource: resourceToString(res), - TTL: timeutil.TTLString(ttl), - PassAuthCheck: true, + TokenID: id.ID, + TokenSubject: id.Subject, + TokenIssuer: id.Issuer, + Resource: resourceToString(res), + TTL: timeutil.TTLString(ttl), + PassAuthCheck: true, + CartID: cartID, + ConfigRevision: cfgRevision, } if err != nil { @@ -479,7 +481,7 @@ func (s *Service) loggedInForDatasetToken(ctx context.Context, id *ga4gh.Identit } err := checkAuthorization(ctx, id, ttl, r.Resource, r.View, r.Role, cfg, state.ClientId, s.ValidateCfgOpts(realm, tx)) - writePolicyDeccisionLog(s.logger, id, r, ttl, err) + writePolicyDeccisionLog(s.logger, id, r, ttl, stateID, cfg.Revision, err) if err != nil { return nil, err } diff --git a/proto/auditlogs/v0/auditlogs.pb.go b/proto/auditlogs/v0/auditlogs.pb.go index 8b8b2f6c..491bd0d1 100644 --- a/proto/auditlogs/v0/auditlogs.pb.go +++ b/proto/auditlogs/v0/auditlogs.pb.go @@ -319,6 +319,10 @@ type PolicyLog struct { TokenSubject string `protobuf:"bytes,4,opt,name=token_subject,json=tokenSubject,proto3" json:"token_subject,omitempty"` // TokenIssuer is the iss of the token. TokenIssuer string `protobuf:"bytes,5,opt,name=token_issuer,json=tokenIssuer,proto3" json:"token_issuer,omitempty"` + // CartId of the request. + CartId string `protobuf:"bytes,12,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"` + // ConfigRevision that the request using. + ConfigRevision string `protobuf:"bytes,13,opt,name=config_revision,json=configRevision,proto3" json:"config_revision,omitempty"` // Decission if the request pass the auth checker. Decision Decision `protobuf:"varint,6,opt,name=decision,proto3,enum=AuditLogs.v1.Decision" json:"decision,omitempty"` // ErrorType of deny. @@ -397,6 +401,20 @@ func (m *PolicyLog) GetTokenIssuer() string { return "" } +func (m *PolicyLog) GetCartId() string { + if m != nil { + return m.CartId + } + return "" +} + +func (m *PolicyLog) GetConfigRevision() string { + if m != nil { + return m.ConfigRevision + } + return "" +} + func (m *PolicyLog) GetDecision() Decision { if m != nil { return m.Decision @@ -563,57 +581,58 @@ func init() { } var fileDescriptor_1be582115e76de27 = []byte{ - // 788 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0xcf, 0x6e, 0xe3, 0x44, - 0x18, 0xc7, 0x4d, 0xb6, 0x8d, 0xbf, 0x24, 0xdb, 0x6a, 0xc4, 0xee, 0x7a, 0xcb, 0x2e, 0x1b, 0x5c, - 0x09, 0x45, 0x40, 0x6d, 0x1a, 0x04, 0x07, 0x6e, 0xa5, 0xdd, 0x45, 0x91, 0xaa, 0x55, 0xe4, 0x74, - 0x2f, 0x5c, 0xac, 0xa9, 0x3d, 0x75, 0x06, 0x1c, 0x8f, 0x99, 0x19, 0x47, 0x74, 0xc5, 0x09, 0xee, - 0x5c, 0x78, 0x02, 0x9e, 0x83, 0xc7, 0xe0, 0x15, 0x78, 0x10, 0x34, 0xdf, 0x8c, 0xd3, 0x34, 0x5b, - 0x71, 0xe2, 0xc8, 0x6d, 0xbe, 0xdf, 0xef, 0x37, 0x33, 0xdf, 0x9f, 0x9f, 0x3d, 0x10, 0xd6, 0x52, - 0x68, 0x11, 0xd3, 0x26, 0xe7, 0xba, 0x14, 0x85, 0x8a, 0x57, 0x9f, 0xdf, 0x06, 0x11, 0x92, 0x64, - 0x70, 0x6a, 0x80, 0x0b, 0x03, 0xac, 0x4e, 0x0e, 0x9f, 0x15, 0x42, 0x14, 0x25, 0x8b, 0x69, 0xcd, - 0x63, 0x5a, 0x55, 0x42, 0x53, 0xcd, 0x45, 0xe5, 0xb4, 0x87, 0x1f, 0x3a, 0x16, 0xa3, 0xab, 0xe6, - 0x3a, 0xce, 0x1b, 0x89, 0x02, 0xc7, 0x3f, 0x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, 0x16, 0x7b, 0xee, 0xd8, - 0x64, 0xad, 0x23, 0xcf, 0x01, 0x98, 0x94, 0x42, 0xda, 0xbc, 0xf7, 0xf0, 0x50, 0x1f, 0x11, 0xcc, - 0xfa, 0x31, 0xec, 0x4a, 0x46, 0x95, 0xa8, 0x82, 0x1e, 0x52, 0x2e, 0x22, 0x11, 0x74, 0xcd, 0x14, - 0x03, 0x1f, 0x7b, 0x7a, 0x18, 0xd9, 0x11, 0x47, 0xed, 0x88, 0xa3, 0xcb, 0x76, 0xc4, 0x09, 0xea, - 0xc8, 0x0b, 0xe8, 0x2f, 0x99, 0x5e, 0x88, 0xdc, 0xb6, 0x10, 0xf0, 0x30, 0xb0, 0x10, 0x76, 0xf0, - 0x08, 0x86, 0x92, 0x29, 0xd1, 0xc8, 0xb6, 0xcb, 0x7d, 0xdb, 0x83, 0x16, 0x44, 0xd1, 0x73, 0x00, - 0x2d, 0x69, 0xc6, 0xab, 0xc2, 0x74, 0x71, 0x60, 0x93, 0x75, 0xc8, 0x34, 0x27, 0x1f, 0x80, 0x9f, - 0xd1, 0xb2, 0x64, 0x32, 0xe5, 0x75, 0x30, 0x44, 0xb6, 0x67, 0x81, 0x69, 0x4d, 0x3e, 0x03, 0xb2, - 0xd0, 0xba, 0x4e, 0x25, 0x53, 0xb5, 0xa8, 0x14, 0x4b, 0x33, 0x91, 0xb3, 0xe0, 0xe1, 0xc8, 0x1b, - 0x77, 0x92, 0x03, 0xc3, 0x24, 0x8e, 0x38, 0x13, 0x39, 0x23, 0x5f, 0xc3, 0xc0, 0xa9, 0x7f, 0x6c, - 0x98, 0xd2, 0xc1, 0xbe, 0xf3, 0xce, 0x76, 0x9d, 0x73, 0x34, 0x7a, 0xd2, 0xb7, 0x07, 0xa0, 0x36, - 0xfc, 0xa3, 0x03, 0xfe, 0xda, 0x56, 0xff, 0xbb, 0xe7, 0x3f, 0x70, 0xcf, 0x3b, 0xe6, 0x80, 0x7b, - 0xcc, 0xf1, 0x29, 0x74, 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, 0xd8, 0xb2, 0xc3, 0x47, 0xbf, 0xfc, 0xf5, - 0xf7, 0xef, 0x3b, 0xfb, 0x64, 0x18, 0xaf, 0x4e, 0x6e, 0x1f, 0xac, 0x6f, 0xde, 0x7c, 0x37, 0x2f, - 0xb8, 0x5e, 0x34, 0x57, 0x51, 0x26, 0x96, 0xf1, 0xb7, 0x38, 0xd8, 0xb3, 0x52, 0x34, 0xf9, 0xac, - 0xa4, 0xfa, 0x5a, 0xc8, 0x65, 0xbc, 0x60, 0xb4, 0xd4, 0x8b, 0x8c, 0x4a, 0x76, 0x7c, 0xcd, 0x72, - 0x26, 0xa9, 0x66, 0xf9, 0xb1, 0x7d, 0x07, 0x8e, 0xdd, 0x67, 0xa4, 0xe2, 0x8d, 0x47, 0x51, 0xc5, - 0xab, 0x93, 0xab, 0x5d, 0x04, 0xbe, 0xf8, 0x27, 0x00, 0x00, 0xff, 0xff, 0xc6, 0xa2, 0x81, 0xd2, - 0x2e, 0x07, 0x00, 0x00, + // 816 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x55, 0x41, 0x6f, 0x23, 0x35, + 0x14, 0x66, 0x9a, 0x6c, 0x9a, 0x79, 0x49, 0x9a, 0xca, 0x62, 0x77, 0x67, 0xcb, 0x2e, 0x1b, 0x52, + 0x09, 0x22, 0xa0, 0x19, 0x1a, 0x04, 0x07, 0x6e, 0xa5, 0xdd, 0x45, 0x91, 0xaa, 0x55, 0x34, 0xe9, + 0x5e, 0xb8, 0x8c, 0xdc, 0x19, 0x67, 0x62, 0x98, 0x8c, 0x07, 0xdb, 0x13, 0xd1, 0x15, 0x27, 0xb8, + 0x73, 0xe1, 0xe7, 0xf0, 0x33, 0xf8, 0x09, 0xf0, 0x43, 0x90, 0x9f, 0x3d, 0x69, 0x9a, 0xad, 0x38, + 0xb3, 0x37, 0xbf, 0xef, 0xfb, 0x6c, 0x3f, 0xbf, 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2f, 0x70, 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/proto/auditlogs/v0/auditlogs.proto b/proto/auditlogs/v0/auditlogs.proto index 4b2cb730..b0cf3068 100644 --- a/proto/auditlogs/v0/auditlogs.proto +++ b/proto/auditlogs/v0/auditlogs.proto @@ -106,6 +106,11 @@ message PolicyLog { // TokenIssuer is the iss of the token. string token_issuer = 5; + // CartId of the request. + string cart_id = 12; + // ConfigRevision that the request using. + string config_revision = 13; + // Decission if the request pass the auth checker. Decision decision = 6; // ErrorType of deny.