Frequently Asked Questions (FAQ)
- Does aah support Package Management Tools?
- How to update aah framework to the latest version?
- How to update individual module bug fix release?
- How to adapt to latest aah configuration?
- How to try aah framework edge version?
- How to log all goroutine stacktrace?
- Does aah has benchmark against other Go web framework?
- Does aah supports Hot-Reload for Development?
- Is posting an arbitrary CSRF token pair (cookie and POST data) a vulnerability?
- Is it a problem that aah’s Anti-CSRF protection isn’t linked to a session?
- Why might a user encounter a Anti-CSRF validation failure after logging in?
Does aah support Package Management Tools?
Yes, of course. As described in versioning documentation. aah works nicely with vendoring. Use your choice of tool (
For example: I have responded to aah user for
dep tool, refer to GitHub comment.
How to update aah framework to the latest version?
To update aah framework latest version run below command on your terminal/command prompt. This procedure updates the aah framework only on GOPATH.
If you’re using package management tool, then refer to respective tool documentation for update. For example:
glide update, etc.
# Since v0.10 release, you could use -
go get -u aahframework.org/tools.v0/aah
How to update individual module bug fix release?
aah is modularized implementation. So any bug/enhancement could be fixed and released at individual module level without releasing entire framework. How do I update it:
i18n module is released bug fix:
# Check the existing version
# Run the module update
go get -u aahframework.org/i18n.v0
# Update the aah CLI
go install aahframework.org/tools.v0/aah
# Finally check the module version
How to adapt to latest aah configuration?
The quick and best way to know about latest configuration is to:
- Create a new project based on your choice (web or api).
- Compare your application configuration files (
config/*) with new configurations then merge it to yours.
- Congrats! you’re on new configurations.
How to try aah framework edge version?
Of-course you can. Since v0.9
aah switch command makes it very easy to try edge version. Learn more about switch command.
Just run the below command and the run your app as usual using
aah switch # default is edge version for this command
# Switch back to stable/prog release version
aah switch --value release
# If you're already on aah edge version, then just refresh it
aah switch --refresh
How to log all goroutine stacktrace?
It is very simple to do aah framework. Just set the below config to true. You will get all the stacktrace in the log.
# Whether to collect all the Go routines details or not.
# Default value is `false`
all_goroutines = true
Does aah has benchmark against other Go web framework?
Well, aah framework goal is to achieve full stack web framework capabilities for modern Web & API application. As you know we have many micro frameworks and few full stack in the Go community with own set of goals and own perspectives.
I have responded to aah user on Github Issue #81, about what I have done. Thanks.
Does aah supports Hot-Reload for Development?
Yes, aah detects the file change(s) on aah project then it automatically stops the server, builds it and start the server with updated codebase. I’m sure it needs an improvement, so keep me posted. Thanks.
For static file changes server is not restarted, server is restarted only for Go Source code and Template files. Refer to Github Issue #4 for implementation details.
Is posting an arbitrary CSRF token pair (cookie and POST data) a vulnerability?
No, this is by design. Without a man-in-the-middle attack, there is no way for an attacker to send a Anti-CSRF token cookie to a victim’s browser, so a successful attack would need to obtain the victim’s browser’s cookie via XSS or similar, in which case an attacker usually doesn’t need CSRF attacks.
Some security audit tools flag this as a problem but as mentioned before, an attacker cannot steal a user’s browser’s Anti-CSRF cookie. “Stealing” or modifying your own token using Firebug, Chrome dev tools, etc. isn’t a vulnerability.
Is it a problem that aah’s Anti-CSRF protection isn’t linked to a session?
No, this is by design. Not linking CSRF protection to a session allows using the protection on sites such as a pastebin that allow submissions from anonymous users which don’t have a session.
Why might a user encounter a Anti-CSRF validation failure after logging in?
For security reasons, Anti-CSRF tokens are rotated each time a user logs in. Any page with a form generated before a login will have an old, invalid Anti-CSRF token and need to be reloaded. This might happen if a user uses the back button after a login or if they login in a different browser tab.