Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add config command that displays local or remote config #1845

Merged
merged 3 commits into from
Mar 28, 2024

Conversation

Nexucis
Copy link
Member

@Nexucis Nexucis commented Mar 19, 2024

I'm adding a new cmd in the CLI:

percli config

It will display the local config or the server config if the flag --online is used.

That might be useful when filling an issue and you want to provide the config in the correct format without leaking the secret.

  1. offline cmd
percli config
rest_client_config:
    url: http://localhost:8080
    authorization:
        type: Bearer
        credentials: <secret>
    tlsConfig:
        insecureSkipVerify: false
refresh_token: <secret>
dac:
    output_folder: built
  1. online cmd
percli config --online --output=yaml
security:
    readonly: false
    encryption_key: <secret>
    enable_auth: true
    authorization:
        check_latest_update_interval: 30s
        guest_permissions:
            - actions:
                - read
              scopes:
                - '*'
            - actions:
                - create
              scopes:
                - Project
    authentication:
        access_token_ttl: 15m
        refresh_token_ttl: 1d
        disable_sign_up: false
        providers:
            enable_native: true
database:
    file:
        folder: dev/local_db
        extension: json
        case_sensitive: false
schemas:
    panels_path: cue/schemas/panels
    queries_path: cue/schemas/queries
    datasources_path: cue/schemas/datasources
    variables_path: cue/schemas/variables
    interval: 5m
important_dashboards:
    - project: perses
      dashboard: Demo
    - project: testing
      dashboard: DuplicatePanels
    - project: Unknown
      dashboard: Dashboard
information: |-
    # Hello World
    ## File Database setup
provisioning:
    folders:
        - dev/data
    interval: 1h
deactivate_front: false
ephemeral_dashboards_cleanup_interval: 1h

Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
Signed-off-by: Augustin Husson <husson.augustin@gmail.com>
@Nexucis Nexucis added this pull request to the merge queue Mar 28, 2024
Merged via the queue into main with commit 926878b Mar 28, 2024
19 checks passed
@Nexucis Nexucis deleted the nexucis/add-config-cmf branch March 28, 2024 14:23
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.

None yet

2 participants