Skip to content

Conversation

@jstirnaman
Copy link
Contributor

@jstirnaman jstirnaman commented Jan 20, 2026

Summary

This PR updates InfluxDB 3 Core and Enterprise documentation to better support Docker Compose deployments and CI/CD workflows with preconfigured admin tokens.

Token Format Verification

Both Core and Enterprise tokens are in the correct JSON format:

{
  "token": "apiv3_...",
  "name": "admin",
  "description": "Admin token for InfluxDB 3 Core/Enterprise"
}

Docker Secrets Verification

Both services correctly mount tokens as Docker secrets:

  • Core: /run/secrets/influxdb3-core-token
  • Enterprise: /run/secrets/influxdb3-enterprise-admin-token

Changes

1. Updated Offline Admin Token Schema

File: content/shared/influxdb3-admin/tokens/admin/preconfigured.md

  • Added description field as an optional field alongside expiry_millis
  • Both fields are optional and supported by the InfluxDB 3 server
  • Updated example to show both fields

2. Added Docker Compose Setup Documentation

File: content/shared/influxdb3-get-started/setup.md

New expandable section: "Docker Compose with preconfigured admin tokens"

  • Instructions for creating admin token JSON files
  • Docker Compose configuration using Docker secrets for secure token management
  • CI/CD setup instructions using environment variables
  • Security benefits of Docker secrets over bind mounts

Rationale

Token File Format Flexibility

The InfluxDB 3 server accepts offline token files with either:

  • expiry_millis (generated by CLI --offline option)
  • description (manually created for documentation/reference)
  • Both fields (comprehensive setup)

Docker Secrets Benefits

  • Secrets stored encrypted in memory
  • Not visible in docker inspect output
  • Not exposed in environment variables or logs
  • Follows Docker and Kubernetes best practices

CI/CD Support

Enables automated deployments by:

  • Creating token files from environment variables
  • Using secure secret injection
  • Supporting both local development and CI/CD pipelines

Related

- Add 'description' field to offline admin token schema alongside 'expiry_millis'
- Add new section for Docker Compose with preconfigured admin tokens
- Document Docker secrets for secure token management
- Add CI/CD setup instructions using environment variables
- Standardize on INFLUXDB3_AUTH_TOKEN environment variable

Both 'description' and 'expiry_millis' are optional fields supported
by the InfluxDB 3 server when reading preconfigured token files.
@jstirnaman jstirnaman requested review from a team as code owners January 20, 2026 22:44
@jstirnaman jstirnaman requested review from sanderson and removed request for a team January 20, 2026 22:44
@github-actions
Copy link
Contributor

PR Preview Action v1.4.8
🚀 Deployed preview to https://influxdata.github.io/docs-v2/pr-preview/pr-6756/
on branch gh-pages at 2026-01-20 22:46 UTC

@jstirnaman jstirnaman removed request for a team and sanderson January 20, 2026 22:47
@jstirnaman jstirnaman merged commit 5c786ac into improve-test-setup Jan 20, 2026
6 checks passed
@jstirnaman jstirnaman deleted the update-influxdb3-token-docs branch January 20, 2026 22:49
github-actions bot added a commit that referenced this pull request Jan 20, 2026
@jstirnaman jstirnaman restored the update-influxdb3-token-docs branch January 20, 2026 22:55
jstirnaman added a commit that referenced this pull request Jan 20, 2026
…es (#6750)

* test(influxdb3): Improve InfluxDB 3 Core and Enterprise Docker services

Improve Docker Compose services and initialization script for testing InfluxDB 3 Core and Enterprise endpoints.

compose.yaml changes:
- Add influxdb3-core service with per-worktree data isolation
- Add influxdb3-core-noauth service for endpoint testing without auth
- Add influxdb3-enterprise service with trial license configuration
- Fix env_file handling (use optional path, remove variable override)
- Add detailed usage comments for each service

New files:
- test/scripts/init-influxdb3.sh: Helper script to initialize services,
  create directories, and validate configuration

- Enterprise configuration uses shared data at ~/influxdata-docs/.influxdb3/
to persist license and data across worktrees.

- .claude/skills/influxdb3-test-setup/SKILL.md. It covers:

  1. Architecture overview - Shows the directory structure for shared vs per-worktree data
  2. Quick reference - Common commands table
  3. Setup workflows - Core only, Enterprise only, or both
  4. Worktree-specific databases - How to create isolated databases named after the worktree
  5. Test environment configuration - Setting up .env.test files for code block tests
  6. Troubleshooting - Common issues (license, auth, ports)
  7. Service comparison - Core vs Enterprise differences

  The skill references the init script but keeps database creation as a separate workflow step, allowing flexibility for different testing scenarios.

* docs(copilot): Document influxdb3-test-setup skill in Copilot instructions (#6751)

* Initial plan

* docs(copilot): Add influxdb3-test-setup skill documentation to instructions

- Add InfluxDB 3 Test Setup subsection under Testing section with quick reference commands
- Add Skills section under Specialized Instructions with all available skills
- Document influxdb3-test-setup skill alongside existing skills (cypress-e2e-testing, docs-cli-workflow, hugo-template-dev)
- Include links to skill files and brief descriptions for discoverability

Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com>

* chore(ci): Refactor InfluxDB 3 token handling to use JSON secrets

- Store Core and Enterprise tokens as JSON files with metadata
- Update SKILL.md instructions for jq-based token extraction
- Use Docker secrets for secure token mounting in compose.yaml
- Update init-influxdb3.sh to generate JSON token files
- Refactor compose.yaml to mount token files as secrets, not binds
- Standardize API examples and environment setup for new token format

* docs(influxdb3): Update token documentation for Docker Compose and CI/CD (#6756)

- Add 'description' field to offline admin token schema alongside 'expiry_millis'
- Add new section for Docker Compose with preconfigured admin tokens
- Document Docker secrets for secure token management
- Add CI/CD setup instructions using environment variables
- Standardize on INFLUXDB3_AUTH_TOKEN environment variable

Both 'description' and 'expiry_millis' are optional fields supported
by the InfluxDB 3 server when reading preconfigured token files.

* Revert "docs(influxdb3): Update token documentation for Docker Compose and CI…" (#6757)

This reverts commit 5c786ac.

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants