Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Services #4

Open
A-c0rN opened this issue Jan 25, 2024 · 16 comments
Open

Web Services #4

A-c0rN opened this issue Jan 25, 2024 · 16 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@A-c0rN
Copy link
Owner

A-c0rN commented Jan 25, 2024

No description provided.

@A-c0rN A-c0rN converted this from a draft issue Jan 25, 2024
@A-c0rN A-c0rN self-assigned this Jan 25, 2024
@A-c0rN A-c0rN added enhancement New feature or request help wanted Extra attention is needed labels Jan 25, 2024
@A-c0rN A-c0rN moved this from In progress to Ready in Improvement Map Jan 25, 2024
@reggietorres
Copy link
Contributor

im gonna test some things here and there, maybe get a prototype going

@reggietorres
Copy link
Contributor

reggietorres commented Feb 1, 2024

mc-sneakpeak
Here's a sneak peak!
It all runs off of python, and a bit of mysql which is easy as shit to setup

@reggietorres
Copy link
Contributor

Ive added 2FA, via discord webhook

@A-c0rN A-c0rN linked a pull request Feb 3, 2024 that will close this issue
@A-c0rN A-c0rN removed a link to a pull request Feb 3, 2024
@reggietorres
Copy link
Contributor

Is there any system in place currently in ASMARA for handling localserver (eg socket) alert sending, and if so, are we able to implement a way to upload custom audio or have a custom description of the alert, and allow something like flite to read it?

@A-c0rN
Copy link
Owner Author

A-c0rN commented Feb 3, 2024

Is there any system in place currently in ASMARA for handling localserver (eg socket) alert sending

Not yet, however an older version had a console system that is for the most part still available in the backend, just the console was removed due to unneeded complexity. I would like a REST API to be hooked into this system for management, as I would like the API to allow users to make their own web interfaces if wanted, or modules to interface with other things, such as Character Generators and such.

are we able to implement a way to upload custom audio or have a custom description of the alert, and allow something like flite to read it?

This would be easier to implement via CAP, so that's probably going to go with that. One should be able to use the Override feature for audio embedding if they need to though.

@reggietorres
Copy link
Contributor

BREAKING NEWS new webserver update soon! (not major) some changes to the readme, using logos, all of that..

@reggietorres
Copy link
Contributor

Flask has a good way of setting up REST API's, so I'm thinking we can do it like this for best productivity, where you could work on setting up a good way of sending alerts, and il setup a secure(ish) way of doing api's for sending.. What do you think about that?

  • Reggie

@A-c0rN
Copy link
Owner Author

A-c0rN commented Feb 4, 2024

where you could work on setting up a good way of sending alerts, and il setup a secure(ish) way of doing api's for sending.

The only thing this needs is a handler to import a Flask backend that communicates with ASMARA's interface directly. I can write something like that when I have time.

The API should be a standardized, easy to understand and well documented script that should expose both ingest and output information from the ENDEC.

Also, when it comes to security, this may sound like a bit of a pain, but we may want to focus on this after we have a working API.
Make it work, then make it pretty.

Thanks!

@reggietorres
Copy link
Contributor

reggietorres commented Feb 4, 2024

The API should be a standardized, easy to understand and well documented script that should expose both ingest and output information from the ENDEC.

That seems easy enough to work on once we get there..

Also, when it comes to security, this may sound like a bit of a pain, but we may want to focus on this after we have a working API.
Make it work, then make it pretty.

Completely agree, wouldn't want to push a flawed and hackable system to prod and have someone hack into an exposed system and release an EAN right?

  • Reggie

@reggietorres
Copy link
Contributor

Ana,

What do you think about this, we could implement email based 2FA, but the user would have to setup an email account specifically for it, OR, we could push a prototype 2FA system back about a week or two, and have an authenticator app system..

Until you get back to me on this, i will be exploring both ideas,

  • Reggie

@reggietorres
Copy link
Contributor

reggietorres commented Feb 5, 2024

Ana,

Ive made a working prototype authenticator app system, it works for authy and google authenticator.. will send a pull once its fully fleshed out

  • Reggie

@reggietorres
Copy link
Contributor

Look at this beauty!

image

@reggietorres
Copy link
Contributor

working on SSL/HTTPS, kinda stupid that we didn't think to do this sooner..

@reggietorres
Copy link
Contributor

SSL/HTTPS is done, its optional but it slightly berates you for running without it cause of 1. how insecure the webserver becomes, 2. because of how easy it is to setup

atm all you have to do is run userdb with the argument mkSSL

it selfsigns a cert, and if you look at the cert it has asmara info, it expires after a year it was created, i haven't set a warn for that yet, il probably put it on the web interface though

@A-c0rN
Copy link
Owner Author

A-c0rN commented Mar 2, 2024

it selfsigns a cert, and if you look at the cert it has asmara info, it expires after a year it was created, i haven't set a warn for that yet, il probably put it on the web interface though

I'll look into also the ability submit an external cert for use, as some of us (Physprop) has their own SSL signing server for a domain.
If we can get that working, we can avoid self-signed warnings.

@reggietorres
Copy link
Contributor

it selfsigns a cert, and if you look at the cert it has asmara info, it expires after a year it was created, i haven't set a warn for that yet, il probably put it on the web interface though

I'll look into also the ability submit an external cert for use, as some of us (Physprop) has their own SSL signing server for a domain. If we can get that working, we can avoid self-signed warnings.

Sounds good..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: Ready
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants