UNPKG

535 BMarkdownView Raw
1# Secret Management
2
3One of the key benefits Atomist provides is management of
4secrets. Secrets are resolved per organization or *individual user* in
5the event of a command handler. This is an important capability, as
6often automations all run as the same user, making for a poor audit
7trail.
8
9Secrets are injected via decorators.
10
11For example, the following will cause an instance variable to be
12populated before the `handle` method of a handler is invoked:
13
14```typescript
15@Secret(Secrets.ORG_TOKEN)
16public githubToken: string;
17```