line / line/centraldogma

Change the format of access tokens

Open
#893 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

improvement priority: P1
Dominant language
Java
Stars
668
Forks
135
Avg merge
4d 19h
Merged PRs (30d)
7

Description

Our access tokens always start with `appToken-`. `appToken` is a generic term that doesn't tell what service the token belongs to. It'd be better for security scanning if it starts with the prefix that explicitly signifies it's for Central Dogma. For example, we could make our tokens start with `dogma`? We could do some research on the format of popular services' access tokens, such as [GitHub](https://github.blog/2021-04-05-behind-githubs-new-authentication-token-formats/).

Other changes we might want to introduce as well:

- Use `_` instead of `-`
- More entrophy
- Backward compatibility (i.e. allow using the old tokens)

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.

Research direction

Start with the linked GitHub token-format reference, then locate Central Dogma's token generation and validation entry points. Compare prefix, separator, entropy, security-scanning, and backward-compatibility requirements before proposing a format. Done means the format and compatibility behavior are agreed and the implementation scope is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authentication, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.