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

Add descriptions to all configuration variables #702

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

vishwamartur
Copy link

@vishwamartur vishwamartur commented Nov 17, 2024

Related to #40

Add descriptions to missing configuration variables in opal-common, opal-client, and opal-server configuration files.

  • opal-common/config.py:

    • Add descriptions to LOG_FORMAT_INCLUDE_PID, FETCH_PROVIDER_MODULES, FETCHING_WORKER_COUNT, FETCHING_CALLBACK_TIMEOUT, FETCHING_ENQUEUE_TIMEOUT, GIT_SSH_KEY_FILE, AUTH_PUBLIC_KEY_FORMAT, AUTH_PUBLIC_KEY, AUTH_JWT_AUDIENCE, AUTH_JWT_ISSUER, ENABLE_METRICS.
  • opal-client/config.py:

    • Add descriptions to POLICY_STORE_TYPE, POLICY_STORE_URL, POLICY_STORE_AUTH_TYPE, POLICY_STORE_AUTH_TOKEN, POLICY_STORE_AUTH_OAUTH_SERVER, POLICY_STORE_AUTH_OAUTH_CLIENT_ID, POLICY_STORE_AUTH_OAUTH_CLIENT_SECRET, POLICY_STORE_CONN_RETRY, POLICY_UPDATER_CONN_RETRY, DATA_STORE_CONN_RETRY, DATA_UPDATER_CONN_RETRY, POLICY_STORE_POLICY_PATHS_TO_IGNORE, POLICY_STORE_TLS_CLIENT_CERT, POLICY_STORE_TLS_CLIENT_KEY, POLICY_STORE_TLS_CA, EXCLUDE_POLICY_STORE_SECRETS, INLINE_OPA_ENABLED, INLINE_OPA_CONFIG, INLINE_OPA_LOG_FORMAT, INLINE_CEDAR_ENABLED, INLINE_CEDAR_CONFIG, INLINE_CEDAR_LOG_FORMAT, KEEP_ALIVE_INTERVAL, SERVER_URL, SERVER_WS_URL, SERVER_PUBSUB_URL, CLIENT_TOKEN, POLICY_SUBSCRIPTION_DIRS, DATA_UPDATER_ENABLED, DEFAULT_UPDATE_CALLBACK, DEFAULT_UPDATE_CALLBACKS, SCOPE_ID.
  • opal-server/config.py:

    • Add descriptions to WS_LOCAL_URL, WS_TOKEN, BROADCAST_URI, BROADCAST_CHANNEL_NAME, BROADCAST_CONN_LOSS_BUGFIX_EXPERIMENT_ENABLED, AUTH_PRIVATE_KEY_FORMAT, AUTH_PRIVATE_KEY_PASSPHRASE, AUTH_PRIVATE_KEY, AUTH_JWKS_URL, AUTH_JWKS_STATIC_DIR, AUTH_MASTER_TOKEN, POLICY_SOURCE_TYPE, POLICY_REPO_REUSE_CLONE_PATH, POLICY_REPO_MAIN_BRANCH, POLICY_REPO_SSH_KEY, POLICY_REPO_MANIFEST_PATH, POLICY_REPO_CLONE_TIMEOUT, LEADER_LOCK_FILE_PATH, POLICY_BUNDLE_SERVER_TYPE, REPO_WATCHER_ENABLED, PUBLISHER_ENABLED, BROADCAST_KEEPALIVE_INTERVAL, ALL_DATA_TOPIC, ALL_DATA_ROUTE, ALL_DATA_URL, POLICY_REPO_WEBHOOK_SECRET, POLICY_REPO_WEBHOOK_ENFORCE_BRANCH, POLICY_REPO_WEBHOOK_PARAMS, POLICY_REPO_POLLING_INTERVAL, ALLOWED_ORIGINS, FILTER_FILE_EXTENSIONS, BUNDLE_IGNORE, NO_RPC_LOGS, SERVER_WORKER_COUNT, ENABLE_DATADOG_APM, SCOPES, SCOPES_REPO_CLONES_SHARDS, REDIS_URL, BASE_DIR.
  • Add a test in opal-common/tests/test_config.py to check for missing descriptions in configuration variables.

/claim #40

Related to permitio#40

Add descriptions to missing configuration variables in `opal-common`, `opal-client`, and `opal-server` configuration files.

* **opal-common/config.py**:
  - Add descriptions to `LOG_FORMAT_INCLUDE_PID`, `FETCH_PROVIDER_MODULES`, `FETCHING_WORKER_COUNT`, `FETCHING_CALLBACK_TIMEOUT`, `FETCHING_ENQUEUE_TIMEOUT`, `GIT_SSH_KEY_FILE`, `AUTH_PUBLIC_KEY_FORMAT`, `AUTH_PUBLIC_KEY`, `AUTH_JWT_AUDIENCE`, `AUTH_JWT_ISSUER`, `ENABLE_METRICS`.

