It may make sense to expose an auto-refresh service for zcaps delegated by a profile. A zcap to use the service could be given out to, for example, service instances. Those service instances could hit the refresh service with existing (and unexpired) zcaps and receive new zcaps. The zcaps delegated could be stored to enable future revocation, if desired.
Zcap refresh would be gated based on some threshold, to help prevent misuse / generation of too many zcaps / too frequent regeneration.
It may make sense to expose an auto-refresh service for zcaps delegated by a profile. A zcap to use the service could be given out to, for example, service instances. Those service instances could hit the refresh service with existing (and unexpired) zcaps and receive new zcaps. The zcaps delegated could be stored to enable future revocation, if desired.
Zcap refresh would be gated based on some threshold, to help prevent misuse / generation of too many zcaps / too frequent regeneration.