Skip to content

Harden publication credentials and finish the Artifact Hub to Artifact Site rename #95

Closed

Description

@lanyue-llk

Problem

  • Token sent to the wrong host. In harness/web_fetch/artifact_auth.py:41-46, after the per-host token path, the code falls back to the host-agnostic ~/.config/artifact-site/token and ~/.config/artifact-hub/token. That token is then sent to whatever --base-url the caller passes, which breaks the per-host rule in AGENTS.md.
  • Plaintext passwords in redaction tables. harness/browser_use/publication.py:11-27 duplicates the site passwords from runtime.py:43-48 SITE_CREDENTIALS.
  • Hardcoded legacy host. The default https://artifact-hub.app.lexmount.com appears in both publication_target.py:9 and artifact_auth.py:112. Hosts should come only from the bound publication target.
  • Mixed naming. "Artifact Hub" appears 48 times, including scripts/*_artifact_hub.py, alongside the current Artifact Site naming.
  • Credentials from the process environment. public_webarena/diagnostics.py:281 reads OPENAI_* from the process environment, while the curated replay CLI never loads .env. AGENTS.md says evaluation credentials come only from the repository .env.

Proposal

  • Drop the host-agnostic fallbacks. Keep only the explicit ARTIFACT_SITE_TOKEN, then ~/.config/artifact-site/tokens/<host>, then the per-host legacy read-only path.
  • Build redaction tables from the credential registry and runtime config.
  • Remove the hardcoded default host.
  • Rename Hub to Site in code, scripts and docs. Keep only the documented read-only migration fallback.

Risk: medium, because this is the publish path. Depends on: nothing.


Part of the refactor roadmap: #87

Activity

  1. added
    bug
    refactor
    on Oct 29, 2026
  2. lanyue-llk commented on Nov 3, 2026

    @lanyue-llk
    ContributorAuthor

    Resolved by #130, #134. Remaining work is tracked in #153.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions