adding a custom attr for a tdf file #1204
-
I am attempting to add custom attributes to a tdf. I was exploring the examples
encrypt and decrypt work fine without adding attruibutes, but if I attempt to uncomment the sdk.WithDataAttributes line, I am able to encrypt time=2024-07-24T10:23:23.332-04:00 level=ERROR msg="Encountered database error" error=": err: no rows in result set (SQLSTATE 20000)" Flags: Global Flags: reader.doPayloadKeyUnwrap failed: splitKey.rewrap failed:error making request to kas: error making rewrap request: rpc error: code = PermissionDenied desc = request error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@dbutler could you run Note To manage your platform policy use otdfctl. To learn more run |
Beta Was this translation helpful? Give feedback.
@dbutler could you run
otdfctl --host $PLATFORM_ENDPOINT policy attributes list
and show me what attributes you've added to the system? This behavior is typical of setting up the system, but not having any attributes added.Note
To manage your platform policy use otdfctl. To learn more run
otdfctl policy --help
, take note we use nested subcommands likeotdfctl policy attributes create --help
.For the CLI to reach out to the platform you need to specify a
--host
which is endpoint and port that your platform is reached at.