Add interactive configuration wizard for lakeFS setup#10105
Draft
Add interactive configuration wizard for lakeFS setup#10105
Conversation
Implements a new `lakefs configure` command that provides an interactive wizard for generating lakeFS configuration files, similar to the existing `lakectl config` command but tailored for the full lakeFS server configuration. Features: - Basic and Advanced configuration modes - Conditional prompts based on selections: - Database type: PostgreSQL, Local, DynamoDB, CosmosDB - Blockstore type: S3, GCS, Azure, Local - Automatic secure secret key generation (256-bit) - Input validation for URLs, paths, addresses, connection strings - User-friendly formatting with banners and warnings - Support for custom output path via --output flag The command guides users through: 1. Listen address configuration 2. Database connection setup 3. Object storage backend configuration 4. Security secrets (auth encryption and signing keys) 5. Advanced options: logging, TLS, S3 gateway, stats https://claude.ai/code/session_01D37w8ZRwvWzpcgBBWUpwHL
This update significantly improves the interactive lakeFS configuration experience with the following enhancements: Load existing configuration: - Automatically loads existing config from output path or --config flag - Uses loaded values as defaults in all prompts - Detects and respects already-configured sections Category-based navigation: - Main menu organized into Required and Optional sections - Status indicators: [REQUIRED], [configured], [optional] - Users can navigate between categories in any order - Skip sections they don't need to configure Mandatory field validation: - Tracks configuration status for each category - Prevents saving until all required sections are configured - Lists missing required sections when save is attempted - Detects invalid default secrets and marks security as unconfigured Additional features: - Configuration review screen showing all settings - Sensitive data masking in review (passwords, secrets) - Cancel confirmation to prevent accidental data loss - --config flag to load from a specific input file Renamed command from 'configure' to 'config' to align with lakectl. https://claude.ai/code/session_01D37w8ZRwvWzpcgBBWUpwHL
Remove Unicode box-drawing characters and replace with plain ASCII: - Welcome banner now uses simple text with === underlines - Section headers use --- instead of Unicode dashes - Warning and notice messages use plain text - Configuration review uses simple === separators This improves compatibility across different terminals and fonts. https://claude.ai/code/session_01D37w8ZRwvWzpcgBBWUpwHL
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Description
New Feature
This PR introduces an interactive configuration wizard (
lakefs configcommand) that guides users through setting up lakeFS with a step-by-step prompt-based interface.Key Features:
Interactive Menu System: Users navigate through configuration categories with a clear status indicator system:
[REQUIRED]- Must be configured before saving[configured]- Already configured (can be modified)[optional]- Optional settings (can be skipped)Comprehensive Configuration Coverage:
Smart Features:
User Experience:
Command Usage:
Testing Details
The implementation includes:
Breaking Change?
No breaking changes. This is a new optional command that doesn't affect existing functionality.