Skip to content

Commit 2cbc9e5

Browse files
committed
Revert users.conf to original example configuration
- Remove integration test user configuration - Restore original example comments and configuration - Prepare for production use
1 parent b4f7f1a commit 2cbc9e5

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

users.conf

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
#!/bin/bash
2-
# Integration test configuration
2+
3+
# SSH Key Sync Configuration File
4+
# This file defines which users should have their SSH keys synchronized and from where.
5+
6+
# GitHub token for accessing private repositories (optional)
7+
# You can also set this as an environment variable: export GITHUB_TOKEN="your_token_here"
8+
#CONF_GITHUB_TOKEN="your_github_token_here"
9+
10+
# User SSH key configuration
11+
# Format: ["username"]="method:source"
12+
#
13+
# Available methods:
14+
# raw: Fetch from a public URL (e.g., raw GitHub file)
15+
# api: Fetch from GitHub API (requires GITHUB_TOKEN for private repos)
16+
# ghuser: Fetch public keys from a GitHub user's profile
17+
#
18+
# Examples:
319
declare -A USER_KEYS=(
4-
# Use a real GitHub user with known public keys for integration testing
5-
["testintegration"]="ghuser:locus313"
20+
# Fetch keys from a public URL
21+
#["ubuntu"]="raw:https://example.com/ssh-keys/ubuntu.authorized_keys"
22+
23+
# Fetch keys from a private GitHub repository using API
24+
#["devuser"]="api:https://api.github.com/repos/yourorg/ssh-keys/contents/keys/devuser.authorized_keys?ref=main"
25+
26+
# Fetch public keys from a GitHub user's profile
27+
#["alice"]="ghuser:alice-github-username"
628
)

0 commit comments

Comments
 (0)