Reject the public default API key (`veryinsecurapikey`)

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

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
docker, powershell

Research direction

Start by tracing how settings/template.json is applied during make setup and ./manage.ps1 setup, then find where API keys are validated or saved. The issue does not name those implementation files or tests, so first map the setup and service-user configuration paths. Done means setup warns and requires confirmation for the public key or rejects it, and later attempts to set it are also handled.

Written by the indexing model from the issue text.

Description

bug

The settings/template.json shipped with ayon-docker creates a service user with the API key veryinsecurapikey. make setup / ./manage.ps1 setup is part of the default deployment, so every fresh self-hosted server has a service user with this publicly known key, which carries admin-level privileges. Nothing on the server prevents keeping it or setting it again later.

A similar case is the default admin/admin password, which web browsers nowadays flag with a warning at sign-in.

The API key, on the other hand, is never shown, so it is easy to forget on a server that later becomes reachable from the internet.

I'd expect AYON to either warn about this value and ask for confirmation before keeping it, or refuse it, as many tools do with publicly known passwords and secret keys.

Dominant language
PowerShell
Stars
60
Forks
51
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No 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.

More from ynput/ayon-docker

All issues in ynput/ayon-docker

Similar issues

More Security issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.