Better HN
topnewbestaskshowjobs
Log inSign up

giaour

3,849 karma · joined Sep 12, 2013 (13y ago) · 1,555 submissions

Submissions

comment 4y ago · link · parent

Plenty of people move from USDS to permanent civil service roles, but they do need to plan for it and apply. Your time in USDS counts towards government retirement benefits, but you can't stay in that particular position for longer than 4 years.

comment 4y ago · link · parent

There are a few ways to get an IC role that pays more than the GS salary cap, but they are fairly rare. Some jobs have an "ST" level that is classified above GS for senior individual contributors in scientific or technical roles, and some agencies (like the CFPB) have their own pay scales that go beyond what the GS schedule allows.

I only worked with one computer scientist in an ST role during my two years at USDS. He was an ACM Fellow and had a PhD from MIT, so it's not something anyone should expect to get just because they had "senior" in their title at a FAANG.

Contractors don't have the same statutory caps on how much an individual role can pay, but salaries are part of contract bids, and a bid can be rejected if an individual salary is too high.

comment 4y ago · link · parent

Really happy to see this on the front page!

One thing to keep in mind if you're interested in joining: the Digital Corps is for early career technologists, so if you have much experience in tech, you might want to apply to USDS (https://www.usds.gov) or 18F (https://18f.gsa.gov) instead.

comment 4y ago · link · parent

Most of this article seems to be against having browser JavaScript store tokens and inject Authorization headers, which you are free to avoid if you don't want to use them. JWT is just a token format, you can set it as an HTTPS-only cookie and have your server read it from there. Stateful vs. stateless is orthogonal to how the token gets handled by the client and sent back to the server.

comment 4y ago · link · parent

I am not an expert on Brazil, but the link you shared matches my recollection.

It's important to remember that Brazil covers a lot of ground, and many internal tools at Amazon are external to Brazil but rely on it and the way it organizes resources. So I (or others on the internet) may incorrectly call something Brazil if it's part of the larger Brazil ecosystem.

Let's start with a repository and build outwards:

You have some code (let's say it's a Java library) that does something cool. To compile it, you add a Brazil file to the repository root. This file specifies what Brazil packages your code depends on, how it should be built, and what kind of artifact it will produce. Once that file is there, you can run "brazil-build" to produce a Brazil package (which is just a jar with some metadata).

You want to use this library in a web service, so you check out both repositories in a single workspace. Every workspace has a source versionset where it fetches dependencies, but if the code repository for a package is checked out locally, "brazil-build" will build and use the local version instead. You make some changes to the library and web service, then test how they work together by running the web service from within the workspace folder. This ensures that it is using your local modifications to the library repository before those changes have been merged.

Once you're satisfied with the change, you open a PR with a brazil-integrated tool that can show changes to multiple repositories as an atomic change (a "change set"). The CI system for this tool uses a Brazil workspace to make sure your update code packages build together and that all tests pass.

If the PR is approved and you merge to main, there is probably a pipeline watching your repository for changes that proactively rebuilds one or more version sets based on the merged change set. Any package in the version set that depends on your library will be rebuilt using the changes from your change set. So while a versionset is implemented as a list of packages at specific versions, it's best to think of a versionset as more or less equivalent to a monorepo containing all packages on that list, since changes that cross package lines can be built into a versionset in an atomic unit. (This is very helpful if you need to push out a breaking change.) A package can exist in multiple versionsets, which is of course impossible with monorepos.

comment 4y ago · link · parent

There are some cases where you have to make a breaking change, and in those cases, it is helpful to be able to assess the fallout without a ton of manual effort. E.g., sometimes a security hole can only be remedied by restricting certain inputs (like with Heartbleed), and that's technically a breaking change.

Monorepos let you make that assessment within a certain scope, as does Amazon's internal build system. It's not a feature you want exercised regularly, but it sure is helpful when you need it.

comment 4y ago · link · parent

> Honest question - how do you actually effectively share code between many repos?

Locally, you can use an Amazon-internal tool to check out multiple repos and make changes to all of them. The tooling calls this a "workspace," but it feels very much like working in a monorepo since building and testing can happen at the workspace level.

> How do I know that me changing my backend app’s API doesn’t break any other project in the company potentially calling it?

