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 .well-known/diracx-metadata #137

Closed
chrisburr opened this issue Oct 12, 2023 · 0 comments · Fixed by #153
Closed

Add .well-known/diracx-metadata #137

chrisburr opened this issue Oct 12, 2023 · 0 comments · Fixed by #153
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@chrisburr
Copy link
Member

chrisburr commented Oct 12, 2023

For the new CLI and webapp it would be useful to have a metadata route to expose information like:

{
    "virtual_organisations": {
        "gridpp": {
            "groups": {
                "gridpp_user": {
                    "properties": ["NormalUser"]
                },
                "gridpp_admin": {
                    "properties": ["NormalUser", "JobAdmin"]
                }
            },
            "support_message": "For support ask the guinea pigs via snail mail.",
            "default_group": "user"
        }
    },
    # The rest of these sections are ideas for future enchantements
    "request_proxies": [],
    "available_routers": {
        "auth": {
            "enabled": true,
            "info": null,
        },
        "jobs": {
            "enables": false,
            "info": "Jobs are currently unavailable due to us having got distracted by"
        }
    }
}

Plan of work

  1. Add a new route to the well-known router
  2. Modify the Config model to include support metadata (helpdesk mail, mattermost channel, etc)
  3. Modify the legacy CS exporter to add the support metadata (in the VO section of the current CS, or in the DiracX section of the current CS, or in the conversion script yaml config)
  4. Make the CLI automatically suggest the available VOs if a valid one isn’t given when logging in
  5. Make the CLI show the support URL if something goes wrong
@chrisburr chrisburr added good first issue Good for newcomers help wanted Extra attention is needed labels Oct 12, 2023
@chrisburr chrisburr moved this to Done in DiracX v0.1.0 Oct 26, 2023
@chrisburr chrisburr linked a pull request Oct 26, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants