Skip to content

Add Tracking token #117

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

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

etherealmuse
Copy link

🔗 Linked issue


Description

There is no Authorization token due to which API calls to protected tracking server behind would fail. Therefore, adding MLFLOW_TRACKING_TOKEN that gets set from environment variable.

Added if statement for the variable so you can choose to use without Authorization token if any cases.

    // Add MLflow tracking token if it exists
    if (process.env.MLFLOW_TRACKING_TOKEN) {
        fetchOptions.headers['Authorization'] = `Bearer ${process.env.MLFLOW_TRACKING_TOKEN}`;
    }

Checklist

  • [x ] I've followed the Contributing guidelines

  • [ x] I've titled my PR according to the Conventional Commits spec

  • [x ] I've linked an open issue

  • I've added tests that fail without this PR but pass with it

  • I've linted and tested my code

  • [x ] I've updated documentation (if appropriate)

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