In terms of change management, Amazon dependency graphs are managed as "version sets." Changes have to be built into a given version set, and that build will also rebuild any package in the version set that consumes the repository whose changes are being built in. (Usually, repositories are configured to build into one of the owning team's version sets on each commit to the primary branch.)

comment 4y ago · link · parent

Amazon has Brazil versionsets and workspaces, which solve many of the same problems monorepos do. I really liked the way those extra resources let you organize "ad-hoc monorepos" from smaller repositories, but it's infrastructure that I haven't seen elsewhere.

Since leaving Amazon, I've mostly worked with monorepos and wouldn't go back to multirepos without Brazil-style tooling.

comment 4y ago · link · parent

Don't ALBs have a minimum hourly cost? Last time I looked into this, you couldn't run an ALB for less than ~$17/month.

Definitely cheaper than API gateways for even a moderate amount of traffic, but API gateway costs scale down to zero for unused or rarely used endpoints.

comment 4y ago · link · parent

You can buy a snapdragon desktop, but it's really only spec'd out for testing: https://www.microsoft.com/en-us/d/ecs-liva-mini-box-qc710-de...

On the plus side, they're pretty cheap.

comment 4y ago · link · parent

Yes and yes, though I used it for a read-only application.

comment 4y ago · link · parent

The hand wringing and gnashing of teeth in this article is a bit much. Is America splitting by sexuality because different dating apps and media properties are popular with each group? Some balkanization is inevitable when systems with network effects and low initial switching costs serve a heterogenous population.

comment 4y ago · link · parent

I think the top-level comment ("Might his squadron be called in to quash civil disturbance? Sent to the next Iraq? Is it reserved for defending the UK from invasion?") is exactly the kind of thing you should ask yourself when joining something like the Army Reserves. Everyone has some things they will not do, and it's important to figure out what those might be before finding yourself pushed to those limits.

The thoughtless comments basically express the idea that no one should be in any military, whereas thoughtful questions acknowledge that not everyone has the same red lines.

comment 4y ago · link · parent

I don't know if this was your intention, but your comment comes off as extremely dismissive. If you are joining a fighting force, you absolutely should consider where and how you might be deployed should your unit get mobilized. There is a tremendous difference between doing an active tour of duty in a foreign country and being called up domestically, and it is fine to use your own moral calculus when weighing the two.

In the US, for example, part time opportunities are either in the reserves or the national guard, with the former having a foreign focus and the latter having a domestic focus. Plenty of guardsmen ended up doing tours in Iraq, but more recently, guardsmen helped staff overwhelmed medical facilities during the height of the pandemic.

comment 4y ago · link · parent

In many OLTP systems, almost all work operates on multiple attributes of a single record. E.g., when logging a user in, an authentication system cares about multiple attributes of a single user record, not facts about the aggregate pool of users.

Column oriented stores are extremely efficient for aggregate queries, but they make writes and single-row reads more expensive and are thus not suitable for every workload. There's an excellent overview in Martin Kleppmann's Designing Data Intensive Applications.

comment 4y ago · link · parent

That would prevent using a pre-generated lookup table but doesn't help much with brute force attacks. All possible card numbers is a finite set, and if you have the sha256(card number + salt), you can figure out which card number was used as input given the improbability of sha256 collisions within that set.

Keep in mind this in the context of an account holder asking the bank to authenticate themselves on a phone call using data only the bank and the account holder should know. sha256(card number) was an example of something that is obviously inappropriate, and I don't think sha256(card number + salt) is any different qualitatively.

comment 4y ago · link · parent

There may be inferences you can make from the sum that aren't immediately obvious. If cards can end in four zeros, the sum and the last four digits contain equivalent information, but you would also confirm that three of the digits are zeros if the sum was 1. It's something that, if I were a bank, I would want someone with a background in number theory to weigh in on. If I were a paranoid bank exec, I wouldn't trust the low-wage customer support reps I had on staff to vet customer questions for how much information they might leak and would instead have blanket prohibitions on answering questions from customers until after the authentication phase of the call.

Questions like "is the sum even?" trade a lower opportunity for information leakage for a greater opportunity for a random guess to be correct.

comment 4y ago · link · parent

Brute forced by a human voice on a phone call? You must talk quickly.

comment 4y ago · link · parent

"What is pictured on the front of my card?" might not be a bad question (assuming the bank allowed account holders to choose from a large variety of images or upload their own). It's data that the bank could capture on card issuance, that anyone who has been in the physical presence of the card could answer, and that would not be captured by payment systems.

comment 4y ago · link · parent

If the account holder has to ask the bank for a piece of information, the account holder will also have to produce it for comparison.

Summing the last four digits could unintentionally leak information (what if those digits are all zeros?), so the challenge question should be carefully chosen by the bank, not just whatever the account holder comes up with.

comment 4y ago · link · parent

> There would be little recourse other than this ebanking system refunding you your money directly.

Depending on how the system is designed, such a refund may not be possible. I'm guessing that an offline-enabled ecash system would not support revoking and reissuing currency units, so you might be SOL.

> What would the recourse be if thieves just broke into your house and made you transfer everything over from your main account?

I want to say that this is no different than if you kept cash, gold, art, jewelry, etc., in your house, but ecash would be uniquely easy to conceal and smuggle across borders, so ecash would be a more attractive target for thieves than even an equivalent amount of gold. I'd love to see a deeper discussion by the lawmakers sponsoring the bill because I suspect there is no great answer to your question.

comment 4y ago · link · parent

Ah, I thought you were talking about the individual holder's risk of theft, not the system's risk of counterfeiting.

My understanding from the article is that the TPM would be used to prevent theft, and counterfeiting would be prevented by something like RSA blind signatures (e.g., http://www.hit.bme.hu/~buttyan/courses/BMEVIHIM219/2009/Chau...)

comment 4y ago · link · parent

I get that it's better (from the victim's perspective) to have to deal with fraudulent credit card transactions, but I don't get the difference from the point of view of the fraudster. If anything, breaking Apple Pay would be better than cracking a hardware wallet containing ecash, since someone's credit limit on the linked cards would generally be greater than the amount of cash they have on hand.

comment 4y ago · link · parent

Yes, they would be hardware wallets or phone apps relying on TPM. There is some more info on possible options at https://ecashact.us/#hardware

comment 4y ago · link · parent

From the article:

> An E-Cash device is any piece of secured hardware issued and/or authorised by the government for the purpose of receiving, holding, and transferring e-cash balances.

> In contrast to ledger-based systems (including those that use a blockchain and/or distributed-ledger rather than a centralized ledge), which prevent double-spending by verifying unspent balances against a common record of all previous transactions, e-cash devices verify funds locally via a dedicated or trusted computing environment located on the device itself.

> This allows it to facilitate both offline and genuine peer-to-peer transactions without generating transactional data or requiring the approval of third party intermediaries or network validator nodes.

comment 4y ago · link · parent

The (hypothetical) proposal from the linked piece is to create a non-forgeable digital bearer instrument. The enumerated requirements include that there be no ledger or central clearinghouse and that the medium support offline transactions.

I don't see how this is different from physical cash wrt civil forfeiture or court-ordered seizure.

comment 4y ago · link · parent

What would you propose qualifies as a private instrument given this definition? Anything with a public ledger lends itself to really detailed forensic accounting, and durable goods tend to be uniquely identifiable. Gold can be melted and reforged, but it could be chemically altered so that it would remain traceable.

comment 4y ago · link · parent

Yeah, that would be terrible! I would expect that this would be reframed a user education issue, as in, don't carry more ecash on you than you're willing to lose (same as physical cash). That would only be workable if they made it easy to maintain multiple instruments and transfer funds between them.

comment 4y ago · link · parent

Why, because bills have serial numbers? Presuming that ecash "units" will also have serial numbers, that would mean getting caught with a flagged unit in your possession could land you in hot water (just like getting caught with marked bills). But without a public ledger, ecash still wouldn't be amenable to forensic accounting in the way bitcoin has proven itself to be.

comment 4y ago · link · parent

...those exceptions already exist? It sounds like you're describing court orders and civil forfeiture, both of which let the government take your cash, durable goods, deposit account contents, stocks, bonds, cryptocurrencies, etc.
1
242526
52