HNHacker News
TopNewBestAskShowJobs

vegardx

1,574 karma · joined June 27, 2011

submissionscomments
vegardx··on AWS services to avoid
I don't really agree that it's been abandoned, nothing suggest that this is true. They're not known for just abandoning established services, there's a public roadmap[0] that you can follow. Like all services there are pros and cons. Up until very recently EKS lacked more or less everything ECS has in tight integration with other AWS services, so there's that.

[0] https://github.com/aws/containers-roadmap/projects/1

vegardx··on Certificate Transparency Log Compromised via Salt Vulnerability
I sit close by to the people that deal with this at work, so my understanding is very limited. Payment processors, service providers, reconciliation, yatta yatta. We used to joke around with them about carrying cash, just in case. We stopped joking around when we realized they all did.
vegardx··on Certificate Transparency Log Compromised via Salt Vulnerability
You might think so, but if that was the reason your bank would be offline a lot. Everything that these old monoliths process come in batches, at predictable intervals.

What makes banking systems reliable is that there's so much built in latency in every operation that nobody really notices if something is down for six hours.

vegardx··on Ask HN: Why can't I send faxes from my phone?
Up until very recently my grandpa would use fax to send complaints to just about anything. It was about as stereotypical grumpy old man as you can imagine. He's a good person, just old-school formal when he writes. Comes of as a bit ... harsh.

I thought it was going to end when they dismantled the analog network, and his fax machine with it, but somehow it just got worse. You see, on fax machines you rarely got spam, but on email that's another story. It's hilarious to see the email exchanges he has with some spammers. They've met their worst enemy.

He is more than capable to identify spam, but he doesn't fully understand that, while sent to him, it's nothing personal. He takes it very personal. Very personal. Like, call me late in the evening or during work hours (unheard of for someone in his school) to discuss this outrageous claim that someone made about him. He, like a lot of senior citizen, has a lot of free time. So he naturally replies back. And we're talking full page replies, going into great detail about how they are bad people for doing this to someone like him.

vegardx··on Show HN: Chess and Video Chat, no login required
Takes two minutes to install if you know what you're doing.

The whole point here wasn't to make a slick single click install, but a prototype that works. And then iterate from there.

vegardx··on Show HN: Chess and Video Chat, no login required
It seems like you had the same motivation as me, connecting with the family. For quite some time it has bugged me how bad the UX on some things are, like photo sharing or video calling. Try to explain to your grandmother how to see shared photos on an iPad, and then try to do look at the same picture while on a call. Impossible!

I voiced this to a friend and he suggested to just create a simple webpage that has a controller and viewer, nothing fancy. Tied together with Shortcuts I was hoping to make a one-click button that initiated a FaceTime call and opened the webpage in fullscreen. The latter part seems harder, due to limitations in Shortcuts, but so far I've successfully been able to have her press the Home-button and then click the bookmark for this service to open the viewer. Perhaps a Jitsi Meet integration is just what I need.

Being able to view pictures this way has been truly amazing. My dad has digitized a lot of old pictures, and it's so engaging for her to explain what farm a given picture was taking on, and who is in the picture. Things like that. She really enjoys it. I don't understand how this isn't built into FaceTime or something similar. Seems like such an obvious thing.

Shameless plug, and be warned it's quite bandwidth intense, in true disruptive start-up fashion it lacks everything, like optimization and security: https://github.com/vegardx/abuela

vegardx··on UK government releases scientific evidence supporting Covid-19 response
To put things into perspective, in tiny Norway companies have issued warnings to 170k, in one week. In six days they received 105k applications for unemployment benefits.

The government is paying full salary (capped at ~600k) for the first 20 days. After that you receive either 62,4% of your salary up to 600k, and if you make less than 300k you receive 80%.

But it's not just Trump and Boris pushing for it. Trials of anti-virals are pushed heavily by the WHO in all countries.

vegardx··on Norwegian Air to cancel 85% of flights and temporarily lay off 90% of staff
They have been struggling for quite some time.

They got hit quite bad with the grounding of 737 MAX (10% of fleet), and before that they a lot of issues with the 787 Dreamliner (20% of fleet).

vegardx··on Oil plummets 30% as OPEC deal failure sparks price war fears
The simple answer is that it's complicated.

