Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Lowercase usernames in github-event #595

Open
Waterdrips opened this issue Feb 25, 2020 · 2 comments
Open

Lowercase usernames in github-event #595

Waterdrips opened this issue Feb 25, 2020 · 2 comments

Comments

@Waterdrips
Copy link
Contributor

There are places where uppercase usernames cause issues (register-image in the ECR code, as one example)

It would be good to lowercase this as far up the chain as possible so we dont need to remember to do it downstream everywhere, as we might miss those or they might get removed by accident.

Expected Behaviour

github-event lowercases the event's owner

Current Behaviour

its done downstream in the various services.

Possible Solution

github-event lowercases the event's owner

@amalkh5
Copy link

amalkh5 commented Apr 27, 2020

@Waterdrips do you mean that ToLower method should be used here event.Installation.Account.Login https://github.com/openfaas/openfaas-cloud/blob/master/github-event/handler.go#L201 ?

@Waterdrips
Copy link
Contributor Author

This would probably require a thorough look through the OFC code to work out where all of the usernames are, and which ones should be upper and lower, possibly look at a move to using the github user ID, but this would have much wider impact. (#314)

Currently there is nothing we are aware of that's broken due to this so its low priority.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants