ecordell
02/15/2022, 7:19 PMvroldanbet
02/15/2022, 7:21 PMuser
02/15/2022, 9:45 PMsoufian044
02/15/2022, 10:03 PMJoey
02/15/2022, 10:04 PMJoey
02/15/2022, 10:05 PMJoey
02/15/2022, 10:05 PMHAS_PERMISSION
to allow accessuser
02/15/2022, 10:06 PMsoufian044
02/15/2022, 10:11 PMvroldanbet
02/16/2022, 12:36 PMecordell
02/16/2022, 1:53 PMSleipnir
02/17/2022, 3:45 PMJoey
02/17/2022, 4:17 PMJoey
02/17/2022, 4:19 PMJoey
02/17/2022, 4:19 PMJoey
02/17/2022, 4:39 PMdefinition featureflag {}
definition platform {
relation enabledflag: featureflag
}
then your check could be platform:platformname#enabledflag@featureflag:somefeature
Joey
02/17/2022, 4:41 PMdefinition user {}
definition platform {
relation feature_somecoolfeature: user | user:*
}
and then your check could be platform:platformname#feature_somecoolfeature@user:currentuser
. The benefit of this design is you can grant specific features to specific users, or to user:*
to enable it for everyone.
you also can in theory pull the feature flag permission into other permissions, so you could do something like enable new permissions based on a feature being turned on (or turned off) for a specific uservroldanbet
02/17/2022, 4:58 PM403
. from kuberesolver, but getting
Error: rpc error: code = Unavailable desc = last connection error: failed to receive server preface within timeout
Im going to do some further investigation, but something that stood out to me is that the log messages are sending mixed signal around the gRPC status code. Was suprised to find ok
, and it turns out that the started call
has a grpc.code
tag, when it shouldn't (because the call is just starting!).
4:55PM INF started call grpc.code=OK grpc.component=server
Would it make sense to drop the grpc.code
. from that message, to help us filter by actual status code when the response returns?vroldanbet
02/17/2022, 4:59 PMJoey
02/17/2022, 5:05 PMvroldanbet
02/17/2022, 5:06 PMvroldanbet
02/17/2022, 5:06 PMJoey
02/17/2022, 5:09 PMvroldanbet
02/17/2022, 5:09 PMbalchu
02/18/2022, 12:49 PMuser
02/18/2022, 3:04 PMuser
02/18/2022, 3:12 PMbalchu
02/18/2022, 10:11 PMJoey
02/18/2022, 10:36 PM