Quantcast
Browsing all 40 articles
Browse latest View live

How to get another pod name from it's IP?

I have a pod that exposes a port (Server). Other pods (Clients) can communicate with it.The server can find remote IP and port on a socket (when the client connects to it). I am looking for a way to...

View Article


Should transparent HTTP proxy remove hop HTTP headers?

I read that HTTP proxy should be removing hop HTTP headers (https://www.freesoft.org/CIE/RFC/2068/143.htm)It makes sense since some of these headers are connection-related.The question is. Is this RFC...

View Article


How to map fields name in jsonb field to another name in object?

I use Postgres and I have DB with a table that looks like thatcolumn - footype - jsonbvalue - {"baz" : "test" }Please notice that "baz" is not capitalized (pretty much this json document will be in a...

View Article

Is there a way to do Alamofire requests with retries

I have a lot of places in the code where Alamofire request/response are handled. Each of this requests may fail because of some intermittent problem (the most common is flaky network). I would like to...

View Article

Using existing load balancer for K8S service

I have a simple app that I need to deploy in K8S (running on AWS EKS) and expose it to the outside world.I know that I can add a service with the type LoadBalancer and viola K8S will create AWS ALB for...

View Article


OAuth 2.0 flow to authentication via access token

I have a public client which gets JWT access token. I need it to get another one (not refresh, but for some other purpose) and I need it to do it without a user interaction.As a result, I am trying to...

View Article

Exposing HTTP2 service (over TLS) from Kubernetes on AWS

I have an HTTP2 service. It's deployed on EKS (AWS Kubernetes). And I am trying to expose it to the internet.If I am exposing it without TLS (with the code below) everything works fine. I can access...

View Article

Are http_proxy, https_proxy and so on supported on application level (vs OS...

Do I understand correctly that all these variables are supported on the application level?http_proxyhttps_proxyftp_proxyall_proxyI mean it's not an OS-level (Linux) facility that detects the traffic on...

View Article


How to convert Vec to HashMap?

I have a vector of strings.I need to convert it to HashMap.Vector's 0 elements should become a key and 1 element should become a value. The same for 2, 3, and so on.The obvious solution, just to make a...

View Article


Lifetime of a reference passed to async callback

I have async function to which I am passing async callback. The callback takes a reference as a parameter.use core::future::Future;async fn foo(bar: &u32) {}async fn baz<F, Fut>(f: F)where F:...

View Article

Destination and RelayState difference in SAML 2.0

I know that a lot of service providers use relay state as a way to keep track of what resource was accessed while SP initiated SSO, so SP can redirect to it after SAML assertion consumption.However, I...

View Article

Answer by Victor Ronin for How Postgres negotiate TLS usage?

Some additional info on top of @janes answer:https://www.postgresql.org/docs/current/protocol-flow.htmlTo initiate an SSL-encrypted connection, the frontend initially sendsan SSLRequest message rather...

View Article

How Postgres negotiate TLS usage?

I am puzzled a bit about Postgres option sslmode=prefer. It implies that it negotiates with the server to figure out whether the server supports TLS or not.I am curious how it's done. Does it try TLS...

View Article


Returning nil in the init in Objective C code

In the case, if we return nil in the init method, what's happening with retain count and who is going to release this object?As I undertand as soon as we called alloc (which will happen before init),...

View Article

Can you build Rust app for Windows 10 IoT Core?

I am trying to figure out whether I can cross-compile Rust app to Windows 10 IoT core.Unfortunately, the information is quite sparse. As Rust was raising, Windows 10 IoT was going away (replaced by...

View Article


Rails 5.2 credentials + asset precompile

I have a continuous integration which takes rails app and package it as a docker image.As one of the steps of this packaging process, I want to do asset precompilation.I was doing this on Rails 5.1. I...

View Article

find vs find_by vs where

I am new to rails. What I see that there are a lot of ways to find a record:find_by_<columnname>(<columnvalue>)find(:first, :conditions => { <columnname> => <columnvalue>...

View Article


Is there a way to reload initializers automatically for rails app?

I play with RailsAdmin right now. RailsAdmin DSL configuration are stored in initializers. There is a way to keep them in model, but I believe it's bad idea (to store view related info in the...

View Article

How can we effectively manage writing SELinux policies for our app?

We are currently developing the SELinux policy for our application, but we are encountering significant challenges in managing it effectively.Here's our approach so far:We run our app in SELinux...

View Article

Is there a way to reload initializers automatically for rails app?

I play with RailsAdmin right now. RailsAdmin DSL configuration are stored in initializers. There is a way to keep them in model, but I believe it's bad idea (to store view related info in the...

View Article
Browsing all 40 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>