* **opal-client/config.py**:
  - Add descriptions to `POLICY_STORE_TYPE`, `POLICY_STORE_URL`, `POLICY_STORE_AUTH_TYPE`, `POLICY_STORE_AUTH_TOKEN`, `POLICY_STORE_AUTH_OAUTH_SERVER`, `POLICY_STORE_AUTH_OAUTH_CLIENT_ID`, `POLICY_STORE_AUTH_OAUTH_CLIENT_SECRET`, `POLICY_STORE_CONN_RETRY`, `POLICY_UPDATER_CONN_RETRY`, `DATA_STORE_CONN_RETRY`, `DATA_UPDATER_CONN_RETRY`, `POLICY_STORE_POLICY_PATHS_TO_IGNORE`, `POLICY_STORE_TLS_CLIENT_CERT`, `POLICY_STORE_TLS_CLIENT_KEY`, `POLICY_STORE_TLS_CA`, `EXCLUDE_POLICY_STORE_SECRETS`, `INLINE_OPA_ENABLED`, `INLINE_OPA_CONFIG`, `INLINE_OPA_LOG_FORMAT`, `INLINE_CEDAR_ENABLED`, `INLINE_CEDAR_CONFIG`, `INLINE_CEDAR_LOG_FORMAT`, `KEEP_ALIVE_INTERVAL`, `SERVER_URL`, `SERVER_WS_URL`, `SERVER_PUBSUB_URL`, `CLIENT_TOKEN`, `POLICY_SUBSCRIPTION_DIRS`, `DATA_UPDATER_ENABLED`, `DEFAULT_UPDATE_CALLBACK`, `DEFAULT_UPDATE_CALLBACKS`, `SCOPE_ID`.

* **opal-server/config.py**:
  - Add descriptions to `WS_LOCAL_URL`, `WS_TOKEN`, `BROADCAST_URI`, `BROADCAST_CHANNEL_NAME`, `BROADCAST_CONN_LOSS_BUGFIX_EXPERIMENT_ENABLED`, `AUTH_PRIVATE_KEY_FORMAT`, `AUTH_PRIVATE_KEY_PASSPHRASE`, `AUTH_PRIVATE_KEY`, `AUTH_JWKS_URL`, `AUTH_JWKS_STATIC_DIR`, `AUTH_MASTER_TOKEN`, `POLICY_SOURCE_TYPE`, `POLICY_REPO_REUSE_CLONE_PATH`, `POLICY_REPO_MAIN_BRANCH`, `POLICY_REPO_SSH_KEY`, `POLICY_REPO_MANIFEST_PATH`, `POLICY_REPO_CLONE_TIMEOUT`, `LEADER_LOCK_FILE_PATH`, `POLICY_BUNDLE_SERVER_TYPE`, `REPO_WATCHER_ENABLED`, `PUBLISHER_ENABLED`, `BROADCAST_KEEPALIVE_INTERVAL`, `ALL_DATA_TOPIC`, `ALL_DATA_ROUTE`, `ALL_DATA_URL`, `POLICY_REPO_WEBHOOK_SECRET`, `POLICY_REPO_WEBHOOK_ENFORCE_BRANCH`, `POLICY_REPO_WEBHOOK_PARAMS`, `POLICY_REPO_POLLING_INTERVAL`, `ALLOWED_ORIGINS`, `FILTER_FILE_EXTENSIONS`, `BUNDLE_IGNORE`, `NO_RPC_LOGS`, `SERVER_WORKER_COUNT`, `ENABLE_DATADOG_APM`, `SCOPES`, `SCOPES_REPO_CLONES_SHARDS`, `REDIS_URL`, `BASE_DIR`.

* Add a test in `opal-common/tests/test_config.py` to check for missing descriptions in configuration variables.
Copy link

netlify bot commented Nov 17, 2024

Deploy Preview for opal-docs ready!

Name Link
🔨 Latest commit 9e42674
🔍 Latest deploy log https://app.netlify.com/sites/opal-docs/deploys/673b3c6191609b0008e5e43f
😎 Deploy Preview https://deploy-preview-702--opal-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

algora-pbc bot commented Nov 17, 2024

💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe.

* **opal-server/config.py**
  - Add example to `FILTER_FILE_EXTENSIONS` description

* **opal-common/tests/test_config.py**
  - Convert tests to use pytest
  - Add tests to check for missing descriptions in configuration variables
  - Cover `opal_common_config`, `opal_client_config`, and `opal_server_config`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants