Avoiding users manually connecting/linking individual services you provide to an SSO/Identity provider?
Like how creating an account with Google gives you implicit access to all their existing services, but in this case, you host some third-party(ones you don't develop in-house) services such as a wiki or forum software, but keep that same seamless login experience?
Provided the third-party service supports external auth(eg OpenID Connect, Google/Facebook or self-hosted provider like Keycloak), can you have your own centralized auth.mydomain.com, and not have a new user visit each hosted service being prompted to select/consent an SSO provider?
I understand that once each service has been connected to an SSO provider for the user, they would from then on have the seamless SSO experience, but it'd be nice to take away that initial sign-up friction/fatigue experience so that it appears to be a first-party cohesive experience through all the services available to the user.
I'm having difficulty with what the terminology for this flow is, or if it's actually possible for services that offer generic OIDC or LDAP support. Grafana has this [Auth Proxy](https://grafana.com/docs/auth/auth-proxy/), but this kind of thing seems uncommon, and the term "Auth Proxy" can [mean different things](https://github.com/discourse/discourse-auth-proxy).
https://redd.it/e1dsyn
@r_devops
Like how creating an account with Google gives you implicit access to all their existing services, but in this case, you host some third-party(ones you don't develop in-house) services such as a wiki or forum software, but keep that same seamless login experience?
Provided the third-party service supports external auth(eg OpenID Connect, Google/Facebook or self-hosted provider like Keycloak), can you have your own centralized auth.mydomain.com, and not have a new user visit each hosted service being prompted to select/consent an SSO provider?
I understand that once each service has been connected to an SSO provider for the user, they would from then on have the seamless SSO experience, but it'd be nice to take away that initial sign-up friction/fatigue experience so that it appears to be a first-party cohesive experience through all the services available to the user.
I'm having difficulty with what the terminology for this flow is, or if it's actually possible for services that offer generic OIDC or LDAP support. Grafana has this [Auth Proxy](https://grafana.com/docs/auth/auth-proxy/), but this kind of thing seems uncommon, and the term "Auth Proxy" can [mean different things](https://github.com/discourse/discourse-auth-proxy).
https://redd.it/e1dsyn
@r_devops
Grafana Labs
Configure auth proxy authentication | Grafana documentation
Grafana Auth Proxy Guide
running logstash as service
I run logstash this way :
>/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf --debug
But If I run as a service like this :
>initctl start logstash
do I still need to pass config file path here or config file path will be picked up by service automatically ?
https://redd.it/e1fzu7
@r_devops
I run logstash this way :
>/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf --debug
But If I run as a service like this :
>initctl start logstash
do I still need to pass config file path here or config file path will be picked up by service automatically ?
https://redd.it/e1fzu7
@r_devops
reddit
running logstash as service
I run logstash this way : >/usr/share/logstash/bin/logstash -f /etc/logstash/conf.d/logstash.conf --debug But If I run as a service like this :...
Code Management
Let me preface this by saying i'm not a developer, and never have been or will be, sure i script but nothing more complex than that.
Issue i have with our setup at work, is the development team use local disk to store code, and only checkin code when it's complete and ready to deploy. Personally i thought you checkin at regular intervals, then trigger a build when you're ready to deploy but admit i don't get the whole pipeline thing of code deployment.
Can anyone advise if i'm way off beam expecting regular checkins to a TFS or similar code management server?, seems that way if you lose a piece of hardware via clumsyness or hardware failure, you don't lose all your work, or is this the wrong way to look at this?
Problem is we in infrastructure are having to figure out a way to make sure they don't lose code if there is a hardware failure, and it also hampers our desire to move to VDI type solutions for developers as they would be non or semi persistent desktops only.
Not wanting to bash the dev team, just can't understand why a checkin triggers a build, can you not use tags or something similar to checkin partially completed code?
TIA
https://redd.it/e1goyi
@r_devops
Let me preface this by saying i'm not a developer, and never have been or will be, sure i script but nothing more complex than that.
Issue i have with our setup at work, is the development team use local disk to store code, and only checkin code when it's complete and ready to deploy. Personally i thought you checkin at regular intervals, then trigger a build when you're ready to deploy but admit i don't get the whole pipeline thing of code deployment.
Can anyone advise if i'm way off beam expecting regular checkins to a TFS or similar code management server?, seems that way if you lose a piece of hardware via clumsyness or hardware failure, you don't lose all your work, or is this the wrong way to look at this?
Problem is we in infrastructure are having to figure out a way to make sure they don't lose code if there is a hardware failure, and it also hampers our desire to move to VDI type solutions for developers as they would be non or semi persistent desktops only.
Not wanting to bash the dev team, just can't understand why a checkin triggers a build, can you not use tags or something similar to checkin partially completed code?
TIA
https://redd.it/e1goyi
@r_devops
reddit
Code Management
Let me preface this by saying i'm not a developer, and never have been or will be, sure i script but nothing more complex than that. Issue i have...
Let a 1,000 flowers bloom. Then rip 999 of them out by the roots.
Thought this article (from 2015) about engineering effectiveness and scale was worth reading: [https://www.gigamonkeys.com/flowers/](https://www.gigamonkeys.com/flowers/)
In particular I liked the equations for thinking about this problem, even if the author acknowledges he's just spitballing for the key values.
https://redd.it/e1ifo9
@r_devops
Thought this article (from 2015) about engineering effectiveness and scale was worth reading: [https://www.gigamonkeys.com/flowers/](https://www.gigamonkeys.com/flowers/)
In particular I liked the equations for thinking about this problem, even if the author acknowledges he's just spitballing for the key values.
https://redd.it/e1ifo9
@r_devops
reddit
Let a 1,000 flowers bloom. Then rip 999 of them out by the roots.
Thought this article (from 2015) about engineering effectiveness and scale was worth reading:...
Full Infrastructure as Code with Terraform, Ansible and Docker Swarm
It's been 2 years that my team use Docker Swarm in production and for development. Throughout these years, I used Ansible and bash scripts to automate development environment creation and production provisioning and deployment.
I am really sad about the recent Docker news which is a synonym of death for Swarm :( I think it's a really good choice for small deployments and thanks to its shallow learning curve, I think it's a better candidate to spread the DevOps mindset in a team.
Anyway, I wanted to open-source our setup because it's a good DevOps and Infrastructure as Code example, and I hope it will be useful or inspiring for some teams.
[https://github.com/Thomvaill/tads-boilerplate](https://github.com/Thomvaill/tads-boilerplate)
It's my first open-source project, so your feedback will be really appreciated!!
https://redd.it/e1frg5
@r_devops
It's been 2 years that my team use Docker Swarm in production and for development. Throughout these years, I used Ansible and bash scripts to automate development environment creation and production provisioning and deployment.
I am really sad about the recent Docker news which is a synonym of death for Swarm :( I think it's a really good choice for small deployments and thanks to its shallow learning curve, I think it's a better candidate to spread the DevOps mindset in a team.
Anyway, I wanted to open-source our setup because it's a good DevOps and Infrastructure as Code example, and I hope it will be useful or inspiring for some teams.
[https://github.com/Thomvaill/tads-boilerplate](https://github.com/Thomvaill/tads-boilerplate)
It's my first open-source project, so your feedback will be really appreciated!!
https://redd.it/e1frg5
@r_devops
GitHub
GitHub - thomvaill/tads-boilerplate: Terraform + Ansible + Docker Swarm boilerplate = DevOps on :fire::fire::fire: | Infrastructure…
Terraform + Ansible + Docker Swarm boilerplate = DevOps on :fire::fire::fire: | Infrastructure as Code - thomvaill/tads-boilerplate
Project Layout: Import existing AWS infra into terraform project.
This is one of those questions that i'm sure will bring some highly different, for good reasons, thorough, though not incorrect responses and that is what I'm looking for.
I have an existing AWS account with a production, staging, and demo VPCs. I had built all of these servers in scala using the aws-jdk, now i'd like to move to terraform. There are only about 40 ec2 instances across all vpcs. My question is how do you prefer to layout a project like this. There are actually two more vpc's for failover but trying to keep this question simple. I used [terraforming](https://github.com/dtan4/terraforming) to export all aws resources. I was thinking about this sort of structure ([https://aws.amazon.com/blogs/apn/terraform-beyond-the-basics-with-aws/](https://aws.amazon.com/blogs/apn/terraform-beyond-the-basics-with-aws/)) but with vpc based data at a level higher.
I've read quite a bit about terraform, see its elegance, tested a few simple build outs, but migration i would like to get this right the first (or 4th) time. If anyone has any good reading that you may like and/or an ideal/preferred structure, to get me rolling, i would greatly appreciate it.
The software/network installs are all managed via saltstack. With native apps running and some in docker, but don't think that should matter for this.
Thanks in advance!
https://redd.it/e1nr6a
@r_devops
This is one of those questions that i'm sure will bring some highly different, for good reasons, thorough, though not incorrect responses and that is what I'm looking for.
I have an existing AWS account with a production, staging, and demo VPCs. I had built all of these servers in scala using the aws-jdk, now i'd like to move to terraform. There are only about 40 ec2 instances across all vpcs. My question is how do you prefer to layout a project like this. There are actually two more vpc's for failover but trying to keep this question simple. I used [terraforming](https://github.com/dtan4/terraforming) to export all aws resources. I was thinking about this sort of structure ([https://aws.amazon.com/blogs/apn/terraform-beyond-the-basics-with-aws/](https://aws.amazon.com/blogs/apn/terraform-beyond-the-basics-with-aws/)) but with vpc based data at a level higher.
I've read quite a bit about terraform, see its elegance, tested a few simple build outs, but migration i would like to get this right the first (or 4th) time. If anyone has any good reading that you may like and/or an ideal/preferred structure, to get me rolling, i would greatly appreciate it.
The software/network installs are all managed via saltstack. With native apps running and some in docker, but don't think that should matter for this.
Thanks in advance!
https://redd.it/e1nr6a
@r_devops
GitHub
GitHub - dtan4/terraforming: Export existing AWS resources to Terraform style (tf, tfstate) / No longer actively maintained
Export existing AWS resources to Terraform style (tf, tfstate) / No longer actively maintained - dtan4/terraforming
Shall I create elastic search index with timestamp ?
How do you specify elasticsearch index name ?
I am adding timestamp in index name in logstash.conf . Is this correct index naming convention ?
output {
hosts => [https://localhost:9200]
index => "application-logs-%{+YYYY.MM.dd}"
}
I am adding {+YYYY.MM.dd} in index name.
Is it correct way of writing index name ?
https://redd.it/e1kcal
@r_devops
How do you specify elasticsearch index name ?
I am adding timestamp in index name in logstash.conf . Is this correct index naming convention ?
output {
hosts => [https://localhost:9200]
index => "application-logs-%{+YYYY.MM.dd}"
}
I am adding {+YYYY.MM.dd} in index name.
Is it correct way of writing index name ?
https://redd.it/e1kcal
@r_devops
reddit
Shall I create elastic search index with timestamp ?
How do you specify elasticsearch index name ? I am adding timestamp in index name in logstash.conf . Is this correct index naming convention...
How does nginx authentication work?
I have Nginx + Kerberos authentication working well. When a user hits the endpoint I can determine remote\_user
proxy\_set\_header REMOTE\_USER $remote\_user;
​
But, I am not sure how to setup authentication in my app.
​
Say, I have allowed users as ("Bob","Tom","Bryan"). How can I check in nginx if $remote\_user is in that set?
Is that how it works?
https://redd.it/e1r0r1
@r_devops
I have Nginx + Kerberos authentication working well. When a user hits the endpoint I can determine remote\_user
proxy\_set\_header REMOTE\_USER $remote\_user;
​
But, I am not sure how to setup authentication in my app.
​
Say, I have allowed users as ("Bob","Tom","Bryan"). How can I check in nginx if $remote\_user is in that set?
Is that how it works?
https://redd.it/e1r0r1
@r_devops
reddit
How does nginx authentication work?
I have Nginx + Kerberos authentication working well. When a user hits the endpoint I can determine remote\_user proxy\_set\_header REMOTE\_USER...
The Why-What-How of AWS EC2 Instance Metadata Service update adding defence in depth
About the recently released update to IMDS and how to enable it - [https://blog.appsecco.com/getting-started-with-version-2-of-aws-ec2-instance-metadata-service-imdsv2-2ad03a1f3650](https://blog.appsecco.com/getting-started-with-version-2-of-aws-ec2-instance-metadata-service-imdsv2-2ad03a1f3650)
https://redd.it/e1rx8t
@r_devops
About the recently released update to IMDS and how to enable it - [https://blog.appsecco.com/getting-started-with-version-2-of-aws-ec2-instance-metadata-service-imdsv2-2ad03a1f3650](https://blog.appsecco.com/getting-started-with-version-2-of-aws-ec2-instance-metadata-service-imdsv2-2ad03a1f3650)
https://redd.it/e1rx8t
@r_devops
Medium
Getting started with Version 2 of AWS EC2 Instance Metadata service (IMDSv2)
TL;DR If you are just interested in how to enable this feature, go to “How do we enable and test this new feature”
Additional Classes running automatically in Git PR
Hello ! When I made a Pull Request in Git , some of Additional classes are running automatically which are not part of commit - And Pull Request is getting failed
https://redd.it/e1swzl
@r_devops
Hello ! When I made a Pull Request in Git , some of Additional classes are running automatically which are not part of commit - And Pull Request is getting failed
https://redd.it/e1swzl
@r_devops
reddit
Additional Classes running automatically in Git PR
Hello ! When I made a Pull Request in Git , some of Additional classes are running automatically which are not part of commit - And Pull Request...
Docker Swarm vs. k8s-SingleHost Implementations - is this something worthwile?
Since docker swarm seems to be getting smaller/on the down/used less, i wanted to know, what you think as single host replacement is worthy for production.
Is minikube or microk8s or k3s a viable alternative if i have only ONE host and want to manage that instead of docker swarm?
https://redd.it/e1v8jr
@r_devops
Since docker swarm seems to be getting smaller/on the down/used less, i wanted to know, what you think as single host replacement is worthy for production.
Is minikube or microk8s or k3s a viable alternative if i have only ONE host and want to manage that instead of docker swarm?
https://redd.it/e1v8jr
@r_devops
reddit
Docker Swarm vs. k8s-SingleHost Implementations - is this...
Since docker swarm seems to be getting smaller/on the down/used less, i wanted to know, what you think as single host replacement is worthy for...
Storage options for a kubernetes home server
https://www.reddit.com/r/homelab/comments/e1pi8h/storage_options_for_a_kubernetes_home_server/
https://redd.it/e1uud7
@r_devops
https://www.reddit.com/r/homelab/comments/e1pi8h/storage_options_for_a_kubernetes_home_server/
https://redd.it/e1uud7
@r_devops
reddit
Storage options for a kubernetes home server
Hey folks, I'm intending to build a kubernetes cluster for my home lab simply for learning purposes, I also would like NAS functionality but...
Managing Resources of multiple team on aws via Terraform
Hey Guys,
Wanted to know if anyone has implemented a gitops like workflow for terraform with aws provider.
What I want to achieve is:
1. Each team has access to a single gitrepo which has common modules and
then team specific folders with team specific modules.
2. Person from team A is supposed to make changes only to his project specific folder and
then create a PR
3. Jenkins will run terraform plan check for error and mark the PR successful.
4. Finally sumone needs to approve the merge request and jenkins will run terraform apply
and create resources on aws.
Not able to figure out how to go abt the hierarchy within the gitrepo.
PS: using opensource version of terraform and jenkins.
https://redd.it/e1yncs
@r_devops
Hey Guys,
Wanted to know if anyone has implemented a gitops like workflow for terraform with aws provider.
What I want to achieve is:
1. Each team has access to a single gitrepo which has common modules and
then team specific folders with team specific modules.
2. Person from team A is supposed to make changes only to his project specific folder and
then create a PR
3. Jenkins will run terraform plan check for error and mark the PR successful.
4. Finally sumone needs to approve the merge request and jenkins will run terraform apply
and create resources on aws.
Not able to figure out how to go abt the hierarchy within the gitrepo.
PS: using opensource version of terraform and jenkins.
https://redd.it/e1yncs
@r_devops
reddit
Managing Resources of multiple team on aws via Terraform
Hey Guys, Wanted to know if anyone has implemented a gitops like workflow for terraform with aws provider. What I want to achieve is: 1. Each...
UDemy Recommendations that are on sale/
Any recommendations for UDemy courses that are on sale now?
https://redd.it/e1n5zi
@r_devops
Any recommendations for UDemy courses that are on sale now?
https://redd.it/e1n5zi
@r_devops
reddit
UDemy Recommendations that are on sale/
Any recommendations for UDemy courses that are on sale now?
Best practices for sharing helm value files
Hi all,
Let me start by saying that I am probably missing something obvious.
I've been playing with helm for 9 months or so and I've built out a helm chart for my companies application. What I am struggling with is enabling the team to collaborate on making changes to deployments for updating image versions and such. We deploy this chart to many environments. Many per cluster, and on multiple clusters. Where I struggle is that we have secrets in the value files and commiting secrets into Git repo's is a no no. I've considered putting the original value files in something like vault, or maybe in a secret in the namespace of the deployment. I've even looked into encrypting and then commiting to Git, but it feels overly complicated. What are other teams doing?
I'll be honest, I haven't done much testing of upgrades to understand the process better, partially just too busy and partially because I've been assuming I need the full original value file to avoid wiping out the original secrets that get deployed.
Thanks in advance for your feedback.
https://redd.it/e1l426
@r_devops
Hi all,
Let me start by saying that I am probably missing something obvious.
I've been playing with helm for 9 months or so and I've built out a helm chart for my companies application. What I am struggling with is enabling the team to collaborate on making changes to deployments for updating image versions and such. We deploy this chart to many environments. Many per cluster, and on multiple clusters. Where I struggle is that we have secrets in the value files and commiting secrets into Git repo's is a no no. I've considered putting the original value files in something like vault, or maybe in a secret in the namespace of the deployment. I've even looked into encrypting and then commiting to Git, but it feels overly complicated. What are other teams doing?
I'll be honest, I haven't done much testing of upgrades to understand the process better, partially just too busy and partially because I've been assuming I need the full original value file to avoid wiping out the original secrets that get deployed.
Thanks in advance for your feedback.
https://redd.it/e1l426
@r_devops
reddit
Best practices for sharing helm value files
Hi all, Let me start by saying that I am probably missing something obvious. I've been playing with helm for 9 months or so and I've built out...
HPE SSD's just die after 32,768 hours of operation
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-a00092491en_us
https://redd.it/e20edo
@r_devops
https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-a00092491en_us
https://redd.it/e20edo
@r_devops
What is the CI/CD tool at Tesla/SpaceX?
I vaguely remember that GitLab had Tesla listed as one of their customers a few months ago but it's not there anymore. In general I'd like to know what CI/CD tools are being used in a place where there are a lot of embedded devices/development.
https://redd.it/e20c9p
@r_devops
I vaguely remember that GitLab had Tesla listed as one of their customers a few months ago but it's not there anymore. In general I'd like to know what CI/CD tools are being used in a place where there are a lot of embedded devices/development.
https://redd.it/e20c9p
@r_devops
reddit
What is the CI/CD tool at Tesla/SpaceX?
I vaguely remember that GitLab had Tesla listed as one of their customers a few months ago but it's not there anymore. In general I'd like to know...
Help with IBM functions
Hey guys,
I have a problem with the return values of IBM Functions using the "Enable as Web Action" HTTP link. There forum is dead and so is their reddit. Was hoping one of you might be able to help me with this problem.
I have an very simple **Python** function that just raises an Exception:
import sys
def main(dict):
raise Exception("Why you do this IBM?")
return { 'message': 'Hello world' }
When invoking the function using the button on the website this is whats shown under "Results": (looks good)
{
"error": "Why you do this IBM?"
}
But when calling the function via HTTP request (using Postman) this is whats returned:
{
"code": "909f88a14c771bc0dd5592d12456f9ec",
"error": "Response is not valid 'application/json'."
}
Second Example using **Node.js** (again throwing a exception):
function main(params) {
throw "Whyyyy IBM?"
return { message: 'Hello World' };
}
When invoking the function using the button on the website this is the result: (looks good):
{
"error": "An error has occurred: Whyyyy IBM?"
}
And again when calling the function via HTTP request (using Postman) this is whats retuned:
{
"code": "8ad0376f32e811a02aa1db14e72bed72",
"error": "There was an error processing your request."
}
How can i get the same return value as when pressing the button using HTTP requests? Thank you
https://redd.it/e21f2h
@r_devops
Hey guys,
I have a problem with the return values of IBM Functions using the "Enable as Web Action" HTTP link. There forum is dead and so is their reddit. Was hoping one of you might be able to help me with this problem.
I have an very simple **Python** function that just raises an Exception:
import sys
def main(dict):
raise Exception("Why you do this IBM?")
return { 'message': 'Hello world' }
When invoking the function using the button on the website this is whats shown under "Results": (looks good)
{
"error": "Why you do this IBM?"
}
But when calling the function via HTTP request (using Postman) this is whats returned:
{
"code": "909f88a14c771bc0dd5592d12456f9ec",
"error": "Response is not valid 'application/json'."
}
Second Example using **Node.js** (again throwing a exception):
function main(params) {
throw "Whyyyy IBM?"
return { message: 'Hello World' };
}
When invoking the function using the button on the website this is the result: (looks good):
{
"error": "An error has occurred: Whyyyy IBM?"
}
And again when calling the function via HTTP request (using Postman) this is whats retuned:
{
"code": "8ad0376f32e811a02aa1db14e72bed72",
"error": "There was an error processing your request."
}
How can i get the same return value as when pressing the button using HTTP requests? Thank you
https://redd.it/e21f2h
@r_devops
reddit
Help with IBM functions
Hey guys, I have a problem with the return values of IBM Functions using the "Enable as Web Action" HTTP link. There forum is dead and so is...
Do you guys have any feedback on this postmortems article?
Hi everyone! My team worked with Steve McGhee from Google on this article about crafting excellent postmortems. Do you have any extra tips/feedback on the article? If you like it, please feel free to share :)
[https://www.blameless.com/improve-postmortem-with-sre-steve-mcghee/](https://www.blameless.com/improve-postmortem-with-sre-steve-mcghee/)
https://redd.it/e24ps3
@r_devops
Hi everyone! My team worked with Steve McGhee from Google on this article about crafting excellent postmortems. Do you have any extra tips/feedback on the article? If you like it, please feel free to share :)
[https://www.blameless.com/improve-postmortem-with-sre-steve-mcghee/](https://www.blameless.com/improve-postmortem-with-sre-steve-mcghee/)
https://redd.it/e24ps3
@r_devops
Blameless: Better Reliability Through SRE
Improving Postmortem Practices with Veteran Google SRE, Steve McGhee
For many SREs, Google’s 99.999% availability seems like an untouchable dream. If anything, getting out of pager hell is already worth celebrating with all your coworkers, friends, and family. How can you get to a stage where you have time to proactively prevent…
Question About Microservices Login Auth and Microservice DB schema
I recently just started and have been playing around with microservices. and there's a few things that confuses me.
first off for context, i want to create a separate MC for Auth and User and have this db schema for User
​
user table
\---------------
id
name
email
etc
\---------------
​
user\_pass table
\---------------
id
user\_id
pass
salt
alg
etc
\---------------
​
The question i have is the login flow authentication and i have narrowed down 3 options
​
1. a browser request gets sent to -> APIGateway -> User MC for pass details then message queues -> Auth MC -> validate --> send back token
​
2. a browser request gets sent to -> APIGateway -> Auth MC -> gets details straight from db -> validate -> send back token
​
3. a browser request gets sent to -> APIGateway -> User MC -> validate with small auth code -> send back token
​
I'm planning on just doing no.2 but i've read that it's bad to share db between MCs, so is it maybe the db schema that's the problem?
Should i just make user\_pass table a table specific for Auth MC's db and have it query from there? (UserDB.user\_pass --->>> AuthDB.user\_auth)
​
I'm also planning on just making the Auth MC as a ticket checker for JWT in every request or maybe filter that in the Gateway with the exception of the login flow no.2
but that's not any of my concerns right now as i know it could be very broad, my main concern right now is the login flow.
​
So please let me know what i'm doing wrong or if something is not clear. That would be very much appreciated. Thanks in advance.
https://redd.it/e23mbl
@r_devops
I recently just started and have been playing around with microservices. and there's a few things that confuses me.
first off for context, i want to create a separate MC for Auth and User and have this db schema for User
​
user table
\---------------
id
name
etc
\---------------
​
user\_pass table
\---------------
id
user\_id
pass
salt
alg
etc
\---------------
​
The question i have is the login flow authentication and i have narrowed down 3 options
​
1. a browser request gets sent to -> APIGateway -> User MC for pass details then message queues -> Auth MC -> validate --> send back token
​
2. a browser request gets sent to -> APIGateway -> Auth MC -> gets details straight from db -> validate -> send back token
​
3. a browser request gets sent to -> APIGateway -> User MC -> validate with small auth code -> send back token
​
I'm planning on just doing no.2 but i've read that it's bad to share db between MCs, so is it maybe the db schema that's the problem?
Should i just make user\_pass table a table specific for Auth MC's db and have it query from there? (UserDB.user\_pass --->>> AuthDB.user\_auth)
​
I'm also planning on just making the Auth MC as a ticket checker for JWT in every request or maybe filter that in the Gateway with the exception of the login flow no.2
but that's not any of my concerns right now as i know it could be very broad, my main concern right now is the login flow.
​
So please let me know what i'm doing wrong or if something is not clear. That would be very much appreciated. Thanks in advance.
https://redd.it/e23mbl
@r_devops
reddit
Question About Microservices Login Auth and Microservice DB schema
I recently just started and have been playing around with microservices. and there's a few things that confuses me. first off for context, i want...
These are the steps that I've taken to SSH into a remote server in a Jenkinsfile but failed. Need help!
Hello, I am new to Jenkins, and I am building a pipeline where I have to ssh into a remote server to perform some tasks. I am finding a way to ssh without typing the password. In a general environment (no Jenkins), this would be quite simple. I would have to generate a key (\`ssh-keygen\`) and put the public-key into the remote server's \`authorized\_keys\`.
However, since my goal in Jenkins is to \`ssh\` into the server, I am not able to do that. What I tried was using \`ssh-agent\`. Reading some tutorials, I was told to do something like (this is with \` withCredentials(\[sshUserPrivateKey...\`)
eval $(ssh-agent -s)
chmod 600 ./key_key2.key
ssh-add ./key_key2.key
ssh root@<remote_server> docker ps -v
where \`key\_key2.key\` is the private\_key of the remote server.
Is this the correct way to do it?
I feel like using ssh-agent is skipping the part where I add the public\_key to the remote-server's authorized\_keys, but I thought to skip that part was one of the points of using the public\_key.
​
Any help, please?
https://redd.it/e27bcj
@r_devops
Hello, I am new to Jenkins, and I am building a pipeline where I have to ssh into a remote server to perform some tasks. I am finding a way to ssh without typing the password. In a general environment (no Jenkins), this would be quite simple. I would have to generate a key (\`ssh-keygen\`) and put the public-key into the remote server's \`authorized\_keys\`.
However, since my goal in Jenkins is to \`ssh\` into the server, I am not able to do that. What I tried was using \`ssh-agent\`. Reading some tutorials, I was told to do something like (this is with \` withCredentials(\[sshUserPrivateKey...\`)
eval $(ssh-agent -s)
chmod 600 ./key_key2.key
ssh-add ./key_key2.key
ssh root@<remote_server> docker ps -v
where \`key\_key2.key\` is the private\_key of the remote server.
Is this the correct way to do it?
I feel like using ssh-agent is skipping the part where I add the public\_key to the remote-server's authorized\_keys, but I thought to skip that part was one of the points of using the public\_key.
​
Any help, please?
https://redd.it/e27bcj
@r_devops
reddit
These are the steps that I've taken to SSH into a remote server in...
Hello, I am new to Jenkins, and I am building a pipeline where I have to ssh into a remote server to perform some tasks. I am finding a way to ssh...