News for hackers. Stuff that matters.

cnuss

Re:I reverse engineered and ported Ducks on Saturday August 08, 2026 @12:54PM (#49223537)
this is awesome. I have a ton of nostalgia towards making what is old new again, but still the unadulterated original. I hope you find Tim, Kieran, or Stoyanvoy!

Show HN: Deploy Hugging Face Models to AWS Lambda

https://github.com/scaffoldly/scaffoldly-examples/tree/python-huggingface

I've been working on Scaffoldly since 2020 to simplify AWS Lambda deployments. Recently discovered you can run Hugging Face models efficiently using EFS for caching. Here's what's interesting: - Uses EFS for model file persistence - Pre-downloads models after deployment for faster cold starts - Cold start: ~20s (model loading), warm requests: 5-20s (CPU inference) - Fully automated...

( Read More... | no comments | on HN )
It's not publicly accessible, per-se..., there's a reverse proxy I've written

1. There's a Function URL that then creates a Lambda HTTP Event

2. There's a reverse proxy in the container that converts the Lambda HTTP Event back into a HTTP Request

3. Then the HTTP Respose is transformed back into a Lambda HTTP Event Response

@billconan if you'd like, join my Discord and I'd be happy dive into details and/or provide more docs: https://scaffoldly.dev/community

Yup! Change the `handler` and `start` command:

``` handler = "localhost:5000" ... start = "poetry run flask --app flask_poetry run -p 12345" ```

Show HN: Run a Python Flask HTTP Server in AWS Lambda (w/Poetry)

https://github.com/scaffoldly/scaffoldly-examples/tree/python-flask-poetry

Scaffoldly allows you to run any HTTP server inside AWS Lambda. It requires no code changes to your existing server and a simple configuration in the project's pyproject.toml. Deployments can be done locally or in GitHub Actions.In this example, we're running a Flask server in AWS Lambda, and the scaffoldly toolchain handles packaging, deployment, and routing of AWS Lambda HTTP requests.

( Read More... | 4 comments | on HN )

Show HN: Run a Rust HTTP Server in AWS Lambda (Axum+Scaffoldly)

https://github.com/scaffoldly/scaffoldly-examples/tree/rust-axum

Scaffoldly allows you to run any HTTP server inside AWS Lambda. It requires no code changes to your existing server and a simple configuration in the project's Cargo.toml. Deployments can be done locally or in GitHub Actions.In this example, we're running a axum server in AWS Lambda, and the scaffoldly toolchain handles packaging, deployment, and routing of AWS Lambda HTTP requests.

( Read More... | no comments | 6 points | on HN )
Re:Show HN: Deploy Next.js Apps to AWS Lambda on Thursday September 26, 2024 @09:39AM (#41658277)
thanks don! here's the GH discussion on this topic: https://github.com/scaffoldly/scaffoldly/discussions/17

Ask HN: GitHub Actions Architecture for Workflow Orchestration?

Greetings!Does anyone know what GitHub Actions uses internally for Workflow Orchestration?Context: Building some workflow orchestration jobs that have similar async needs, and want to build something similar. I love the features that I observe such as concurrency limits, failure handling, etc.I feel like Argo (https://argoproj.github.io/) is similar, but would love to know if they're using...

( Read More... | no comments | 2 points | on HN )
thanks for the question!

this completely eliminates the need to juggle ~/.aws/* files, or downloading or generation of one or more web identity token files, or complicated trust to a single root account

using a single GitHub token identifying the user, the saml.to backend exchanges that token for the desired account and credentials simply based on providing the desired role name as input

zero knowledge on how to authenticate the aws cli is necessary, which I've found as a high friction point for administrators and developers to get right

let me know if you have any more questions or feedback!

Show HN: An easy way to assume AWS IAM roles on your Laptop or in GitHub Actions

https://saml.to/install

Hey everyone!I've made a service to allow developers easy access to AWS IAM Roles using GitHub Identity.This way, an organization or AWS account owner can quit generating AWS IAM Credentials to users or GitHub Repositories, and use the saml-to CLI or assume-aws-role-action to federate roles.

( Read More... | 2 comments | on HN )

Show HN: Launch Localstack “as a service” with automatic termination

https://eph.dev

Greetings!I've just created a service that launches a Localstack container, make it available at a personalized URL, and then shuts it down within 10 to 60 minutes.I made this because Localstack is a great way to mock the AWS cloud for Local Development or in CI/CD. But, to run it, you need a Laptop with enough available memory, Docker, Python, and other CLIs.Also, if you want to develop...

( Read More... | no comments | 2 points | on HN )

Show HN: TFstate.dev: Free Terraform State Storage Service Using a GitHub Token

https://github.com/tfstate

Greetings! I've developed a new service called TFstate.dev!TFstate.dev is a free-to-use hosted HTTP Backend for Terraform State Storage that is accessible using a GitHub Token.The backend API is Open Source for transparency and confidence that your state files are securely hosted: https://github.com/tfstate/github-sls-rest-apiThere's no signup or registration, and with a GitHub token, you can...

( Read More... | no comments | 3 points | on HN )
Re:Show HN: Stop Putting AWS Credentials in GitHub Secrets on Tuesday January 18, 2022 @08:22PM (#29988644)
The GitHub token that is used is a short-lived token that is generated new every time a GitHub action is run.

Ref: https://docs.github.com/en/actions/security-guides/automatic...

And the SAML.to backend first checks to make sure the token is valid by invoking:

Ref: https://docs.github.com/en/rest/reference/apps#list-reposito...

I haven't checked, but I assume GitHub invalidates the token when the GitHub Action finishes

Re:Show HN: Stop Putting AWS Credentials in GitHub Secrets on Tuesday January 18, 2022 @08:15PM (#29988591)
hey hatware!

is that a question/comment for me?

Re:Show HN: Stop Putting AWS Credentials in GitHub Secrets on Tuesday January 18, 2022 @05:20PM (#29986873)
Thanks mdaniel for your observations!

I updated package.json!

On the note of the API endpoint. Yes that's correct, I've fashioned a backend API which handles converting of GitHub Repo Tokens to SAML Assertions: https://sso.saml.to/github/swagger.html#/IDP/AssumeRoleForRe...

And providing a static endpoint for SAML Metadata: https://saml.to/metadata

That being said, you're making my brain click a little bit and this could be converted into a "self contained" toy, with some additional work! The biggest piece of the puzzle is a consistent private key and certificate.

If that is of interest to you, could you create a GitHub Issue as a feature request?

Thanks!

Re:Show HN: Stop Putting AWS Credentials in GitHub Secrets on Tuesday January 18, 2022 @04:39PM (#29986308)
Thanks for the feedback SahAssar, sorry if the title caused any latent anxiety!

I'll heed your advice for the next time I post something on HN, thank you!

Re:Show HN: Stop Putting AWS Credentials in GitHub Secrets on Tuesday January 18, 2022 @04:37PM (#29986278)
They're both Identity Protocols, SAML is older and more widely adopted, OIDC is newer. Kinda the XML vs JSON battle at a Protocol level haha!

I've found a lot of SaaS providers only support SAML today, so you're stuck if you want to use GitHub identity outside of OIDC.

Re:Show HN: Stop Putting AWS Credentials in GitHub Secrets on Tuesday January 18, 2022 @04:34PM (#29986238)
This is awesome! thank you!
Re:Show HN: Stop Putting AWS Credentials in GitHub Secrets on Tuesday January 18, 2022 @04:34PM (#29986230)
Hey zomglings!

I'll echo what I just responded to nodesocket with, but I'd also love your feedback on my comment:

https://news.ycombinator.com/item?id=29986209

Re:Show HN: Stop Putting AWS Credentials in GitHub Secrets on Tuesday January 18, 2022 @04:33PM (#29986209)
Totally agree re: complexity. My goal is that a few config steps in a GitHub repository and AWS makes a GitHub action able to do a wide variety of things (such as accessing multiple accounts) with very little upstart work.

Storing Secrets in GitHub isn't technically insecure, and it's awesome it's provided as a free feature, but it's tedious and fragile. Someone (or something has to do various clicks and copy/pastes or API calls) to upload an access key into GitHub Secrets. It gets even worse if you have multiple accounts and then your Action Workflow file gets really gnarly if you simply pull credentials from ${{ secrets.* }}.

Also, if you need to rotate your AWS access tokens, you open up a whole new can of worms, so why not remove credentials all together!

Thanks for the question nodesocket, let me know if you have more questions or comments!

Re:Show HN: Stop Putting AWS Credentials in GitHub Secrets on Tuesday January 18, 2022 @04:26PM (#29986094)
Hey orf!

You are correct this GitHub action is at its core is very similar! Even though the initial instructions don't prescribe it, the biggest differentiator is that SAML.to supports a centralized permissions configuration across all repositories for a user, project or organization:

https://github.com/saml-to/assume-aws-role-action/blob/main/...

Also, this action is the tip of the iceberg of what SAML.to aims to provide (check out https://saml.to), for example:

- Store Role Assumption and Privileges as Code (the saml-to.yml config file) - A command line interface to login and assume roles - Free (or affordable) for small teams or individuals - Additional Automations, Webhooks, SCIM, etc

Let me know if you have any comments on this and thanks for the question!

Show HN: Stop Putting AWS Credentials in GitHub Secrets

https://github.com/saml-to/assume-aws-role-action

Greetings!I've created a GitHub action that works that allows GitHub Actions to exchange a GitHub token for AWS Access Credentials.I've cultivated a few examples of it in action:https://github.com/saml-to/aws-assume-role-action-examplesI've always found management of AWS Credentials has been a pain. So this setting up this Action works like this:1) A SAML Identity Provider is created in AWS2) A...

( Read More... | 29 comments | 88 points | on HN )
Hey brianr! thanks for the question

Let's actually use Rollbar as a use case since your HN profile says you're the co-founder, and Rollbar supports SAML !

Use case:

There's a set of developers on a project in GitHub, that also need to log into Rollbar. Rollbar would be added as a provider in the SAML.to Configuration File (hosted in GitHub). Developers that need to access Rollbar would also be listed in the configuration file with who should be allowed to Login to Rollbar.

Here's a sample of the config file: https://gist.github.com/cnuss/4966f227afdd6a134e74ad579c9c7c...

When "cnuss" or "brianr" needs to access Rollbar, they would run the command in their console

`npx saml-to login rollbar`

This command would obtain their GitHub identity, and open a browser window directly into Rollbar. "tonystark" would not be able to do this, since he's not listed.

Additionaly, in this config, AWS access is configured for role assumption, So brianr, cnuss, and tonystark can all log AWS using the command

`npx saml-to assume role/admin`

This command would open up a browser window in the AWS console with the role of "arn:aws:iam::01234567890:role/admin"!

Using two commands, developers were able to log into both AWS and Rollbar in seconds.

Also, with SAML.to Premium, listing individual users is unnecessary, and assigning them to teams and specifying the teams in the config eliminates the repetition of a list of users in the config file.

Let me know if you have any questions or comments!

great question yodon!

generally speaking, no, there should be no security concerns checking this into a repo but some best practices would be recommended to follow: - make the repo private - protect the main branch - require PRs and # approvals and/or add CODEOWNERS - only allow individuals that need to edit with write/admin privileges - having anybody with read-only access to the repo is unnecessary since SAML.to does the reading on behalf of the users

if provisioning is needed, there would be a encrypted token for SCIM in the text of the file, but that token is encrypted by SAML.to AWS KMS, so checking an encrypted string into a file shouldn't be a huge concern for most

also, SAML.to Premium allows users to maintain their own PKI and allows administrators to encrypt and sign according to their organizations requirements!

on a final note, I'd entertain a feature request for "include" statements in the config file so CODEOWNERS could be leveraged nicely

that's all I can think of for now. I'll get these best practices into the docs and I'd entertain any and all suggestions or thoughts!

Greetings Hackers!!

I've bridged GitHub OAuth and SAML 2.0 together, and made it easy to use with a CLI (`npx saml-to --help`). It's called SAML.to (https://saml.to).

I've built this to be a no/low-cost alternative to using Okta, OneLogin, or JumpCloud for SAML Logins.

Using SAML.to, a configuration file is placed in a GitHub repository that defines one or many Service Providers and Permissions to GitHub users, then logging in is as simple as running a command in your console:

npx saml-to login

Or for role assumption (like IAM roles):

npx saml-to assume

I'd love this community's feedback on this, please let me know what you think!

Cheers, cnuss

CLI: https://github.com/saml-to/cli Forums: https://github.com/saml-to/cli/discussions Documentation: https://docs.saml.to

Re:Show HN: Scaffoldly – Serverless APIs on AWS, in Minutes on Thursday October 21, 2021 @10:46AM (#28945230)
Thanks yodon, great feedback! I've aggregated a list here for easier discovery: https://docs.scaffold.ly/contributing/open-source-components

Older »