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

Completing helm charts + Basic Auth for server #47

Merged
merged 25 commits into from
Aug 13, 2019
Merged

Completing helm charts + Basic Auth for server #47

merged 25 commits into from
Aug 13, 2019

Conversation

JamesMurkin
Copy link
Contributor

@JamesMurkin JamesMurkin commented Aug 7, 2019

We should replace Basic Auth pretty soon with some cert based authentication.

For now this was quick and works and should set the groundwork for any other auth system we use (i.e passing in secrets file, reading secrets file etc).

We just want something quick to prevent unknown people using our system while it is deployed in AWS

I have added a service account that has no rolebindings etc as this is better practice than using the "default" serviceaccount

Some people may add lots of permissions to their default serviceaccount and this application doesn't need any.
So this gives us more control, making sure it has the permissions we want it to (no kubernetes access)
 - Removed "executor" top level from values.yaml as typically you don't wrap everything in a top level
 - Changed the chart name from executor to armada-executor
Accidentally armada-executor is being tagged as the armada component

Therefore we never publish component and publish the armada-executor component twice
It seemed like a good idea to have all images from the same branch have the same name. It saved space

However kubernetes caches images based on name, meaning if the images have the same name (tag) then it is annoying to get kubernetes to load the newest image

The SHA means all branch images are unique, so it is easy to know which tag you are pulling exactly

We'll just add stricter cleanup for branch images in our repository
…netes

Specifying port to expose on pod
 - This was accidentally omitted, meaning the pod never exposed any port
Specifying TLS path + ingress details in ingress.yaml
 - NGINX only supports GRPC with TLS enabled currently. It will terminate the TLS for us however
This is to prevent just anyone being able to access the service and uses Basic Auth to valid users.
 - Using a really crude implementation with in-memory map of users.
 - The thought is we'll replace this with tokens and never use this implementation in prod, this is just to secure it more on AWS for now
 - Lays the "groundwork" for proper auth, with authentication structure in place (interceptors etc)
Now the api expects basic auth (when enabled) the executor component has been updated to be able to provide basic auth in its requests
Now if you supply a username/password, we'll armadactl will contact the api with TLS enabled + basic auth.

Otherwise it'll continue to use plain connection with no auth details.

Swapped to using viper for all variables, to be more consistent with "normal" and our other components

Loading config from files now, when provided (default is $HOME/.armadactl.yaml
This allows you to set the users, which is an unexposed field, by using this "constructor" func
…name

This is to make it consistent with the related definition executor.config.name
…t fixes handshake issues

In theory we are not using a cert for either, so I would expect the same result but they appear to use different code paths
@JamesMurkin JamesMurkin changed the title Adding helm chart for armada component + minor tweaks to armada-executor chart Completing helm charts + Basic Auth for server Aug 13, 2019
@JamesMurkin JamesMurkin merged commit 62657c7 into master Aug 13, 2019
@JamesMurkin JamesMurkin deleted the helm branch August 13, 2019 12:48
svc-gh-ghzonetrans-p pushed a commit that referenced this pull request Dec 29, 2023
…37) (#47)

* Adding routing to jobs page w/filters from JOB SETS page. Refactoring to make linter happy

* Correcting parameter type

Signed-off-by: Mustafa Ilyas <mustafa.ilyas@gresearch.co.uk>
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