You have to factor in currency exchange. In Norway we're starting to become unprofitable at around $32/bbl with the current weak NOK against USD. Some older fields are more profitable than others, so it's not like the whole sector becomes unprofitable at a single point.

There are things that Norway could do in order to strengthen the NOK against USD, but this would be at the cost of other export industries, like fishing and metal, which combined are considerable export industries.

vegardx··on Oil plummets 30% as OPEC deal failure sparks price war fears
Oil is sold in USD you have to take into account the exchange rate between AUD and USD. We're seeing the same in Norway, but when you factor in the exchange rate and additional taxes it's effectively the same.
vegardx··on Low-cost 60GHZ phased array antenna
It depends on what you mean by reasonable. In some places anything that faster than the non-existing 4G-connection they were promised 5 years ago will be reasonable.

These high frequency links might not be suited for bad weather or flock of birds, but they do enable low latency, high throughput most of the time. You can always downgrade to a lower frequency, much like how 5G operates, completely transparent for the clients.

vegardx··on Spot the Drowning Child (2015)
Wet suits and life jackets are much better options for kids than arm bands. Heck, in many places arm bands are banned completely. I think cost is one of the few reason why arm bands are still used, and perhaps that they are marginally better than not having any in some cases.

You can get a great used wet suits for next to nothing, and in many cases the swimming pools have life jacket loaners. A life jacket with safety straps (between legs) are super cheap, and they are adjustable for better fit. Snug fit means they're less in the way. And they're harder to remove.

vegardx··on Swiss government files criminal complaint over Crypto AG scandal involving CIA
Doing this completely undetected is actually harder than you think. Modern browsers check Certificate Transparency lists, and if the certificate is not present in at least two lists then they are simply rejected.

In addition to this you have Certification Authority Authorization (CAA) which uses DNS to tell what CAs are allowed to sign certificates for a certain domain.

There are services you can subscribe to that will tell you when a certificate signed by a (or anyone but) CA for a domain you want to monitor.

vegardx··on Let's Encrypt has turned on stricter validation requirements
Smart way to do it, but it will set you back $0.5/month. You can likely do it cheaper with Lambda and API Gateway, but you'll have to invent the secret sauce yourself.

I'm always a little surprised when there are short comings in IAM like that with route53 and records. It seems like a natural thing to be able to control, but for some reason you don't have resource level controls on hosted zones. It's all or nothing.

vegardx··on Let's Encrypt has turned on stricter validation requirements
Then use a different method of validation, like DNS?
vegardx··on Ask HN: A major USA bank is storing passwords in cleartext – what to do?
Norway, but I would imagine it's the same or same-ish solution given that banks in Scandinavia and Baltics operate more or less the same way.
vegardx··on Ask HN: A major USA bank is storing passwords in cleartext – what to do?
It never ceases to amaze me what the state of online banking is around the world.

Here we have something called BankID which comes in two flavors, one that is a physical token that generates TOPT used to log in, either in a combination with a password or a PIN on the token device itself, referred to as BankID. And the other, much slicker solution, called BankID on Mobile, which runs as SIM-application on your phone where you digitally sign the login request using a PIN. The user can also verify the request visually on both the computer and phone using a unique keyword.

One killer feature with BankID is that you can use it to log in to any service that has BankID, like your insurance company, looking at your tax return, other banks, etc. This is perhaps the biggest issue with it since the system can get overloaded when there's a country wide rollouts of tax returns and such. This has become much better lately since they've started to roll out things like tax returns as soon as they're ready instead of doing bulk releases.

vegardx··on Building a static serverless website using S3 and CloudFront
Now you just need to configure a Lambda to take care of cache invalidation on CloudFront, based on s3:PutObject events. CloudFront also supports headers like "cache-control: public, max-age=3600, s-maxage=86400", so you can have quite aggressive caching on CloudFront where you can just invalidate it on demand anyway.

Personally I just listen for any event and invalidate all objects, since that's way cheaper than issuing an invalidation request for each object, but performance wise that might not be the best option.

