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

Adding a tag doesn't seem to require API key authorization #747

Closed
palto42 opened this issue Dec 27, 2023 · 4 comments
Closed

Adding a tag doesn't seem to require API key authorization #747

palto42 opened this issue Dec 27, 2023 · 4 comments

Comments

@palto42
Copy link

palto42 commented Dec 27, 2023

I found that I can add a tag without providing an API key or with wrong API key.

In my view tagging should also be protected with the API key like upload or delete actions.

@fliiiix
Copy link
Member

fliiiix commented Dec 27, 2023

Why? adding tags is not destructive

@palto42
Copy link
Author

palto42 commented Dec 27, 2023

Agree that it's not directly destructive, but it could still have a significant impact if a tag is changed incorrectly.

As an example, the tag may be used in pipelines to deploy the latest version of a code.
Even for manual usage it could mislead the user if a wrong tag is applied.

Not big issue for me, but I was surprised that it worked w/o API key.

@fliiiix
Copy link
Member

fliiiix commented Dec 27, 2023

Also your assumption that you need a token to upload is wrong https://github.com/docat-org/docat/blob/main/docat/docat/app.py#L227 only the destructive action of overriding a existing version requires the token

this was a deliberate decision to make the usage as simple as possible but less secure

im closing this for now, maybe this is something that could be configurable - but its more code and complexity

@fliiiix fliiiix closed this as completed Dec 27, 2023
@palto42
Copy link
Author

palto42 commented Dec 27, 2023

Thanks for the clarification.

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

No branches or pull requests

2 participants