AsKeyRotator returns a context with an actor that has permissions required for rotating crypto keys.
(ctx context.Context)
| 769 | |
| 770 | // AsKeyRotator returns a context with an actor that has permissions required for rotating crypto keys. |
| 771 | func AsKeyRotator(ctx context.Context) context.Context { |
| 772 | return As(ctx, subjectCryptoKeyRotator) |
| 773 | } |
| 774 | |
| 775 | // AsKeyReader returns a context with an actor that has permissions required for reading crypto keys. |
| 776 | func AsKeyReader(ctx context.Context) context.Context { |