vegardx··on Show HN: Static website hosting with auto optimization
Does it really make sense to "minify" everything when you have gzip enabled?
vegardx··on DNSSEC root key signing ceremony postponed because they can't open a safe
I guess you could call all optional technology for dead then, but it's super useful for things like ssh fingerprints (SSHFP), and I imagine they're also useful for things like public keys for IPSec (IPSECKEY) and other types of certificates (CERT), like GPG public keys.
vegardx··on Let's Encrypt: an automated certificate authority to encrypt the entire web
There's no alternative when you have multiple SANs, all of them have to be validated. But since they are free and easy to automate you can just issue a certificate for every domain.
vegardx··on Let's Encrypt: an automated certificate authority to encrypt the entire web
I believe clients that don't support name constraints extension won't pass certificate chain verification should the root, intermediate or certificate itself have a name constraint defined.
vegardx··on Show HN: Managing SSH Access to AWS EC2 Instances Using SSM
You can always just pipe things over ssh. And now that ssm supports local port forwarding you can easily use netcat to send files back and forth.
vegardx··on Show HN: Managing SSH Access to AWS EC2 Instances Using SSM
It has to use an existing system account, yes. You do lose a lot of auditing abilities this way, since you cannot capture the content. For me this is more about establishing a secure way to grant people access to instances, without something like LDAP or SSH CA.

LDAP sends passwords in cleartext over an encrypted channel, I don't like the idea of someone else on the host I'm connecting to being able to read my password. Naturally you can use key based authentication with it.

I know that some people are required by law or regulation to log all these things, but personally I don't see much benefit of such audit logs. All bets are off when someone has local access to a machine. And there's this whole debate about using MitM-proxies for logging and security and the potential security implications they pose.

All that said, step-ca[0] and vault[1] looks really promising to provide some kind of provider independent way to authenticate in a secure manner. You also have teleport[2] but I haven't looked much into it.

[0] https://smallstep.com/docs/cli/ssh/ [1] https://www.vaultproject.io/docs/secrets/ssh/signed-ssh-cert... [2] https://gravitational.com/teleport/

vegardx··on Show HN: Managing SSH Access to AWS EC2 Instances Using SSM
No, but it requires you to either have some kind of peering, Client VPN Endpoint or a bastion host. I prefer a VPN or bastion host, since you add another layer of authentication in between. With Client VPN Endpoint you can also limit network access on a per-user basis to further lock down things.
vegardx··on Show HN: Managing SSH Access to AWS EC2 Instances Using SSM
You can also use ec2-instance-connect[0] to enable users to generate ephemeral keys that are valid for a few minutes, authenticated with IAM. The benefit is that it's all native after you've pushed your keys using either aws-cli or mssh.

It has more or less the same benefits that SSM has, and you can use the same method with ProxyCommand to establish authentication before connecting. You can also chain it using ProxyJump to use a bastion host. Wrapped in a tool like aws-vault you can quite easily work with 2FA and such.

[0] https://aws.amazon.com/about-aws/whats-new/2019/06/introduci...

vegardx··on [dead]
Things might have changed, but back in the days they usually just flared off hydrogen sulfide because it was hard to deal with and not very profitable. You more or less had to force the oil companies to collect it.

So yes - often a byproduct of oil production, but if the oil companies had it their way, they'd burn it on the spot.

vegardx··on Finland to give dads same parental leave as mums
I can't speak for how they do it in Finland, but at least in Norway you can take the paternity leave over a period of 3 years. I think most people take it out in full, but a lot of self-employed people do that in order to keep things running.
vegardx··on Show HN: Cronyo – A simple CLI to manage your cron jobs on AWS
For things like this you can abuse organization accounts. They take a few seconds to bootstrap and now you have a completely independent resource limit for that specific service.
vegardx··on AWS Security Documentation, by Category
I think you're confusing what the default VPC actually is. Most people would consider it anti-pattern. Back in the days the concept of a VPC didn't exist in AWS, so when it was introduced they also introduced the concept of a default VPC for new accounts. All new resources was created into by default in order to make it easier for people to keep working as they were used to.

It only has a single subnet for each availability zone, which is connected to an Internet Gateway, effectively granting all resources with a public address assigned to it Internet access. That combined with the default security group was a recipe for unintended consequences.

One thing I'd recommend is reading up on the Well-Architected Framework[0]. It approaches all the essentials in AWS and will likely save people from reinventing the wheel badly. There are aspects of the Well-Architected Framework that I don't follow, but those aspects become very clear when you understand what they're trying to make you do with it.

[0] https://aws.amazon.com/architecture/well-architected/

← PreviousPage 8 of 22Next →