StackStorm / StackStorm/st2

Sensor container should generate and manage auth tokens for sensor processes

Open
#3,837 0 comments 0 reactions 1 assignee View on GitHub

@Kami is already working on this.

Since Nov 8, 2017.

complexity:medium enhancement
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Right now each sensor wrapper / process creates it's own token which is used for datastore service access purposes (contributed by Plexxi a while ago).

New auth token gets generated every time a sensor starts up. This token is valid TTL number hours and doesn't get cleaned up if the sensor is shut down or crashes.

We should improve that and follow the same abstraction we use for action runners - tokens should be created and managed by the sensor container service and they should be cleaned up when a sensor dies / crashes / similar. This way we don't have ghost tokens laying around in the database.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.