Skip to content

Extract CredentialsProtocol and env-based credentials #3

Closed

Description

@OkiriGabriel

Part of #1 (open-core architecture).

Goal

Abstract social/API credential access so OSS users keep .env BYOK while the hosted product can use an encrypted vault per org.

Scope

  • Add credentials/base.py with CredentialsProtocol for:
    • OpenAI (already via config.py — may stay separate or included)
    • Twitter API keys
    • LinkedIn token + person ID
    • Buffer access token
  • Add credentials/env_credentials.py — current .env behavior from tools/publisher_tools.py
  • Refactor tools/publisher_tools.py to use the protocol

Acceptance criteria

  • Publishing still works with existing .env variables
  • All publisher tests pass
  • No cloud/vault code in the OSS repo
  • Clear extension point documented in code comments or docstrings

Activity

  1. added
    enhancement
    on Jul 21, 2026
  2. OkiriGabriel commented on Jul 30, 2026

    @OkiriGabriel
    CollaboratorAuthor

    Fixed in PR #19 — added credentials/ module with CredentialsProtocol and EnvCredentials; publisher_tools refactored to use get_credentials().

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions