Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-normative proposal: Ephemeral action credentials #357

Open
chris-crone opened this issue Mar 13, 2020 · 1 comment
Open

Non-normative proposal: Ephemeral action credentials #357

chris-crone opened this issue Mar 13, 2020 · 1 comment

Comments

@chris-crone
Copy link
Contributor

When running an action, the CNAB runtime needs to pass credentials into the invocation container. For actions that create, delete, or modify objects, these credentials must have privileges that allow doing so on the target platform. For installed applications that interact with the platform, one would expect a clear separation of concerns enforced by a separate set of less privileged credentials that the application uses.

Because of how the CNAB installation model works, it cannot enforce this separation of concerns and cannot guarantee that the installation credentials are not passed to the installed application or elsewhere. To mitigate this, runtimes could create ephemeral credentials that are invalidated shortly after action completion.

This has two benefits:

  1. It guarantees that the installation credentials cannot be reused
  2. It facilitates auditing the action's effect on the platform (i.e.: what the action did)

I see this as a complement to #337 and a candidate for the non-normative portion of the specification as it requires that the runtime tool understands the target installation platform.

@squillace
Copy link

I think this is one of the more important things we need to do relatively soon. And go back to #337.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants